I have a few greek characters and subscripts in some chapter titles.  When I use hyperref to create a PDF index, these math-mode characters are dropped from the titles in the index.  Is it possible to get any of these rendered properly in the document index?  Maybe this depends on the PDF viewer?  If it matters, I'm using evince.
36637
Possible Duplicate:          The following code:  \subsection{The classes $\mathcal{L}(\gamma)$}   generates the errors:  Package hyperref Warning: Token not allowed in a PDF string (PDFDocEncoding): (hyperref)                removing `math shift' on input line 1938.   Package hyperref Warning: Token not allowed in a PDF string (PDFDocEncoding): (hyperref)                removing `\gamma' on input line 1938.   Package hyperref Warning: Token not allowed in a PDF string (PDFDocEncoding): (hyperref)                removing `math shift' on input line 1938.   What do I have to do to keep \gamma in the subsection, so that it is also listed in the table of contents?
3307
I'm having some problems with listings and UTF-8 in my document. Maybe someone can help me? Some characters work, like é and ó, but á and others appear at the beginning of words...  \documentclass[12pt,a4paper]{scrbook} \KOMAoptions{twoside=false,open=any,chapterprefix=on,parskip=full,fontsize=14pt}  \usepackage[portuguese]{babel} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{listingsutf8}  \usepackage{inconsolata} \lstset{     language=bash, %% Troque para PHP, C, Java, etc... bash é o padrão     basicstyle=\ttfamily\small,     numberstyle=\footnotesize,     numbers=left,     backgroundcolor=\color{gray!10},     frame=single,     tabsize=2,     rulecolor=\color{black!30},     title=\lstname,     escapeinside={\%*}{*)},     breaklines=true,     breakatwhitespace=true,     framextopmargin=2pt,     framexbottommargin=2pt,     extendedchars=false,     inputencoding=utf8 }  \begin{document} \begin{lstlisting} &lt;?php  echo 'Olá mundo!'; print 'Olá mundo!'; \end{lstlisting}  \end{document} \end{lstlisting}
21691
In a LaTeX article, the math characters are more "curvy" than the text characters:  \documentclass[12pt]{article} \begin{document}  $x^2 + y^2 = z^2$ \end{document}     In a beamer presentation, the math characters do not have the same curves:  \documentclass{beamer} \begin{document} \begin{frame}  $x^2 + y^2 = z^2$ \end{frame} \end{document}     Question  How can I get the beamer math to look just like the article math?  I would prefer if the solution was a single line (that I could place at the top of my LaTeX file) as opposed to something that needs to appear next to every piece of math.
43249
describes a method for generating an index of URLs that are used in the document, including page number.  However, the URLs are sorted alphanumerically.  I'd like to make a URL index that sorts them per page, in the order in which the links appear on the page.  Furthermore, my links are actually in \hrefs and I would like to include the link text in the index:  p. 1      Wikipedia... http://wikipedia.org      SXE... http://stackexchange.com p. 2      Google... http://google.com   I've created a MWE following the instructions from Heiko Oberdiek in the post I linked to above (compile with xelatex links.tex, makeindex links-url, xelatex links.tex).  Note, the output I currently get is, as expected (but not desired) in alphabetical order rather than page order:        \documentclass[12pt,article]{memoir}  \settrimmedsize{11in}{8.5in}{*} \settrims{0in}{0in} \settypeblocksize{9in}{6.5in}{*} \setlrmargins{1in}{*}{*} \setulmargins{1in}{*}{*} \setheadfoot{\onelineskip}{2\onelineskip} \setheaderspaces{*}{1.5\onelineskip}{*}  \checkandfixthelayout  \PassOptionsToPackage{hyphens}{url} \usepackage[linktoc=all,frenchlinks,pdfborderstyle={/S/U/W .5},citebordercolor={1 1 1},linkbordercolor={1 1 1},urlbordercolor={1 1 1}]{hyperref} \makeatletter \g@addto@macro{\UrlBreaks}{\UrlOrds} \makeatother  \usepackage{filecontents}  \begin{filecontents*}{\jobname-url.mst} % Input style specifiers keyword "\\urlentry" % Output style specifiers preamble "\\begin{theurls}" postamble "\\end{theurls}\n" group_skip "" headings_flag 0 item_0 "\n\\urlitem{" delim_0 "}{" delim_t "}" line_max 500 \end{filecontents*}  \usepackage{pdfescape}  \makeatletter \newwrite\file@url \openout\file@url=\jobname-url.idx\relax  \def\instring#1#2{TT\fi\begingroup   \edef\x{\endgroup\noexpand\in@{#1}{#2}}\x\ifin@}  \newcommand*{\write@url}[1]{%   \begingroup     \EdefEscapeHex\@tmp{#1}%     \protected@write\file@url{}{%       \protect\urlentry{\@tmp}{\thepage}%     }%   \endgroup } \let\saved@hyper@linkurl\hyper@linkurl \renewcommand*{\hyper@linkurl}[2]{%   \write@url{#2}%   \saved@hyper@linkurl{#1}{#2}% } \newcommand*{\listurlname}{List of URLs} \newcommand*{\printurls}{%   \InputIfFileExists{\jobname-url.ind}{}{}% } \newenvironment{theurls}{%   \begin{center}{\Huge \listurlname}% \vspace{.7in}\\ \end{center} {All of these links were active as of \today.} \\ \quad \\ \noindent   %\section*{\listurlname}%   \@mkboth{\listurlname}{\listurlname}%   \let\write@url\@gobble   \ttfamily\footnotesize   \raggedright   \hspace{-1.4em} }{%   \par } \newcommand*{\urlitem}[2]{%   \hangindent=1em   \hangafter=1   \begingroup     \urlpages{#2}%     \EdefUnescapeHex\@tmp{#1}%     \expandafter\url\expandafter{\@tmp}%   \endgroup   \newline } \newcommand*{\urlpages}[1]{% {% \normalfont \space(\if\instring{,}{#1}{pp.\space#1}\else{p.\space\hyperlink{page.#1}{#1}}\fi)} } \makeatother  \begin{document} \href{http://wikipedia.org}{Wikipedia} \href{http://stackexchange.com}{SXE}   \newpage \href{http://google.com}{Google}  \section*{Index of URLs} \printurls \end{document}
61851
I updated LyX to 2.3.0-1, and found that LyX was displaying all the "-" characters in Math Mode as "\lyxminus". No such problem occurs when entering outside of Math Mode. LyX also seems to have no problem compiling to TeX, and the PDF output looks normal.  I removed and re-installed LyX, and this issue was still there.   Does anyone have any ideas on what might be going on? I am using Linux Mint 18.2 Sonya.  Note: I previously saw this question ask about the same thing, but the author appears to have deleted their post:
38948
When I copy text out of a PDF file and into a text editor, it ends up mangled in a variety of ways. Formatting like bold and italics are lost; soft line breaks within a paragraph of text are converted to hard line breaks; dashes to break a word over two lines are preserved even when they shouldn't be; and single and double quotes are replaced with ? signs.  Ideally, I'd like to be able to copy text from a PDF and have formatting converted to HTML codes, "smart quotes" converted to &quot; and &apos;, and line breaks done properly. Is there any way to do this?
91075
pdftex produces PDF. We need a viewer to view the PDF and print it. Some of those viewers tend to scale the printout: the letters shrink. This is a bug especially of the Adobe Reader and explained here:  .  A solution is describe here:  :  \usepackage{hyperref} \hypersetup{pdfprintscaling=None}   I'd like to avoid hyperref, because it slows down compiling.   My question: Is there a command to do that without hyperref, maybe similar to \pdfinclusioncopyfonts=1? (To avoid a misunderstanding: \pdfinclusioncopyfonts=1 does somethin completely different, I'm asking if there exists something like \pdfprintscaling=0.)
24159
hi i need the text mode of a latex symbol, in a reference pdf doc i found the exact symbol   which is categorized under "text" category. attached the screenshot of the pdf. i need a   different output of \mathfrak s
97384
As discussed for example here:  subscripts should usually be typeset upright. Is there a possibility to this automatically e.g. inserting something to the document-header? Or, if not possible in LaTeX, is there an option in LyX? Until now I do it like this: Q _ Alt Z R test which is quite slow.
103117
Is there a math mode accent giving an ? I have tried \stackrel{frown}{x}, but the alignment and spacing are all wrong when compared to \breve{x}.
103245
I would like to include the following line from Wikipedia in a presentation:     στεγανός steganós ‚bedeckt‘ und γράφειν gráphein ‚schreiben‘   But I am unable to convince pdflatex to include the greek letters. I have already tried to use (from: )  \usepackage[german,greek]{babel} \usepackage[utf8]{inputenc} ... \latintext ... \textgreek{στεγανός} steganós ‚bedeckt‘   which printed the Latin text just fine, but the Greek text was not set at all. I would like to avoid using  $\sigma\tau\epsilon...$   if possible. I should also mention that I would like to achieve this with TeX Live-only packages.
59936
I am trying to type a circumflex over a Greek letter in \chapter. In particular, I'm using this package:  \usepackage{textgreek}   However, if I write \^{\textPi} I get this result:    while I want the circumfex to be over the letter. Can anyone help me to solve this issue?
4629
When typing &lt; or &gt; in LaTeX and compiling with pdflatex, the less than and greater than symbols appear at upside down exclamation points. I'm not in math mode.
104184
When using Minted i get a red box around greek characters   Can this behaviour be disabled or is there a specific line that needs to be changed in the python lexer?  A minimal working example  \documentclass[12pt,a4paper]{article}  \usepackage{fontspec} \setmainfont{XITS} \setmonofont{Consolas}  \usepackage{minted} \setminted[python]{     linenos=true,     breaklines=true,     encoding=utf8,     fontsize=\footnotesize,     frame=lines } \begin{document} \section{Some code in this section} \begin{minted}{python} def add(α, β):     return α + β \end{minted} \end{document}     edit: I am using xelatex
108359
This issue seems rather exotic, but I encountered it in a medium-sized document, and it took me a while to indentify which particular combination of packages was responsible.  When I load amsmath, cleveref and hyperref (implicitly via pdfcomment), ref/autoref to an equation no longer work, i.e., LaTeX throws an Reference ... on page 1 undefined error. See the following MWE:  \documentclass[12pt]{scrartcl}  \usepackage[ngerman]{babel} \usepackage[utf8]{inputenx} \usepackage[T1]{fontenc} \usepackage{lmodern}  \usepackage{amsmath}  %% Hyperlinks %\usepackage[breaklinks]{hyperref} \usepackage{cleveref} %% implicitly loads `hyperref` \usepackage{pdfcomment}  \begin{document}  \section{Test} Etwas Fülltext, bevor die Gleichung kommt: \begin{equation} E_\mathrm{kin} = \frac{m}{2} v^2 \label{eq:kinErg} \end{equation} Jemand fand heraus, dass \autoref{eq:kinErg} gilt.  \end{document}   If I include hyperref explicitly, then everything works except I get . Not a deal breaker, but I'd prefer to avoid it and just use hypersetup for the additional options for hyperref.  Also, if I omit amsmath, everything works, too. I suppose that each package partially overwrites each other's settings...  If this is a bug, then where should I report it?
9889
I would like my document to have clickable hyperlinks inside \overset environments. I'm using XeLaTeX because of the fonts…  This is a (rather) minimal example:  \documentclass[a4paper, 12pt]{article} \usepackage{amsmath} \usepackage{amssymb} \usepackage{amsthm} \usepackage[xetex, colorlinks=true, citecolor=blue, linkcolor=blue]{hyperref}  \begin{document}  \begin{equation}     a = b \label{eq} \tag{$\ast$} \end{equation}  \[ \eqref{eq} \] % working hyperlink here.  \[ c = a \overset{\eqref{eq}}{=} b \] % existing but non-clickable hyperlink here.  \end{document}   Any help is greatly appreciated!
10298
I want to write a sentence like "physics (from ancient greek φύσις)". But I don't know how to typeset the character "ύ" properly. Also I am not sure, if it is a good idea simply to use math-mode here to typeset the greek letters. So, what's the best way to typeset the ancient greek word φύσις?  Edit: I should add that I just copied the word from wikipedia in this case, so the xelatex or babel solutions work very well since I can just copy the greek word into my latex source. But I don't know how I can insert those greek letters directly with my normal german keyboard layout.