Difference between revisions of "PDF-strings"
Jump to navigation
Jump to search
(Usage of PDF-Strings in LaTeX compared with ConTeXt:) |
|||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
< [[From LaTeX to ConTeXt]] | < [[From LaTeX to ConTeXt]] | ||
− | LaTeX: | + | Usage of PDF-Strings in LaTeX compared with ConTeXt: |
− | < | + | |
+ | == In LaTeX == | ||
+ | <texcode> | ||
\documentclass{article} | \documentclass{article} | ||
\def\ST{\ac{ST}} | \def\ST{\ac{ST}} | ||
Line 18: | Line 20: | ||
\end{acronym} | \end{acronym} | ||
\end{document} | \end{document} | ||
− | </ | + | </texcode> |
− | ConTeXt | + | == In ConTeXt == |
− | < | + | <texcode> |
\setupoutput[pdftex] | \setupoutput[pdftex] | ||
\appendtoks \def\em{}\def\sl{}\def\Full#1{???} \to \simplifiedcommands | \appendtoks \def\em{}\def\sl{}\def\Full#1{???} \to \simplifiedcommands | ||
Line 32: | Line 34: | ||
\starttext | \starttext | ||
\section{\Title} | \section{\Title} | ||
− | \section{\Full{ST}} % | + | \section{\Full{ST}} % here is still a problem... |
\section{\sl slanted} | \section{\sl slanted} | ||
\stoptext | \stoptext | ||
− | </ | + | </texcode> |
+ | |||
+ | [[Category:PDF]] | ||
+ | [[Category:From LaTeX]] |
Latest revision as of 22:45, 10 January 2011
Usage of PDF-Strings in LaTeX compared with ConTeXt:
In LaTeX
\documentclass{article} \def\ST{\ac{ST}} \def\Title{A \emph{Title}} \usepackage{acronym} \usepackage{hyperref} \hypersetup{bookmarksopen=true,pdftitle=\Title} \begin{document} \section{\Title} \section{\slshape slanted} first usage of \ST. \section{\ST} \begin{acronym} \acro{ST}{some text} \end{acronym} \end{document}
In ConTeXt
\setupoutput[pdftex] \appendtoks \def\em{}\def\sl{}\def\Full#1{???} \to \simplifiedcommands \def\Title{A \em Title} \setupinteraction[state=start,title=\Title] \setupinteractionscreen[option=bookmark] \definesynonyms[Acro][acronymes][\Full] \Acro{ST}{some text} \placebookmarks[section] \starttext \section{\Title} \section{\Full{ST}} % here is still a problem... \section{\sl slanted} \stoptext