title: PDFLatex is counting numbers due to a parbox

text: I am having a problem with a `minipage` or `\parbox` and its parameters. Currently I try to do some business cards with the package called `ticket`. Therefore I modified one example delivered with the package:               %%%%     %     % ticket.sty example file for visiting cards     %     %%%%     % use the corresponding paper size for your ticket definition     \documentclass[a4paper,10pt]{letter}          % load ticket.sty with the appropriate ticket definition     \usepackage[crossmark]{ticket}          \unitlength=1mm     \hoffset=-1.1cm     \voffset=-2cm     \ticketNumbers{2}{5}     \ticketSize{85}{55} % in unitlength     \ticketDistance{10}{0}    %in unitlength          % load misc stuff     \usepackage{graphicx}     \usepackage{color}          % define something     \definecolor{uni}{rgb}{.3019,.7216,.7019}          % make your default ticket. \ticketdefault is somewhat like a background     % here it is empty, because we use different tickets for the front an     % the back of our card     \renewcommand{\ticketdefault}{%     }          % now what do you like to put in your ticket     \newcommand{\vcardfront}[5]{\ticket{%         \put(1,1){\parbox[c][55mm][c]{85mm}{#1}}%      }}          \newcommand{\vcardback}[1]{\ticket{%         \put( 7, 26){\small private:}         \put( 5, 23){\color{uni}\line(1,0){56}}         \put( 7,19){\small%             \begin{minipage}[t]{50mm}%               {#1}\hss%             \end{minipage}}%     }}          % a counter, which makes life easier...     \newcounter{numcards}          \begin{document}     \sffamily          % ten cards for the front     \whiledo{\thenumcards<10}{%       \stepcounter{numcards}%       \vcardfront{Mr. XYZ}}          \setcounter{numcards}{0}          % and ten for the backside     \whiledo{\thenumcards<10}{%       \stepcounter{numcards}%       \vcardback{phone: ---/HH HH HHH\\fax: ---/HH HH HHH\\homestreet 7\\everywhere}}          \end{document}      Well and the problem is the `\vcardfront` command: as long as I use the `\parbox` inside the command in this way, pdfLaTeX won't come to an end and starts counting numbers in the log file:               ...     (/usr/local/texlive/2014/texmf-dist/tex/generic/oberdiek/kvsetkeys.sty     Package: kvsetkeys 2012/04/25 v1.16 Key value parser (HO)          (/usr/local/texlive/2014/texmf-dist/tex/generic/oberdiek/etexcmds.sty     Package: etexcmds 2011/02/16 v1.5 Avoid name clashes with e-TeX commands (HO)     Package etexcmds Info: Could not find \expanded.     (etexcmds)             That can mean that you are not using pdfTeX 1.50 or     (etexcmds)             that some package has redefined \expanded.     (etexcmds)             In the latter case, load this package earlier.     )))     Package grfext Info: Graphics extension search list:     (grfext)             [.png,.pdf,.jpg,.mps,.jpeg,.jbig2,.jb2,.PNG,.PDF,.JPG,.JPE     G,.JBIG2,.JB2,.eps]     (grfext)             \AppendGraphicsExtensions on input line 452.          (/usr/local/texlive/2014/texmf-dist/tex/latex/latexconfig/epstopdf-sys.cfg     File: epstopdf-sys.cfg 2010/07/13 v1.3 Configuration of (r)epstopdf for TeX Liv     e     ))     LaTeX Font Info:    External font `cmex10' loaded for size     (Font)              <7> on input line 55.     LaTeX Font Info:    External font `cmex10' loaded for size     (Font)              <5> on input line 55.          [1          {/usr/local/texlive/2014/texmf-var/fonts/map/pdftex/updmap/pdftex.map}]     [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14] [15] [16] [17]     [18] [19] [20] [21] [22] [23] [24] [25] [26] [27] [28] [29] [30] [31] [32]     [33] [34] [35] [36] [37] [38] [39] [40] [41] [42] [43] [44] [45] [46] [47]     [48] [49] [50] [51] [52] [53] [54] [55] [56] [57] [58] [59] [60] [61] [62]     [63] [64] [65] [66] [67] [68] [69] [70] [71] [72] [73] [74] [75] [76] [77]     [78] [79] [80] [81] [82] [83] [84] [85] [86] [87] [88] [89] [90] [91] [92]     [93] [94] [95] [96] [97] [98] [99] [100] [101] [102] [103] [104] [105] [106]     ...      And it doesn't stop. But if I use a `\parbox` or `minipage` in the `\vcardback` way, it works. What have I done wrong? Why does it do that? I'm using texlive 2014.


title: Bibliographic references in LaTeX

text: How you can write references as I want > [ref1 and ref2] I know that we can write as `\cite{1,2}`, but I need the output to be be [1 and 2], not [1,2].               \documentclass[12pt,a4paper]{report}      \begin{document}      we have transform from $ A : f \rightarrow g $ \cite{1 and 2}           \begin{thebibliography}{30}      \addcontentsline{toc}{chapter}{Bibliography}      \bibitem{1} D. Arcoya, \emph{An Introduction to Problems}, Springer, 2011.      \bibitem{2} Nassor, \emph{On the Uniqueness}, pages 377-390, (1992).      \end{thebibliography}      \end{document}


title: Source at the end of table and centering cells

text: How could I add before title the source of the table? Also, in the first row how could I center between 2010 and provisional the other dates?               \begin{table}[ht]     \centering % used for centering table     \begin{tabular}{l c c c c c c}      \hline %inserts double horizontal lines     & 1990 & 1999 & 2005 & 2010 & 2015 \\     & & & & (provisional) & (projection)\\     \hline% inserts single horizontal line     East Asia \& Pacific & 48.5 & 37.6 & 23.9 & 20.7 & 11.8 \\      Europe \& Central Asia & 0.5 & 1.0 & 0.5 & 0.3 & 0.2 \\      Latin America \& Caribbean & 2.8 & 3.4 & 3.4 & 2.7 & 3.1 \\      Middle East \& North Africa & 0.7 & 0.8 & 0.8 & 0.7 & 1.0 \\      South Asia & 32.3 & 35.5 & 43.1 & 41.7 & 41.9 \\      Sub-Saharan Africa & 15.2 & 21.6 & 28.4 & 34.1 & 42.1 \\  [1ex] % [1ex] adds vertical space     \hline \hline     \end{tabular}     \caption{Regional Distribution of people living on less than \$1.25 a day (\% of total population on less than \$1.25 a day)}     \end{table}      ![sample](http://i.stack.imgur.com/4CB7L.png)


title: Texmaker + User Command + Launching graphical editor

text: I'm trying to customize Texmaker to my needs. I use `git` to version my documents, so I would like to set a user command to `git-commit`. An editor should then be invoked to receive my commit message. Normally it would call `vim`, but that's a command-line editor. When working from Texmaker, it should start a graphical editor, such as `gedit`. So I thought I'd use the command:               GIT_EDITOR="gedit -w -s" git-commit -a      Now here's the thing: It won't work as a user-command. It simply does nothing. On a hunch I put the same command in the field for DVI viewer. And lo and behold, that works as expected. The external viewer commands can open new X windows, but for some reason the user commands cannot. I usually know my way around Linux, but I'm not sure about this one. I tried some obvious tricks, like prepending `DISPLAY=:0`, but to no avail. Some help would be appreciated!


title: Bold \varnothing

text: I'm using the symbol `\varnothing` and it turns out I could do with a bold version of it. Any ideas? Also, I'm using `\phi` as a 'lowercase' version of it, any improvements to this strategy would also be welcome.


title: How to change location of boxplots along axis in pgfplots?

text: `pgfplots` draws boxplots equally spaced along the axis (x axis in my example below). How can I draw the boxplots at different locations along the axis? E.g., the example below the distance between the second and third boxes would be three times the distance between the first two. The boxes would need to all have the same width. Is there an option that I'm missing? Do I need to go back and customize some of the code that's floating around from before `pgfplots` supported boxplots directly?               \documentclass[12pt]{article}          \usepackage{pgfplots}     \pgfplotsset{compat=1.9}     \usepgfplotslibrary{statistics}          \begin{document}       \begin{tikzpicture}         \begin{axis}[             boxplot/draw direction=y,             xtick={1,2,3},             xticklabels={1,2,5}]           \addplot+[boxplot prepared={               lower whisker=2.5, lower quartile=4, median=8.5, upper quartile=12, upper whisker=15},] coordinates {};           \addplot+[boxplot prepared={               lower whisker=2.5, lower quartile=4, median=8.5, upper quartile=12, upper whisker=15},] coordinates {};           \addplot+[boxplot prepared={               lower whisker=2.5, lower quartile=4, median=8.5, upper quartile=12, upper whisker=15},] coordinates {};         \end{axis}       \end{tikzpicture}     \end{document}


title: Conversion of pgf code into TikZ code?

text: I am not clear about differences between `pgf` and TikZ. The latter is the frontend of the former. That's fine. In any case, their codes are clearly different. I have two questions.   1. Is it possible to convert `pgf` code into TikZ code? If yes, can you suggest any app (Mac please)?   2. Is it possible to use `pgf` code in TikZ environment? Your help is appreciated.


title: WinEdt autocompletion

text: How to use autocomplete feature in WinEdt? It's very hard to use `\ref{}` and similar functions without autocomplete. I tried `Tab` and `Ctrl+Space` but in vain.


title: Does Bibtex not work for CleanThesis?

text: I downloaded the http://cleanthesis.der-ric.de/ template and run LaTeX on `thesis-example.tex` which created an `.aux` file. In the document one finds               \nocite{*}     \printbibliography[nottype=online]     \printbibliography[heading=subbibliography,title={Webseiten},type=online,prefixnumbers={@}]      such that BibTeX should generate a `.bbl` file. But if I run `bibtex`, it just says               This is BibTeX, Version 0.99d (TeX Live 2012)     The top-level auxiliary file: thesis-example.aux     I found no \citation commands---while reading file thesis-example.aux     I found no \bibdata command---while reading file thesis-example.aux     I found no \bibstyle command---while reading file thesis-example.aux     (There were 3 error messages)      and just leaves an empty `.bbl` file for me. I checked `cleanthesis.sty` and found               \bibliography{bib-refs}      which is infact the correct `.bib` file. I then deleded the command `\nocite{*}` and put some where in the text `\cite{WEB:GNU:GPL:2010}` after compiling with LaTeX I could find in the `.aux` file the command               \abx@aux@cite{WEB:GNU:GPL:2010}      but if I run `bibtex` I get the same message from above and an empty `bbl` file. Am I doing anything wrong?


title: Why LaTex only prints the first page of a document?

text: I'm writing my first document with Tex and encountered problem(s) with it. At the moment I can only get the first page printed out :/ I'd appreciate enormously if anyone could help or give hints for my document attached below               \documentclass[a4paper,finnish,12pt]{article}     \usepackage[T1]{fontenc}     \usepackage[utf8]{inputenc}     \usepackage[ansinew]{inputenc}     \usepackage{babel}     \usepackage{amsmath}     \usepackage{amssymb}     \usepackage[text={18cm,27cm},centering]{geometry}          %\usepackage{hyperref}                    \usepackage{bm}     \newcommand*{\m}[1]{\mathbf{#1}}     \DeclareMathOperator{\TR}{tr}     \DeclareMathOperator{\RE}{Re}     \DeclareMathOperator{\IM}{Im}     \newcommand*{\BAR}[1]{\overline{#1}}               \newtheorem{lause}{Lause}[section]     \newtheorem{lemma}[lause]{Lemma}     \newtheorem{esim}[lause]{Esimerkki}     \newtheorem{prop}[lause]{Propositio}     \newtheorem{seur}[lause]{Seuraus}                    \pagestyle{empty}               \begin{document}     \title{MAT-33500 Differentiaaliyhtälöt -- Harjoitustyö}     \maketitle     \\     \textbf{Niina Kuittinen, 212291}\\     \\     Tehtävänannon epähomogeeninen differentiaaliyhtälösysteemi on määritelty opiskelijanumerosta riippuvien muuttujien a, b ja c avulla. Opiskelijanumerolla 212291 saadaan muuttujien arvoiksi \(a=-1\), \(b=8\) ja \(c=-7\). Sijoittamalla muuttujien arvot saadaan seuraava yhtälöryhmä.\\              \[         \begin{cases}         x_1'=-1x_1+1x_5-1x_6, & x_1(0)=1\\         x_2'=-9x_1+8x_2+x_5+6x_6, & x_2(0)=-1\\         x_3'=6x_1-6x_2+8x_4+7x_4, & x_3(0)=0\\         x_4'=-7x_3+8x_4+8x_6, & x_4(0)=0\\         x_5'=7x_1-7x_2-1x_5+9x_6+sin(t), & x_5(0)=0\\         x_6'=7x_1-7x_2+8x_6, & x_6(0)=0         \end{cases}         \]               Määritetään vektorit \textbf{x}, \textbf{f} ja \textbf{c} sekä kerroinmatriisi A.\\              \[         \textbf{x}=\begin{bmatrix}         x_1\\         x_2\\         x_3\\         x_4\\         x_5\\         x_6         \end{bmatrix}.         \]                  \[         \textbf{c}=\begin{bmatrix}         1\\         -1\\         0\\         0\\         0\\         0         \end{bmatrix}.         \]                  \[         \textbf{f}=\begin{bmatrix}         0\\         0\\         0\\         0\\         sin(t)\\         0         \end{bmatrix}.         \]                       \[         A=\begin{bmatrix}         -1 & 0 & 0 & 0 & 1 & -1\\         -9 & 8 & 0 & 0 & 1 & 6\\         6 & -6 & 8 & 7 & 0 & 0\\         0 & 0 & -7 & 8 & 0 & 8\\         7 & -7 & 0 & 0 & -1 & 9\\         7 & -7 & 0 & 0 & 0 & 8         \end{bmatrix}.         \]          Ratkaisemalla karakteristinen yhtälö \[\(A-I\lambda\)=0\] saadaan matriisille ominaisarvot \lambda_1,2 = -1 ja \lambda_3,4,5,6 = 8\pm7i. Ominaisvektoreiksi saadaan \textbf{v_1} ja \textbf{v_2}. Matriisihtälöiden ratkaisuun on käytetty koko harjoitustyön osalta Maple-ohjelmistoa.                  \[         \textbf{v_1}=\begin{bmatrix}         1\\         1\\         0\\         0\\         0\\         0         \end{bmatrix}.         \]                      \[         \textbf{v_2}=\begin{bmatrix}         0\\         0\\         -i\\         1\\         0\\         0         \end{bmatrix}.         \]          Koska matriisilla ei ole täyttä määrää ominaisarvoja vaan \(alg(\lambda_1,2)=2\)] ja \([alg(\lambda_3,4,5,6)=4\), tulee etsiä yleistettyjä ominaisvektoreita. Selvitetään Jordanin ketjun avulla ominaisarvoa -1 vastaava yleistetty ominaisvektori \textbf{u} sekä ominaisarvoa \(8+7i\) vastaava kompleksinen yleistetty ominaisvektori \textbf{w}.                           \[         \textbf{u}=\begin{bmatrix}         0\\         0\\         0\\         0\\         1\\         0         \end{bmatrix}.         \]                           \[         \textbf{w}=\begin{bmatrix}         0\\         -i\\         1\\         0\\         1\\         1         \end{bmatrix}.         \]          Ominaisvektorien avulla voidaan muodostaa similaarimuunnosmatriisi P.\\     \\          P=\begin{bmatrix}\m{v}_1 & \m{u} & \RE(\m{v}_2) & \IM(\m{v}_2) & \RE(\m{w}) & \IM(\m{w}) \end{bmatrix} =         \begin{bmatrix}         1 & 0 & 0 & 0 & 0 & 0\\         1 & 0 & 0 & 0 & 0 & -1\\         0 & 0 & 0 & -1 & 1 & 0\\         0 & 0 & 1 & 0 & 0 & 0\\         0 & 1 & 0 & 0 & 1 & 0\\         0 & 0 & 0 & 0 & 1 & 0         \end{bmatrix}.     \]          ja siis P^{-1} on P:n käänteismatriisi.     \[     P^{-1}=\begin{bmatrix}         1 & 0 & 0 & 0 & 0 & 0\\         0 & 0 & 0 & 0 & 1 & -1\\         0 & 0 & 0 & 1 & 0 & 0\\         0 & 0 & -1 & 0 & 0 & 1\\         0 & 0 & 0 & 0 & 0 & 1\\         1 & -1 & 0 & 0 & 0 & 0         \end{bmatrix}.     \]     Nyt      \[     e^{\Big(t\begin{bmatrix}8 & 7 & 1 & 0\\ -7 & 8 & 0 & 1\\0 & 0 & 8 & 7\\0 & 0 & -7 & 8\end{bmatrix}\Big)}=e^{8t}     \begin{bmatrix}\cos(7t) & \sin(7t) & t\cos(7t) & \tsin(7t)\\ -\sin(7t) & \cos(7t) & -t\sin(7t) & t\cos(7t)\\0 & 0 & \cos(7t) & \sin(7t)\\0 & 0 & -\sin(7t) & \cos(7t) \end{bmatrix}     \]     ja siis     \begin{align*}     e^{tA} = &P\begin{bmatrix}e^{-t} & \\ &e^{\Big(t\begin{bmatrix}8 & 7 & 1 & 0\\ -7 &8 & 0 & 1\\0 & 0 & 8 & 7\\0 & 0 & -7 & 8\end{bmatrix}\Big)} \end{bmatrix}\\P^{-1}     =& \begin{bmatrix}     1 & 0 & 0 & 0 & 0 & 0\\         1 & 0 & 0 & 0 & 0 & -1\\         0 & 0 & 0 & -1 & 1 & 0\\         0 & 0 & 1 & 0 & 0 & 0\\         0 & 1 & 0 & 0 & 1 & 0\\         0 & 0 & 0 & 0 & 1 & 0     \end{bmatrix}     \begin{bmatrix}     e^{-t} & te^{t} & 0 & 0 & 0 & 0\\0 & e^{-t} & 0 & 0 & 0 & 0\\0 & 0 & e^{8t}\cos(7t) & e^{8t}\sin(7t) & te^{8t}\cos(7t) & te^{8t}\sin(7t)\\0 & 0 & -e^{8t}\sin(7t) & e^{8t}\cos(7t) & -e^{8t}t\sin(7t) & te^{8t}\cos(7t)\\0 & 0 & 0 & 0 & e^{8t}\cos(7t) & e^{8t}\sin(7t)\\0 & 0 & 0 & 0 & -e^{8t}\sin(7t) & e^{8t}\cos(7t)\end{bmatrix}     \begin{bmatrix}1 & 0 & 0 & 0 & 0 & 0\\         0 & 0 & 0 & 0 & 1 & -1\\         0 & 0 & 0 & 1 & 0 & 0\\         0 & 0 & -1 & 0 & 0 & 1\\         0 & 0 & 0 & 0 & 0 & 1\\         1 & -1 & 0 & 0 & 0 & 0\end{bmatrix}     \\     =&\left[ \begin{array} {ccc}      e^{-t} & e^{-t}-e^{8t}\cos(7t) & -te^{8t}\cos{7t}+e^{8t}\cos(7t) \\ 0 & e^{8t}\cos(7t) & te^{8t}\cos(7t)-e^{8t}\sin(7t)\\ 0 & 0 & e^{8t}\cos(7t)\\ 0 & 0 & e^{8t}\sin(7t)\\te^{-t} & te^{-t} & 0\\-te^{-t} & -te^{-t}+e^{8t}\sin(7t) & te^{8t}\sin(7t)       \end{array} \right.\\     &\left.\begin{array} {cc}       e^{8t}\sin(7t) & e^{8t}\sin(7t) & e^{8t}\sin(7t)\\-e^{8t}\sin(7t) & -e^{8t}\sin(7t) & -e^{8t}\sin(7t)\\-e^{8t}\sin(7t) & 0 & 0\\e^{8t}\cos(7t) & 0 & 0\\0 & e^{-t} & 0\\e^{8t}\sin(7t)+e^{8t}\cos(7t) & -e^{-t}+e^{8t}\cos(7t) & e^{8t}\cos(7t)     \end{array}\right],     \end{align*}          Jos $\m{f}:[0,\infty)\to\mathbb{R}^n$ on paloittain jatkuva funktio, niin     alkuarvo-ongelman      \[     \m{x}'=A\m{x}+\m{f},\ \m{x}(0)=\m{c}     \]     ratkaisu on     \[     \m{x}(t)=e^{tA}\m{c}+\int_0^t e^{(t-s)A}\m{f}(s) ds     \]     eikä muita ratkaisuja ole. Kun e^{tA} tunnetaan, voidaan tämän nojalla selvittää vektori \m{x} vakionvariointikaavan avulla. Integrointi ja sievennys on suoritettu käyttäen Maple-ohjelmistoa. Ratkaisuksi saadaan               \begin{align*}     \m{x}==&\left[ \begin{array} {ccc}     e^{-t}+te^{-t}(\frac{1}{800}-\frac{1}{32}e^{-8t}\cos(8t)-\frac{1}{32}e^{-8t}\sin(8t)+\frac{3}{100}e^{-8t}\cos(6t)+\frac{1}{25}e^{-8t}\sin(6t))\\e^{-t}-2e^{8t}\cos(7t)+te^{-t}(\frac{1}{800}-\frac{1}{32}e^{-8t}\cos(8t)-\frac{1}{32}e^{-8t}\sint(8t)+\frac{3}{100}e^{-8t}\cos(6t)+\frac{1}{25}e^{-8t}\sin(6t))\\ -2te^{8t}\cos(7t)+2e^{8t}\sin{7t}+e^{8t}\cos(7t)(\frac{143}{160000}+\frac{1}{32}te^{-8t}\cos(8t)+\frac{1}{256}e^{-8t}\cos(8t)+\frac{1}{32}e^{-8t}\sin(8t)t-\frac{3}{100}e^{-8t}\cos(6t)t-\frac{3}{625}e^{-8t}\cos(6t)-\frac{1}{25}e^{-8t}\sin(6t))\\2e^{8t}\sin(7t)-e^{8t}\sin(7t)(\frac{143}{160000}+\frac{1}{32}te^{-8t}\cos(8t)+\frac{1}{256}e^{-8t}\cos(8t)+\frac{1}{32}e^{-8t}\sin(8t)t-\frac{3}{100}e^{-8t}\cos(6t)t-\frac{3}{624}e^{-8t}\cos{6t}-\frac{1}{25}e^{-8t}\sin(6t)t-\frac{7}{5000}e^{-8t}\sin(6t)\\2e^{8t}\sin(7t)+e^{-t}(\frac{1}{800}-{1}{32}e^{-8t}\cos(8t)-\frac{1}{32}e^{-8t}\sin{8t}+\frac{3}{100}e^{-8t}\cos(6t)+\frac{1}{25}e^{-8t}\sin(6t))\\-\frac{1}{13600}e^{8t}\cos(7t)(-119e^{8t}+544\cos(6t)-408\sin(6t)-800\cos(2t)+200\sin(2t)+800-425\cos(8t)+425\sin(8t)-16000\sin(t)^2-400\sin(t)\cos(t))e^{-8t}          \end{array} \right.\\          &\left.\begin{array} {cc}      +\frac{1}/{13600}te^{-t}(-119e^{8t}+544\cos{6t}-408\sin(6t)-800\cos(2t)+200\sin(2t)+800-425\cos(8t)+425\sin(8t)-1600\sin(t)^{2}-400\sin(t)\cos(t))e^{-8t}\\-\frac{1}{13600}(-te^{-t}+e^{8t}\sin(7t))(-119e^{8t}+544\cos(6t)-408\sin(6t)-800\cos(2t)+200\sin(2t)+800-425\cos(8t)+425\sin(8t)-1600\sin(t)^{2}-400\sin(t)\cos(t))e^{-8t}\\+e^{8t}\sin(7t)(-\frac{7}{5000}+\frac{1}{25}e^{-8t}\cos(6t)+\frac{7}{5000}e^{-8t}\cos(6t)-\frac{3}{100}e^{-8t}\sin(6t)t-\frac{3}{625}e^(-8t)\sin(6t)-\frac{1}{32}te^{-8t}\cos(8t)+\frac{1}{32}e^{-8t}\sin(8t)t+\frac{1}{256}e^{-8t}\sin(8t))-\frac{1}{13600}te^{8t}sin(7t)(-119e^{8t}+544\cos(6t)-408\sin(6t)-800\cos(2t)+200\sin(2t)+800-425\cos(8t)+425\sin(8t)-16000\sin(t)^2-400\sin(t)\cos(t))e^{-8t}\\+e^{8t}\cos(7t)(-\frac{7}{5000}+\frac{1}{25}e^{-8t}\cos(6t)t+\frac{7}{5000}e^{-8t}\cos(6t)-\frac{3}{100}e^{-8t}\sin(6t)t-\frac{3}{625}e^{8t}\sin(6t)-\frac{1}{32}te^(-8t)\cos(8t)+\frac{1}{32}e^{-8t}\sint(8t)t+\frac{1}{256}e^{-8t}\sin(8t))-\frac{1}{13600}(e^{8t}\sin(7t)+te^{8t}\cos{7t})(-119e^{8t}+544\cos(6t)-408\sin(6t)-800\cos(2t)+200\sin(2t)+800-425\cos(8t)+425\sin(8t)-16000\sin(t)^2-400\sin(t)\cos(t))e^{-8t}\\-\frac{1}{3600}(e^{-t}+e^{8t}\cos(7t))(-119e^{8t}+544\cos{6t}-408\sin(6t)-800\cos(2t)+200\sin(2t)+800-425\cos(8t)+425\sin(8t)-16000\sin(t)^{2}-400\sin(t)\cos(t))e{-8t}\\+2e^{8t}\sin(7t)     \end{array}\right],     \end{align*}     \\     Sijoittamalla ratkaisuun \(t=0\) saadaan vektori \textbf{c}, joten yhtälöryhmän ratkaisu on oikea. Alkuperäisen differentiaaliryhmän ratkaisut x_1 -- x_6 voidaan lukean edeltävän matriisin vastaavilta riveiltä. Ratkaisun stabiiliutta voidaan tarkastella niin kutsutun Lyapunovin lauseen avulla. Sen nojalla yhtälöryhmän ratkaisu on stabiili mikäli kerroinmatriisien kaikkien ominaisarvojen reaaliosat ovat negatiivisia. Koska \(\RE(\lambda_{3,4,5,6})=8\]), ratkaisu ei ole stabiili.          \eject     \end{document}


title: Mirror tilde accent

text: Does anybody know if there is a "mirror" tilde accent command in any package? That is, the "wiggling" of the tilde accent going in the other direction. Something like defining this `\backtilde` command:               \newcommand{\backtilde}[1]{\overset{\backsim}{#1}}      but not quite. The kerning, sizes, etc... are not the same as with the `\tilde{}` command. Related to this: a mirror version of the `\vec{}` accentuation.


title: coloring entire row of tabular*

text: I would like to have the first row of all my tables colored with a certain color (below `yellow`) but somehow below thing is not working as expected This:               \documentclass[a4paper, 12pt]{report}     \usepackage{colortbl}          \begin{document}          \begin{tabular*}{0.90\textwidth}{@{\extracolsep{\fill}}ll}     \rowcolor{yellow}     OS & Features \\ \hline     iOS & blah blah.\\     Android & blah blah.\\     \end{tabular*}          \end{document}      Results in this: ![enter image description here](http://i.stack.imgur.com/wvkts.png) Which is undesired because of the blank space between `OS` and `Features` Additionally I would like to make the `hline` a bit wider so it matches the width of the yellow area, or make the yellow area a bit narrower so it matches the horizontal line. How can i do this? Any help is high appreciated.


title: Generate analog clock with numbered face

text: I'm trying to generate a clock similar to as in the question asked here But I want the face to be numbered. Is this possible with this package or any other?


title: Equations in normal LaTeX to MathJax formatting

text: To use the `align` environment in a document one does something like:               \begin{align*}     x &= \sqrt{4^2-1^2} \\       &= \sqrt{15}.     \end{align*}put       However, to achieve the same desired output on a webpage which uses `MathJax` to render math, as math.se does:               \[       \begin{align*}     x &= \sqrt{4^2-1^2} \\       &= \sqrt{15}.       \end{align*}     \]      must be done. I want to save in some `tex` files the contents of some possible post for webpages which use `MathJax`, so the post would be whatever is between `\begin{document}` and `\end{document}`. But also, I want these documents to be compilable using `pdflatex`. In order to achieve that, either the `\\[ \\]` or the `align` (and the like) environment must be redefined. How to do so?


title: Best practices longtable

text: I have a long table with the explanation of 50 items (the MWE displays only 9). I believe this is hard to read. How do I make it easy to read?               \documentclass[10pt,cleardoublepage=empty,twoside]{book}     \usepackage[a5paper]{geometry}     \usepackage{longtable}     \usepackage[T1]{fontenc}      \usepackage{booktabs}          \begin{document}     \begin{longtable}{p{4.8cm} p{4.8cm}}     \caption{Lorem ipsum dolor sit amet, orci vivamus ac neque augue cras, pellentesque libero integer.}\\     \textsc{Lorem ipsum dolor sit amet}&\textsc{Lorem ipsum}\\     \midrule     \endfirsthead     \caption[]{(continued)}\\     \endhead     \endlastfoot          aenean ipsum enim egestas dui amet, ut condimentum ipsum vel arcu ullamcorper, nec et quis dolor mi, nunc id laoreet velit elit sit orci. Pede vestibulum ac amet     &\textit{enean}\slash \textit{egestas}\\          pede vestibulum ac amet     &\textit{egestas}\slash \textit{condimentum}\\          aenean ipsum enim egestas dui amet, ut condimentum ipsum vel arcu ullamcorper, ante voluptatem, suspendisse sed euismod leo     &\textit{hasellus}\slash \textit{egestas}\\          pede vestibulum ac amet.     &\textit{egestas}\slash \textit{condimentum}\\          aenean ipsum enim egestas dui amet, ut condimentum ipsum vel arcu ullamcorper     &\textit{laoreet}\slash \textit{velit}\\          aenean ipsum enim egestas dui amet, ut condimentum ipsum vel arcu ullamcorper, ante voluptatem, suspendisse     &\textit{enean}\slash \textit{egestas}\\          mauris lectus vel nulla neque lectus vel nulla eget cras luctus enim pharetra, curabitur sed curabitur sed vitae, lectus vel nulla neque     &\textit{egestas}\slash \textit{condimentum}\\          mauris eget cras luctus enim pharetra, curabitur sed vitae, lectus vel nulla neque     &\textit{cras}\slash \textit{enim}\\          sapien in sed. Sit lectus sed nullam, condimentum elit quae, morbi lacus nullam dictum libero convallis      &\textit{convallis}\slash \textit{Sit}\\     \end{longtable}     \end{document}      Output (extract): ![Table](http://i.stack.imgur.com/qoMX6.png) I also have this other table. Do you think it could look better than this?               \documentclass[10pt,cleardoublepage=empty,twoside]{book}     \usepackage[a5paper]{geometry}     \usepackage[english]{babel}     \usepackage{longtable}     \usepackage{multirow}     \usepackage[T1]{fontenc}      \usepackage{booktabs}          \begin{document}          \begin{longtable}{l l}     \caption{Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh}\\     \textsc{Lorem Ipsum}&\textsc{Ament}\\     \midrule     \endfirsthead     \caption[]{(continued)}\\     \textsc{Semantic Category}&\textsc{Variable}\\     \midrule     \endhead     \endlastfoot     \multirow{3}{*}{consectetur eiusmod tempor}&\textit{dolor}/\textit{sit}\\ &\textit{ament}/\textit{sit}\\ &\textit{laboris}/\textit{explicabo}\\     \\     \multirow{3}{*}{consectetur adipisicing elit, sed do eiusmod}&\textit{exercitationem}/\textit{voluptatem}\\ &\textit{incidunt}/\textit{laboris}\\     &\textit{aliquid}/\textit{explicabo}\\     \\     \multirow{2}{*}{consectetur adipisicing elit, sed do}& \textit{holiday}/\textit{exercitationem}\\     &\textit{sundown}/\textit{laboris}\\     \\     \multirow{2}{*}{consectetur adipisicing, sed do eiusmod}&\textit{laboris}/\textit{incidunt}\\     &\textit{exercitationem}/\textit{voluptatem}\\     \\     consectetur adipisicing elit, sed&\textit{aliquid}/\textit{incidunt}\\     \\     consectetur elit, sed do eiusmod&\textit{explicabo}/\textit{laboris}\\     \end{longtable}          \end{document}


title: Cannot install mh package with MiKTeX

text: Well, I open the MiKTeX Package Manager window, I search for the `mh` bundle, then I try to install it, so it starts a download and says               Connect failed in tcp_connect()"      It's like it cannot connect to server. How to do this?


title: Problem with numbering of figures

text: I need to reset numbering of figures and tables to 1, 2, 3 and to get rid of numbering 1.1, 1.2, 1.3,... I tried many commands but nothing worked. Could you help me please? The `.cls` file is HERE. Document:               \documentclass[thesis=B,czech]{FITthesis}[2012/06/26]          \usepackage[utf8]{inputenc}          \usepackage{graphicx}          \department{text}     \title{text}     \authorGN{text}     \authorFN{text}     \authorWithDegrees{text}     \supervisor{text}     \acknowledgements{text}     \abstractCS{text}     \abstractEN{text}     \placeForDeclarationOfAuthenticity{text}     \declarationOfAuthenticityOption{1}     \keywordsCS{text}     \keywordsEN{text}          \begin{document}          \begin{introduction}         %     \end{introduction}          \chapter {First}          text          \begin{figure}[h]       \caption{Function.}       \label{fig:function}     \end{figure}          \begin{conclusion}         %     \end{conclusion}          \appendix          \end{document}


title: How to create a bent arrow at a rectangle corner?

text: I have created a rectangle and just can't find the solution how to draw a bent arrow from the south side (close to the south east corner) to the east side (also close to the south east corner).               \documentclass[12pt,twoside,a4paper]{report}          \usepackage{a4}      \usepackage{tikz}      \usetikzlibrary{calc,decorations.markings,arrows,backgrounds,calendar,matrix,mindmap,patterns,shadows,trees,positioning}          \begin{document}           \begin{tikzpicture}[auto, node distance=1cm,         block_small/.style ={rectangle, draw=black, thick, fill=white, text centered, text width=4em, minimum height=4em}]            \node [block_small, xshift=-3.3cm] (A) {A} ;     \node [block_small,right of=A, xshift=3.3cm] (B) {B} ;           \begin{pgfonlayer}{background}              % Rectangle                      \path (A.west |- A.north)+(-0.45,0.45) node (a) {};         \path (B.south -| B.east)+(0.45,-0.45) node (b) {};         \path[draw=black!50, dashed] (a) rectangle (b);          \end{pgfonlayer}           \end{tikzpicture}       \end{document}      I have spent already too much time on this and hope someone may help!


title: Vertical alignment of atoms in chemfig

text: I have a problem aligning atoms in `chemfig` when one of the atoms has a descender. The solution proposed in the manual is not really good, because it changes the position of bonds. Consider the test case:               \documentclass{article}     \usepackage{tikz}     \usepackage{chemfig}     \begin{document}          \fbox{\chemfig{A-X-M} \chemfig{A-X-Mg}}          \fbox{\chemfig{A-X-M} \chemfig{{A\strut}-{X\strut}-Mg}}          \end{document}      which gives: ![enter image description here](http://i.stack.imgur.com/RfhCg.png) In the top row, the second formula has `Mg` too high. When adding the `\strut` (or `\vphantom`) to the other atoms, the bond lines are then too low, which is especially bad if you are displaying different formulas side by side, as in the example. Is there any way I can move the `Mg` label down or make the descender invisible to `\chemfig`?


title: Figures hiding behind text below it

text: I am preparing a paper for the SIAM journal and had lot of issues with including figures. Finally I converted my figures to pdf and added a `bb` field in `\includegraphics`. Now it produces output, but the figures are hiding behind the text which is following the figures. The `siamlatex1213.cls` file can be found at http://www.siam.org/journals/auth-info.php.               \documentclass[final,leqno,onefignum,onetabnum]{siamltex1213}     \begin{document}     \begin{figure}[h]      \begin{center}     \includegraphics[width=1in,bb=0 0 575 575]{wheelnode.pdf}     \label{Wheel node}     \end{center}     \caption{Wheel node Structure}     \end{figure}     \end{document}      I am running this file by WinEdt. First I texify and then run `dvi to pdf`. If I remove the `bb` field in `\includegraphics` it gives the error message: `wheelnode.bb not found`. I tried to include an image file here but failed as uploading of pdf files is not allowed.


title: LaTeX Documentation containing the classes and functions and definition for each

text: Is there a LaTeX Documentation similar to Java Documentation, showing the packages, the classes to use and a sample example?


title: The √ symbol in the unicode-math package

text: I'm using the unicode-math package in comination with xelatex. Thanks to this package I can write unicode symbols in the tex code. However some unicode symbols, don't compile the way I would expect it. For example, I hoped that if type `$√{2+3}$` that this would compile the same way as `$\sqrt{2+3}$`. But I get this output: ![enter image description here](http://i.stack.imgur.com/IVcW9.png) What is happening here, and how can I fix this ? Edit: I understand now that I can fix this using:               \usepackage{unicode-math,newunicodechar}     \newunicodechar{√}{\sqrt}      Now I'm wondering how I could define something like: `\unicodedef█#1{\begin{equation}#1\end{equation}}`


title: chapter-first page-fancyhdr: hide title, but keep page number

text: In my diss (book document), I have headers (chapter title and page) appearing on chapters' first page as well. For each first page, I would like to remove the chapter name, and just keep the page number. This will prevent repetitions. From the second page onwards, classical heading should apply (chapter/session name + page number). I would like to have the same for TOC and LOF as well, but TOC shows no headers at all on the first page. Any help would be greatly appreciated. Sincerely, Udiubu. Below the relevant coding:               \documentclass[openright,a4paper,12pt,twoside]{book}     \titleformat{\chapter}[display]{\normalfont\huge\bfseries}{\chaptertitlename\\thechapter}{16pt}{\Large}     \usepackage{fancyhdr}     \setlength{\headheight}{15.2pt}     \pagestyle{fancy}     \renewcommand{\chaptermark}[1]{     \markboth{\thechapter.\ #1}{}}     \renewcommand{\sectionmark}[1]{     \markright{\thesection.\ #1}}     \lhead[\thepage]{\leftmark}     \rhead[\rightmark]{\thepage}     \fancyfoot[C]{} %remove page number from footer     \makeatletter %insert header on title pages     \let\ps@plain\ps@fancy     \makeatother          \begin{document}           ... %other pages here          \newpage     \begin{onehalfspacing}     \section*{Acknowledgments}     These are the aknowledgments     \end{onehalfspacing}          \cleardoublepage     \begin{doublespace}     \pagenumbering{roman}     \setcounter{page}{11}     \tableofcontents     \thispagestyle{fancy}     \end{doublespace}          \newpage     \thispagestyle{plain}     \addtocontents{lof}{\protect\addcontentsline{toc}{chapter}{Figures}}     \listoffigures          \mainmatter     \pagenumbering{arabic}     \pagestyle{fancy}     \chapter{Lorem Ipsum}          Lorem Ipsum           \end{document}


title: Table with a numbered list

text: What is the best way to make a table/list that looks like this:               1. Item 1             subitem      type    date             subitem      type    date          2. Item 2             subitem      type    date             subitem      type    date     ...      The subitems, types and dates should be aligned. I'm using the `article` document class with no special fonts.


title: matlab2tikz externalize graphics only

text: I recently discovered the part of pgfplots that allows you to add external graphics with the `\addplot graphics` command. I have a matlab plot converted to tikz with matlab2tikz. Problem is that the plot contains A LOT of data points and I don't want to process them every time I compile my document. My question is as follows: Is it possible to _externalize_ the curve of the plot only, such that I'm able to alter the axes/legend/title at any time without processing all the curve data again (i.e. I compile the complete tikz picture once, then externalize the curve only as a PDF file, such that that PDF can be used later with the `\addplot graphics`.)? Maybe this is possible with the `\addplot graphics` command but I can't find out how.


title: How can I improve my Turkish Small Capitals (XeTeX)

text: ### Status update In a private email, Bogusław Jackowski (to whom my sincere thanks) has recognised this as a bug in the TeX Gyre fonts. As the TeX Gyre team are all working hard on another piece of the TeX Gyre project, he cannot commit to a date for fixing this, but his best estimate is sometime next year. * * * Turkish characters to small caps and Turkish characters to uppercase attempt to address the tribulations of those of us who need to deal with the dotted letter i/İ, in full-size and small capitals. As far as I can see, all the answers address the `pdftex` engine. Here's my MWE to illustrate my annoyance:               \documentclass[a4paper,12pt]{article}     \usepackage{fontspec}     \setmainfont{TeX Gyre Adventor}     \begin{document}     \noindent     {\Huge       \textsc{Eb\.ı} \.Incelemesi\\[6pt]       \textsc{Eb\.{}\kern -0.215em ı} \.Incelemesi     }     \end{document}      and here's the output: ![PDF output screen capture](http://i.stack.imgur.com/JXcO9.png) Now, can anyone, please, explain to me:   1. (Curiosity) Why is the dot accent over the B so badly out-of-joint?    2. (Real question) Given that (a) none of my fonts appears to have the TRK feature; (b) although they have a small caps dotted İ, the position in the glyph table varies, and the Unicode code point, of course, is at some random location in the Private Area; and (c) the time I spent hand-tuning the "-0.215em" will almost certainly need to be spent again if I change fonts; then what better and more robust method is there for producing the second line? * * * Further to EGreg's interesting comment, I 'made up' a new MWE, with an extra ı just to emphasize the problem:               \documentclass[a4paper,12pt]{article}     \usepackage{fontspec}     \setmainfont[%       Script=Latin,       Language=Turkish,       ]{TeX Gyre Adventor}     \begin{document}     \noindent     {\Huge       \textsc{Ebiı} İncelemesi\\[6pt]     }     \end{document}      Here's the output; the dot is still missing: ![More PDF output](http://i.stack.imgur.com/44d0e.png) * * * So now I'm getting irritated with myself, and I add another option:               \setmainfont[%       Script=Latin,       Language=Turkish,       Letters=UppercaseSmallCaps,       ]{TeX Gyre Adventor}      which gives the same result. Then I switched to Brill, with the same options, and got this: ![output from Brill](http://i.stack.imgur.com/7hxoN.png) which, of course, is not what I want, as EBİ is now all uppercase, not SC. At which point I'm going to sleep on it. What's the correct behaviour for `Letters=UppercaseSmallCaps`?


title: Removing “Chapter” from chapter headings, change font and spacing, and center

text: I’m using the book style in LaTeX. I want my chapter headings to look like this:                     1      Great Chapter      It should be in the sans-serif and bold font, centered, and I want to be able to customize the spacing before and after the heading, and also customize the spacing between the “1” and the “Great Chapter.” How can I do this in LaTeX?


title: The pst-plot package cannot be found

text: Consider the following (or any other compilable document):               \documentclass{article}          \usepackage{pst-plot}          \begin{document}     Test     \end{document}      If I compile using `latex`, I get the error               ! LaTeX Error: File `pst-plot.sty' not found.      I have an up-to-date TeX Live 2013 distribution. Can anyone tell me how to fix this (whitout putting `pst-plot.tex` and `pst- plot.sty` in the same directory as the document)? P.S. The problem hasn't occured before today. **Update** Herbert has now fixed it and put the new version on CTAN; thank you for that.


title: How can I align at relation symbols within a cases environment?

text: I have used the following code in LaTeX -               \documentclass{article}     \usepackage{amssymb,amsmath}     \begin{document}          \begin{table}[H]     \centering       \begin{tabular}{c|c}       \hline        { $X=y+z$}  & {         \parbox[c]{0.75\columnwidth}{         $C_L = \begin{cases}              min\left[\left(Re\right),\: f(B)\right]\:;\: A<4\\                f(E)\:;\:4\le E<10\\              -0.29\:;\: E\ge10             \end{cases}$\\          $f(E) = E^{3}-0.0159E^{2}-0.0204E+0.474$\\       }     }\tabularnewline \hline     \end{tabular}      \end{table}               \end{document}      In the output, I would like the equals sign of `C_L` and `f(E)` to be aligned with each other. I have tried to use `align` environment, but it doesn't work. Can anyone please help? ![imageoutput](http://i.stack.imgur.com/OKHuK.png)


title: Text-mode in fractions?

text: I want to have written words in a fraction but to have them in correct fraction form and not crude-looking. So, I have;               $\displaystyle\frac{Actual Value of Production}{Demand}$ x $100$       But it makes the text appear in math-mode so all italics with no spaces and looks awful. If I remove the `$` it just won't appear. Any help?


title: Is there any software that converts latex file to tex file?

text: I was asked to convert a file from LaTeX format to TeX format, so it could be compiled by TeX. I use LaTeX a lot, but I'm quite unfamiliar with TeX. And the file is pretty long. So I was wondering if there's software or trick could simplify a bit the task. BTW, I haven't installed TeX on my Ubuntu machine because I think I can use pdftex to test if the file is compatible with TeX. Am I right? * * * Edit: The reason that I need to do this is that my supervisor asked me to convert something that I wrote with LaTeX into TeX style because he only knows how to use TeX. So the file should not only be compiled by TeX, but the grammar should also be TeX style so my supervisor could understand and modify it.


title: Chessboard board size

text: Is it possible to change the size of a \chessboard size. I know it has fixed sizes like tinyboard and so on. But if I just want to scale it down or up by 5%, is that possible?


title: How to edit the length of a color box?

text: I've typed my Resume and Im using a color box, with a line underneath it. However the grey colored box doesn't reach the full length of the page width.               \documentclass[letterpaper,11pt]{article}     \usepackage[left=0.9in, right=0.8in]{geometry}     \pagestyle{empty}     \raggedright     \def\bull{\vrule height 0.8ex width .7ex depth -.1ex }              \newcommand{\lineunder}{\vspace*{-8pt} \\ \hspace*{-18pt} \hrulefill \\} %command for the Line to be drawn          \usepackage[usenames,dvipsnames]{color}     \definecolor{mygrey}{gray}{.90}     \newcommand{\headergrey}[1]{\hspace*{-18pt} \colorbox{mygrey}          {\begin{minipage}         {\textwidth}{\textsc{#1}}         \end{minipage}}\lineunder}          \begin{document}          \headergrey{Objective}         Seeking a Full Time position in the area of Blah blah blah Blah      \end{document}      See the image attached so as to what i mean please. ![Image](http://i.stack.imgur.com/MOcqw.png)


title: Can I make siunitx commands use serif fonts like the rest of the math in beamer?

text: In a beamer presentation I can use `\usefonttheme[onlymath]{serif}` to typeset the math in a serif font while the rest of the presentation is in a sans-serif font. But the `\SI` command from `siunitx` appears to typeset its argument as text, which means it follows the text font style, not the math one. Is there a way I can change this so that quantities with units appear with a serif font just like other math, whereas the text is still sans-serif?               \documentclass{beamer}     \usefonttheme[onlymath]{serif}     \usepackage{siunitx}          \begin{document}      \begin{frame}       Text appears in sans-serif font            $x,2y,3z$ appears in serif font            $\SI{1}{m}$ appears in sans-serif font, would like it to be serif      \end{frame}     \end{document}      I've tried things like `\sisetup{math-rm=\mathrm, text-rm=\rmfamily}` or passing the `detect-family` option to `siunitx`, but no luck. Of course I could just change the font family of the entire document to be serif, but I'd like to know whether I have another option.


title: Illuminated manuscripts & LaTeX

text: How can I produce _Illuminated manuscripts_ (something like this)? Are there existing examples of illuminated manuscripts made with latex, or websites that provide initials or decorations with this style?


title: Drawing ellipse that passes through specified coordinates

text: I'm trying to draw an ellipse that must pass through `(0, -1)`, `(0, 1)`, `(-1, 0)`, `(1, 0)`, `(1, -1)` and `(-1, 1)`. My MWE is below. I know that, I'm missing some math here. ![enter image description here](http://i.stack.imgur.com/PVl3d.png)               \documentclass{standalone}     \usepackage{tikz}     \usetikzlibrary{shapes.geometric}          \begin{document}          \begin{tikzpicture}          \draw [help lines] (-2, -2) grid (2, 2);     \draw[rotate=45] (0, 0) ellipse (0.5cm and 1.5cm);          \filldraw[black] (0, 0) circle(1.5pt);     \filldraw[black] (0, 1) circle(1.5pt);     \filldraw[black] (1, 0) circle(1.5pt);     \filldraw[black] (-1, 0) circle(1.5pt);     \filldraw[black] (0, -1) circle(1.5pt);     \filldraw[black] (1, -1) circle(1.5pt);     \filldraw[black] (-1, 1) circle(1.5pt);          \draw[<->] (-2.0, 0) -- (2.0, 0) node[right]{\footnotesize $X_{1}$};     \draw[<->] (0, -1.5) -- (0, 1.5) node[above]{\footnotesize $X_{2}$};          \node[above right] at (0, 1)   {\tiny $\left(0, 1\right)$};      \node[above right] at (1, 0)   {\tiny $\left(1, 0\right)$};      \node[above left]   at (-1, 0)  {\tiny $\left(-1, 0\right)$};      \node[below right] at (0, -1)  {\tiny $\left(0, -1\right)$};      \node[below right] at (1, -1)  {\tiny $\left(1, -1\right)$};      \node[above left]   at (-1,  1)  {\tiny $\left(-1, 1\right)$};           \end{tikzpicture}          \end{document}      **Edit** The equation of the ellipse is $X_1^2 + X_1 X_2 + X_2^2 = 1$.


title: Regular Equation Numbering in extbook environment without manual \tag?

text: I am currently using the `extbook` environment and have some chapters and sections. The equations, by default, are being labeled within the chapter that they are in. Is there any way I can switch the equation labeling to the number of the equation in the entire document (as it typically is, when there are no chapters, sections, etc.).


title: \rput does rotate my whole document

text: When using `\rput`with the rotation parameter it seems to rotate my whole document if the rotated text is longer then the non-rotated text. See this minimal example:               \documentclass[dvips]{article}     \usepackage{pst-all}     \begin{document}     \pagestyle{empty}     \fontfamily{phv}\selectfont     \psset{xunit=1cm,yunit=1cm,runit=1cm}     \psset{linewidth=1pt}     \begin{pspicture}(16,11)         \psframe[fillstyle=solid](16,11)              % Koordinaten Unten         \psline[linewidth=2pt]{<->}(1,0.5)(15,0.5)         \rput(8,0.2){\textbf{HText1}}         \rput[l](3,0.7){HText2}         \rput[r](13,0.7){HText3}              % Koordinaten Seite         \psline[linewidth=2pt]{<->}(0.5,1)(0.5,10)         \rput[l]{90}(0.75,2){VText1}         \rput[r]{90}(0.75,9){VText2}         %\rput{90}(0.25,5.5){\textbf{VText3}} % This does the right thing         \rput{90}(0.25,5.5){\textbf{VText3 Rotate}} % This leads to rotation     \end{pspicture}     \end{document}      So if the short text (VText3) is printed, the document has the right rotation. If the long text (VText3 Rotate) is printed, the document rotates. Is there a way to shut this down?


title: How do I change the typeface from bold to normal for text written on the table of contents pages?

text: In the table of contents, the chapter number and chapter name are bold while the section and subsection numbers and names are not bold. How do I remove the bold from the chapter number and chapter name on the table of contents pages?


title: How to achieve enumerated list or perhaps table of this form?

text: I'm trying to replicate a list in some mathematics that I'm looking at and am struggling to figure out how to do it. So far I've tried using a table and it's not looking great. Below is a link showing firstly what I've managed to do so far, and then what I am aiming for: ![http://imgur.com/a/zeFDz](http://i.stack.imgur.com/Cv5ST.png) ![enter image description here](http://i.stack.imgur.com/jpn3v.png) Does anyone have any ideas about how I could improve it? This is my code so far:               \begin{enumerate}[label=\Roman{*}., ref=(\roman{*})]     \setcounter{enumi}{3}     \item Composition. Subroutine $R_N (y = f(x_1 , \ldots , x_n ))$ using subroutines for $g, h$, where \hfill \hfill \linebreak $f(x_1 , \ldots , x_n ) = g(h_1 (x_1 , \ldots , x_n ), \ldots , h_m (x_1 , \ldots , x_n ))$.      \\[1\baselineskip]     \begin{tabular}{ r c l }       1. & $R_{N+1}(N+1 \ =$ & $g_1 (x_1 , \ldots , x_n))$  \\       $\vdots$ & $\vdots$ & $\vdots$ \\       m. & $R_{N+m}(N+1 \ =$ & $g_m (x_1 , \ldots , x_n))$  \\       m+1. & $R_{N+m}(y \ =$ & $h(N+1, \ldots , N+m))$ \\          \end{tabular}          \end{enumerate}


title: How do I enter ὅπερ ἔδει δεῖξαι in TeX?

text: How do I typeset this statement ![enter image description here](http://i.stack.imgur.com/DHBV4.png) if I'm using `\usepackage[default]{frcursive}` and `\usepackage[T1]{fontenc}` in my TEX file?


title: How to avoid misled inverse search caused by the picture-environment?

text: Below MWE shows four paragraphs of text and two vertical lines on top as shown on the left side of the following picture: ![PDF of MWE with problematic area marked red](http://i.stack.imgur.com/4LtTn.png) By using inverse search in the PDF viewer, that is, by clicking on any text (and _not_ on one of the two lines), I would expect that the cursor is placed at the corresponding `\lipsum` line in the TeX editor. But if clicking inside a certain area in the PDF which is marked red in the picture above, the cursor is misplaced at the `picture`-environment. How can we change this (kind of annoying) behaviour?               \documentclass{article}     \usepackage{lipsum}     \setlength\parindent{20ex} % There is no problem within the parindent-area.     \begin{document}     \setlength{\unitlength}{1cm}     \begin{picture}(0,0)     \put(2,-17){\line(0,0){15}}     \put(6,-17){\line(0,1){15}}     % To visualize the affected area, uncomment the following line.     %\linethickness{60mm}\put(3,-17){\line(0,0){15}}     \end{picture}     %We add separate lipsum blocks to recognize the misleading inverse search better.     \lipsum[1]     \lipsum[1]     \lipsum[1]     \lipsum[2]     \end{document}      (By the way, the "crop" package uses the `picture`-environment, doesn't it? In this case a solution to this question is a good starting point for an answer of the question "Inverse search jumps to wrong position in tex-file if using crop package".)


title: Is there a package for turning a beamer presentation into a grey scale presentation?

text: I have a beamer presentation in latex where I want to turn the colors into grayscale colors. It includes some graphics and text in various colors, and I want to eliminate this. Is there a way to just include a package and turn a given document/presentation to be black and white?


title: Using biblatex I want to have a section, where references are given as footnotes

text: This question relates to one of my earlier questions: biblatex footnote references At the start of my thesis I have an acknowledgements page. This page contains some references, but it is my preference to have these listed in a short bibliography at the bottom of the same page as a footer rather than bundle it all up at the end of the thesis. I'm using the numeric [#] style references. I had done my references with `natbib`, using `footbib` to handle the footnote citations. The command for placing them is `\footcite{<key>}`. I'm now trying to migrate over to biblatex. biblatex also has a `\footcite{<key>}` command, but it behaves differently, placing a [#] in the foot bibliography, (and nothing else). I'm trying to find a sensible way to implement the functionality I want and have made some progress:               \documentclass{book}     \usepackage[sorting=none,                style=chem-rsc,                %style=footnote-dw                ]{biblatex}     \usepackage{filecontents}          \begin{filecontents}{theRefs.bib}     @MISC{MatStudio2005,       author = {{Accelrys Software Inc.}},       title = {Material Studio 4.0},       year = {2005},       owner = {Administrator},       timestamp = {2010.07.02}     }          @ARTICLE{Momma2008,       author = {Momma, Koichi and Izumi, Fujio},       title = {VESTA: a three-dimensional visualization system for electronic and         structural analysis},       journal = {Journal of Applied Crystallography},       year = {2008},       volume = {41},       pages = {653-658},       number = {3},       month = {6},     }     \end{filecontents}          \addbibresource{theRefs.bib}     \newcommand{\footnoteNS}[1]{{\let\thefootnote\relax\footnote{#1}}}          \begin{document}          \chapter*{acknowledgements}         \begin{refsection}                  Things I would like to acknowledge \cite{Momma2008,MatStudio2005}                  \renewcommand{\bibfont}{\normalfont\footnotesize}             \footnoteNS{\vspace{-\baselineskip}\printbibliography[heading=none]}     %       \footnoteNS{\printbibliography[heading=none]}              \end{refsection}     \end{document}       This kind of works, but is rather horribly inelegant. Particularly if you look at the `\vspace` that I had to add to remove a space between the footer and the horizontal rule. Also, though it looks acceptable, the space between rule and bibliography is still not quite right (should be less). Can any one suggest ways forwards with this, giving consideration that I wish the references in the rest of the document operate with the current style but independently of the Acknowledgement (as if it wasn't there). This consideration is dealt with in the working example, but I could easily imagine suggestions that affect the rest of the document. Sorry if some aspect of this is not clear. I will try to amend if I have written confusing things.


title: doublepagepicture is messing up my text

text: I am very new to LaTeX's usage. I have a very big picture which takes about two pages. I found out how to do it on the following link How to include a picture over two pages, left part on left side, right on right (for books)? It has almost worked with some few exceptions. As a consequence this has changed my entire text after the figure to Latin and I am not able to get it back to English. In addition, the image is not appearing where I want it to appear but rather 8 pages after the wished position. `\clearpage` and `\cleardoublepage` are not working here is how I called the image                \lipsum      \lipsum      \twopagepicture{t}{l}{img/myimage.jpeg}{Test}      \lipsum      \lipsum      Below is the code in the preambles               \renewcommand{\topfraction}{.99}     \renewcommand{\bottomfraction}{.99}     \renewcommand{\textfraction}{.01}     \makeatletter     \newcommand*{\twopagepicture}[4]{%       \cleardoublepage       \checkoddpage     \ifoddpage         \expandafter\@firstofone     \else         \expandafter\afterpage     \fi     {\afterpage{%     \if #1t%         \if #2p%                  \thispagestyle{empty}%             \afterpage{\thispagestyle{empty}}%         \fi     \fi          \begin{figure}[#1]         \if #2p%             \if #1t%                 \vspace*{-\dimexpr1in+\voffset+\topmargin+\headheight+\headsep\relax}%             \fi         \fi         \if #1b%             \caption{#4}%         \fi         \makebox[\textwidth][l]{%         \if #2p\relax             \let\mywidth\paperwidth             \hskip-\dimexpr1in+\hoffset+\evensidemargin\relax         \else             \let\mywidth\linewidth         \fi         \adjustbox{trim=0 0 {.5\width} 0,clip}{\includegraphics[width=2\mywidth]{#3}}}%         \if #1b\else             \caption{#4}%         \fi         \if #2p%             \if #1b%                 \vspace*{-\dimexpr\paperheight-\textheight-1in-\voffset-\topmargin-  \headheight-\headsep\relax}%             \fi         \fi     \end{figure}%          \begin{figure}[#1]         \if #2p%             \if #1t%                 \vspace*{-\dimexpr1in+\voffset+\topmargin+\headheight+\headsep\relax}%             \fi         \fi         \makebox[\textwidth][l]{%         \if #2p%             \let\mywidth\paperwidth             \hskip-\dimexpr1in+\hoffset+\oddsidemargin\relax         \else             \let\mywidth\linewidth         \fi         \adjustbox{trim={.5\width} 0 0 0,clip}{\includegraphics[width=2\mywidth]{#3}}}%         \if #2p%             \if #1b%                 \vspace*{-\dimexpr\paperheight-\textheight-1in-\voffset-\topmargin-\headheight-\headsep\relax}%             \fi         \fi     \end{figure}%     }}%          }     \makeatother          \usepackage{lipsum}      What could I do to solve these two big problems? Does anyone have any idea on what is going wrong? I want to add that I'm viewing the result in pdf


title: How to manage reference efficiently? refworks or jabref or anything else?

text: When I do research, I often write papers in LaTeX (in most cases) and Microsoft Word. My question is how to manage hundreds or even thousands of papers efficiently and effectively? I know several possible solutions:   1. Use Endnote. This solution is specially suitable for Microsoft Word. If you use Word, Endnote is No. 1 option. However, it is not good for LaTeX. Because I use LaTeX most of the time, I don't use it.   2. Use a `.bib` file manager, such as Jabref. This solution is good for LaTeX users. I use this method so far. The problem is that most of these software tools, including Jabref, are not very mature and not very user-friendly.   3. Use Refworks. Refworks is a great tool based on the cloud and server. However, it is only good for "managing" references, but the most common scenario is inserting and managing reference during writing paper. Thus, Refworks is not useful if you write paper in LaTeX or Word. By the way, Refworks also offers a Microsoft Word plug-in but it is not stable compared to Endnote. Refworks also supports exporting in BibTeX format but we need to insert reference and manage them during our research life. Exporting is not a good option. According to my experience, so far the bib tool (such as jabref) is the best option. Does anyone have any better ideas?


title: Name a formula in align

text: If I have a (centered) formula/equation (in my example A+B=C) in align. How can I name this formula? I want the text to be on the right side. I know that hfill doesn't work.               \begin{align*}         A+B=C     \hfill  \text{name of the formula}          \end{align*}                \begin{itemize}      \item[$(1)$] ......      \begin{align*}      \tag{Not Centered}       A+B=C      \end{align*}      \item[$(2)$] ....      \end{itemize}


title: Is there a way to make pdfpages adhere to the page offset set by geometry

text: I'm trying to include some pdf documents at the end of my document using `pdfpages`. My document has a binding offset as defined using the `geometry` package but `pdfpages` doesn't recognise it. I've looked through the package options for `pdfpages` but can't see anything.


title: flacards and forloop is working but not with tikz foreach

text: My flashcard with `\forloop` is working after your help. I try it with `\foreach` (tikz) but it's not working. The pdf files contain only one flash card in the bottom right corner, the 24th card and the 48th,... The minimal non-working example is :                   \documentclass{flacards}         \usepackage[frenchb]{babel}         \usepackage{tikz}          \begin{document}              \foreach \x in {1,2,...,50}{\card{a}{b}}              \end{document}      but the `\forloop` version is working :                   \documentclass{flacards}         \usepackage[frenchb]{babel}         \usepackage{forloop}          \begin{document}              \newcounter{compteura}         \forloop{compteura}{1}{\value{compteura} < 11}{\card{a}{b}}              \end{document}      I prefer use `tikz` for the math possibility. Until such time I use package `calc` for doing math on counter.


title: TeX4ht - prevent line breaking in HTML?

text:
By default, TeX4ht breaks long lines of text in the input into shorter lines in the output HTML file. Is there any way to suppress these extra line breaks? (Note that I am trying to avoid extra line breaks in the **source** itself, not in the document that is ultimately displayed by the web browser.) For example, suppose I start with the TeX source               \documentclass{article}     \begin{document}     Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec ante odio, condimentum ut nunc vel, rutrum rhoncus arcu. Praesent id justo tellus. Donec ut eros sagittis, bibendum augue id, luctus nulla. Aenean commodo ultrices turpis eget cursus. Pellentesque laoreet turpis leo, gravida laoreet libero sagittis sit amet. Fusce ut suscipit purus. Donec euismod dolor sit amet risus lacinia, ut pellentesque orci posuere. Morbi rutrum, sem ut elementum elementum, urna purus faucibus felis, vel rutrum mauris risus non erat. Proin commodo felis id mi feugiat rutrum. Cras et tempor massa. Donec tempor ante sed nibh varius, quis rutrum ipsum rutrum. Integer consectetur justo fermentum libero ultrices, eu fermentum nisl tempor.     \end{document}      If I then run `htlatex`, I get the following HTML as output:               <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"         "http://www.w3.org/TR/html4/loose.dtd">             <title></title>      <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">      <meta name="generator" content="TeX4ht (http://www.cse.ohio-state.edu/~gurari/TeX4ht/)">      <meta name="originator" content="TeX4ht (http://www.cse.ohio-state.edu/~gurari/TeX4ht/)">            <meta name="src" content="test.tex">      <meta name="date" content="2013-10-02 14:03:00">      <link rel="stylesheet" type="text/css" href="test.css">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec ante odio,     condimentum ut nunc vel, rutrum rhoncus arcu. Praesent id justo tellus. Donec ut     eros sagittis, bibendum augue id, luctus nulla. Aenean commodo ultrices turpis eget     cursus. Pellentesque laoreet turpis leo, gravida laoreet libero sagittis sit amet. Fusce     ut suscipit purus. Donec euismod dolor sit amet risus lacinia, ut pellentesque orci     posuere. Morbi rutrum, sem ut elementum elementum, urna purus faucibus felis, vel     rutrum mauris risus non erat. Proin commodo felis id mi feugiat rutrum. Cras et     tempor massa. Donec tempor ante sed nibh varius, quis rutrum ipsum rutrum.     Integer consectetur justo fermentum libero ultrices, eu fermentum nisl tempor.                 Notice that the single long line in the input has been broken into many short lines in the output. I would like it to instead appear as just a single line, as before. (By the way, why do I care? Some content management systems (e.g., certain instances of WordPress) will automatically interpret newline characters in HTML as actual line breaks. Hence, the final rendered appearance of the document is wrong. One might argue that the real problem is with the CSS used in the content management system, but for a variety of reasons (permissions, backwards compatibility, etc.) modifying the CSS is often not a viable option.)


title: Creating an automated table of signs

text: When solving some inequalities in the context of algebra-precalculus course it is sometimes useful to sketch the behavior of the factors involved using a table. All becomes clear with an example - say we want to solve: ![ineq](http://i.stack.imgur.com/qJfYI.jpg) the associated table is: ![table](http://i.stack.imgur.com/slXjg.jpg) If in the inequality is a factor of the form `1/(x-a)` it's sometimes indicated in the table by using a double line `||` under the `a`. Let's call these restrictions. When teaching calculus there are some similar tables to deal with the sign of the derivatives, concavity, critical points, and so on. What I want is:   * a new type of table environment which takes as arguments the numbers where the factors change sign (-3, 0, 1).   * a way to indicate that such a number is a restrictions.   * the first two lines in the example must be typed like:              \begin{signtable}{-3}{0}{1}       x & -  & - & + & + \\     \end{signtable}`      So I post this because I think there are many possible ways to solve this and I want to know them. I wonder if this can be done better with TikZ. So far, the code of the example is:               \documentclass{article}     \usepackage{array}          \begin{document}     \begin{array}{*{5}{c|}@{}c@{}}     \multicolumn{6}{@{}c@{}}{     \begin{array}{*{10}{@{}l@{}}}     \phantom{x(x-1)(x+3} & -\infty & \hspace*{5pt} & -3 & \phantom{-} & 0 & \phantom{+}\hspace*{3pt} & 1 & \phantom{+} & +\infty     \end{array}     }\\     \cline{1-5}     x                     &  - & - & + & + &\\     \cline{1-5}     x-1                   &  - & - & - & + &\\     \cline{1-5}     x+3                   &  - & + & + & + &\\     \cline{1-5}     x(x-1)(x+3)           &  - & + & - & + &     \end{array}     \end{document}


title: Strange errors with article and tufte-latex---hard to isolate the problem

text: My setup: MacTeX, Linux Libertine, tufte-latex (usually) My problem: Strange error messages appear, documents don't compile properly, or both. This               \documentclass{article}          \begin{document}              Hello, world!          \end{document}      produces error messages (`.log` available if you need it), but the PDF output is there when I look for it. OTOH, something more complex, like               \documentclass{tufte-handout}          \begin{document}              \title{foo}         \author{bar}         \date{}         \maketitle              Hello, world!          \end{document}      produces more strange error messages, including warnings about how the `\title` and `\author` commands can be used only in the preamble (which I think we can agree is not true), and _incorrect_ PDF output (a leading page with `hyperref hyperref` at the top and nothing else). When I try to compile longer documents, there is further weirdness involving page headers (I can try to explain if necessary). So I'm having trouble just isolating the problem. I originally thought it was something to do with `tufte-latex`, but that's not it if the `article` class also produces problems; the machine in question is nearly new and I'm using the current distribution of MacTeX. What's my next move for diagnosis and solution?


title: MiKTeX missing error message

text: I used the command to suppress the screen output               latex -quiet foo.tex      `\--quiet` is implemented in MiKTeX's executables and removes all the stuff from the output stream except for the errors. It displays as below               foo.tex:3:      but the MiKTeX error should display like below               foo.tex:3: Undefined control sequence      Here the error message not showing. It shows only line number. Please advise.


title: Underline the section title text in table of contents

text: Hopefully this is easy. I would like to underline the text of the section title in the table of contents (with the section number removed). Similar to this picture, with the red line where the underline should be: ![enter image description here](http://i.stack.imgur.com/OOub5.png) Please note that I don't want to underline the section title in the document, as per this question, only its entry in the table of contents. I have tried the following code, but it doesn't work, as `\underline` expects the text to be supplied as a parameter.               \documentclass[a4paper]{article}          \usepackage{lipsum}     \RequirePackage[titles]{tocloft}          \makeatletter     \renewcommand{\cftsecpresnum}{\begin{lrbox}{\@tempboxa}}     \renewcommand{\cftsecaftersnum}{\end{lrbox}}     \setlength{\cftsecnumwidth}{0pt}     \renewcommand{\cftsecfont}{\underline}    % Doesn't work     \makeatother          \begin{document}     \tableofcontents     \section{Section 1 title}     \lipsum[1-2]     \section{Section 2 title}     \lipsum[3-4]     \end{document}


title: AASTex package: how to unnumber equations?

text: I'm using the AASTex package and I've been wondering how to unnumber equations (I hate numbers in equations that you don't even cite later!). So far I've tried the usual:   * Tried to put the `\nonumber` line after the equation (inside the `\begin{equation}` and `\end{equation}`, of course), but it doesn't work.   * Tried to do `\begin{equation*}` and `\end{equation*}`, but the package didn't recognize the command. I tried adding the `\usepackage{amsmath}` package, but this causes various features of the AASTex package to fail. Here's a working example of my LaTeX code:               \documentclass[manuscript]{aastex}     \newcommand{\vdag}{(v)^\dagger}     \newcommand{\myemail}{myemail@myuniversity.com}          \slugcomment{This is a slug comment.}          \shorttitle{A Short title!}     \shortauthors{N\'estor}          \usepackage[bookmarks,bookmarksopen,bookmarksdepth=2]{hyperref}      \hypersetup{colorlinks=true,citecolor=blue,pdftitle={PDF title},pdfauthor={Nestor}}     \begin{document}          \title{This is a glorious title that appears up.}          \author{N\'estor\altaffilmark{1}}     \affil{My department, my university}     \email{myemail@myuniversity.com}     \altaffiltext{1}{My affiliation.}     \tableofcontents     \pagebreak     \section{Introduction}     Let's start with Einstein's equation:     \begin{equation}     E=mc^2. \nonumber     \end{equation}     Easy, right?     \end{document}      Any ideas?


title: Programmatically generating LaTeX with Python

text: I'm fairly new to LaTeX and I want to generate some reports using Python. Here is some code that creates a simple table. After coding this up I began to wonder if there isn't a better way to do this. As you can see, it isn't pretty. I found this question on Tex.sx: Generating reports with LaTeX programmatically but it doesn't say much about Python. I want to do more than just create tables. The reports can get quite complex. Are there better options for generating LaTeX using Python? I've seen Cheetah mentioned for templating but I've never used it before and I'm not sure that a templating engine would be sufficient. It also appears that LaTeX has its own programming language. I need to source some existing Python code so I don't see how I can use that. What do you recommend?               import pickle     projects = pickle.load(open('projects.p', 'rb'))          with open('projects.tex', 'w') as texfile:         texfile.write('\\documentclass[a4paper,twoside]{report}\n')         texfile.write('\\begin{document}\n')         texfile.write('\\textbf{Active Projects}\n')         texfile.write('\\begin{tabular}{|c|c|c|c|c|c|}\n')              row_fields = ('plant_owner', 'tiv_usd', 'project_name', 'city_state', 'rfq', 'completion')         for summary, details in projects.values():             values = [details.__dict__[field] for field in row_fields]             texfile.write('\\hline %s \\\\ \n' % ' & '.join(values))         texfile.write('\\end{tabular}\n')         texfile.write('\\end{document}\n')


title: Configuring the thesis

text: I'm having some problems to configure the thesis. I use some template for `.cls` file from the web I tried to configure by myself and the attempt was failed. So list of problems are:   1. Page layouts for 2 title pages are NOT equal.   2. I need to configure headers and footers (add dotted lines) AFTER table of content. Tried to use `fancyhdr` but failed. Solved by using package{tocloft} There are codes for `.cls` and `.tex`. (Edited) Next update: after manipulation with page layouts I conclude that problems because of `\tableofcontents`. Fancyhdr works ONLY before `\tableofcontents`. Manipulations with page layouts DOESNT effected on page with Contents. solved Next update: still 1 problem remaining. Some conflict I find between layouts inside `\newenvironment` and outside. Here is the deal. I try to make `\newenvironment` for title page and some conflict is between `\textheight`. Before Table of Contents I have 4 pages. 2nd and 3rd pages has `\textheight` from `\newenvironment` and 1st and 4th has `\textheight` of general text.... Ideas?                   \NeedsTeXFormat{LaTeX2e}     \ProvidesClass{minimovka}[2000/07/21 v1.0 final disser class]     \LoadClass[a4paper]{report}     \RequirePackage{ifthen}     \renewcommand{\normalsize}{\fontsize{12}{18}\selectfont}     \setlength{\topmargin}{-0.62in}     \setlength{\oddsidemargin}{0.38in}     \setlength{\evensidemargin}{0.38in}     \setlength{\headheight}{0.4in}     \setlength{\headsep}{0.2in}     \setlength{\footskip}{0.4in}     \setlength{\textwidth}{5.98in} \setlength{\textheight}{9.37in}     \setlength{\parindent}{0.4in}          \newcommand{\affiliation}[2]{\newcommand{\@affiliation}     {\fontsize{16}{19}\begin{center}\bf #1\\ \bf #2\end{center}}}     %\newcommand{\UDK}[1]{\newcommand{\@UDK}{UDK #1}}     %\newcommand{\CODESPEC}[2]{\newcommand{\@CODESPEC}{#1\,-\,#2}}     \newcommand{\Distitle}[1]{\newcommand{\@Distitle}     {\fontsize{14}{14}\begin{center}\bf #1 \end{center}}}     \newcommand{\Subdistitle}[1]{\newcommand{\@Subdistitle}     {\fontsize{12}{12}\begin{center} #1 \end{center}}}     %{\fontsize{14}{28}\begin{center}\bf #1\end{center}}}     \newcommand{\Year}[1]{\newcommand{\@Year}     {\fontsize{12}{12} \bf #1}}     \newcommand{\Disauthor}[1]{\newcommand{\@Disauthor}     {\fontsize{12}{12} \bf #1}}     \newcommand{\Studprogram}[1]{\newcommand{\@Studprogram}     { #1}}     \newcommand{\Studspec}[1]{\newcommand{\@Studspec}     { #1}}     \newcommand{\Chair}[1]{\newcommand{\@Chair}     { #1}}     \newcommand{\Supervisor}[1]{\newcommand{\@Supervisor}     { #1}}     \newcommand{\Consulter}[1]{\newcommand{\@Consulter}     { #1}}     \newcommand{\City}[1]{\newcommand{\@City}     {\fontsize{12}{12} \bf #1}}          \newenvironment{front}     {\pagestyle{fancy}\fancyhf{}     \renewcommand{\headrulewidth}{0.0pt}     \renewcommand{\footrulewidth}{0.0pt}     \setlength{\topmargin}{-0.61in}     \setlength\evensidemargin{-0.61in}     \setlength\oddsidemargin{-0.21in}     \setlength{\textheight}{9.88in}     \setlength{\textwidth}{6.8in}     \setlength{\headheight}{0.4in}     \setlength{\headsep}{0.2in}     \setlength{\topskip}{0.0in}     \setlength{\footskip}{0.4in}     \setlength{\parskip}{0.0in}     }          \renewcommand{\maketitle}     {%         \begin{front}         %\normalsize         \@affiliation         \vspace{2in}         \@Distitle         \vspace{1in}         \@Subdistitle         \vfill         \begin{flushleft}         \@Year\\ \@Disauthor         \end{flushleft}              %second page         \newpage         \@affiliation         \vspace{1.5in}         \@Distitle         \vspace{1in}         {\bf \@Subdistitle}         \vspace{1in}         {\fontsize {11}{17}         \begin{flushleft}         \begin{tabular}{l l}         Studied program: & \@Studprogram\\         Studied specialization: & \@Studspec\\         Chair: & \@Chair\\         Scientific supervisor: & \@Supervisor\\         Consulter: & \@Consulter\\         \end{tabular}         \end{flushleft}         }         \vfill         \begin{flushleft}         \@City, \@Year\\ \@Disauthor         \end{flushleft}         \pagebreak         \end{front}     }      And the main `tex` file looks like:                   \documentclass[english]{minimovka}%[draft]     %packages     \usepackage[english]{babel}     \selectlanguage{english}     \usepackage[dvips]{graphicx}     \usepackage{fancyhdr}     \usepackage[compact]{titlesec}     \usepackage{titletoc}     \usepackage{tocloft}          \renewcommand{\chaptertitlename}{} %rename chapter name. actually erase the word Chapter from it     \renewcommand{\contentsname}{Contents}     \titleformat{\chapter} %configuring font size and position of chapters IN the text       {\fontsize{16}{16}\bfseries}{\thechapter.}{0pt}{}     \titleformat{\section} %configuring font size and position of sections IN the text       {\fontsize{14}{14}\bfseries}{\thesection.}{0pt}{}          \setlength\beforetitleunit{0pt}%margin before title in the text     \setlength\aftertitleunit{12pt}%margin after title in the text     \titlespacing{\chapter}{0pt}{0pt}{*2}     \titlespacing{\section}{0pt}{24pt}{*2}     \titlecontents{chapter}     [0pt]     {}%     {\contentsmargin{10pt}%     \bfseries     {\contentsmargin{0pt}\normalsize\thecontentslabel\enspace}%     \normalsize}     {\bfseries\contentsmargin{0pt}%     \large}     {\dotfill\thecontentspage}     \titlecontents{section}     [10pt]     {}%     {\contentsmargin{10pt}%     {\contentsmargin{0pt}\normalsize\thecontentslabel\enspace}%     \normalsize}     {\contentsmargin{0pt}%     \large}     {\dotfill\thecontentspage}                         \begin{document}     %title page     \affiliation{My University}{My faculty}     \Distitle{Title}     \Subdistitle{Writing work to the PhD thesis}     \Year{2013}     \Disauthor{My name}     \Studprogram{My program}     \Studspec{4.1.3. Name of program}     \Chair{My chair}     \Supervisor{My supervisor}     \Consulter{My Consulter}     \City{My city}     %     \maketitle          \input{acknowl}     \newpage     \input{abstract}     \newpage     \tableofcontents     \addcontentsline{toc}{chapter}{Table of contents}     \cfoot{\thepage}     \chapter*{Introduction}     \addcontentsline{toc}{chapter}{Introduction}     dfdf     \chapter{Literature review}     sesdsd     \chapter{Data}     asdsad     \section{Data 1}     sdfsdfsdgf     \chapter*{Conclusions}     \addcontentsline{toc}{chapter}{Conclusions}     sdsd     sgfsadgfs               \end{document}


title: Plotting a Function in pgfplots with a Gap in the Domain

text: I recently received help plotting the function here. I would now like to remove a portion of the graph. I want to remove the part with -2<= x <= 1. When I comment it out, pgfplots fills in the gap with a straight line. But, I would like that portion of the graph to disappear entirely and result in a function with a disconnected domain. Is that possible?


title: LaTeX template for a technical reference manual / user guide?

text: I'm looking to use LaTeX for my technical documentation needs (such as reference manuals, user guides, etc). Could I use your template to quickly get started in order to avoid being overwhelming by the LaTeX world... tons of packages and control sequences. At minimum, I will need a template for Table of Contents, figures, tables, Index, Glossary. Any other goodies would be welcome too. Also, any good (and free) front-ends? I'm thinking of going with Lyx but not sure if there are any better alternatives. Finally, has anyone got any experience with the DITA and LaTeX? If I understand it correctly, DITA is for building 'configurable documentation', one that you can sew together from individual, independently written pieces written in XML. If you those pieces were in LaTeX instead, I guess you could use the two together. The technical documentation is for software, btw.


\documentclass[preview,border=12pt]{standalone}     \usepackage{pst-tree}     \psset{treemode=R,edge=\ncline}          \def\ABCD{%         \psTree{\Tcircle{A}}              \psTree{\Tcircle{B}}                  \pstree{\Tcircle{C}}{\Tcircle{D}}                 \pstree{\Tcircle{D}}{\Tcircle{C}}             \endpsTree             \psTree{\Tcircle{C}}                  \pstree{\Tcircle{B}}{\Tcircle{D}}                 \pstree{\Tcircle{D}}{\Tcircle{B}}             \endpsTree             \psTree{\Tcircle{D}}                  \pstree{\Tcircle{B}}{\Tcircle{C}}                 \pstree{\Tcircle{C}}{\Tcircle{B}}             \endpsTree         \endpsTree     }          \def\BACD{%         \psTree{\Tcircle{B}}              \psTree{\Tcircle{A}}                  \pstree{\Tcircle{C}}{\Tcircle{D}}                 \pstree{\Tcircle{D}}{\Tcircle{C}}             \endpsTree             \psTree{\Tcircle{C}}                  \pstree{\Tcircle{A}}{\Tcircle{D}}                 \pstree{\Tcircle{D}}{\Tcircle{A}}             \endpsTree             \psTree{\Tcircle{D}}                  \pstree{\Tcircle{A}}{\Tcircle{C}}                 \pstree{\Tcircle{C}}{\Tcircle{A}}             \endpsTree         \endpsTree     }          \def\CABD{%         \psTree{\Tcircle{C}}              \psTree{\Tcircle{A}}                  \pstree{\Tcircle{B}}{\Tcircle{D}}                 \pstree{\Tcircle{D}}{\Tcircle{B}}             \endpsTree             \psTree{\Tcircle{B}}                  \pstree{\Tcircle{A}}{\Tcircle{D}}                 \pstree{\Tcircle{D}}{\Tcircle{A}}             \endpsTree             \psTree{\Tcircle{D}}                  \pstree{\Tcircle{A}}{\Tcircle{B}}                 \pstree{\Tcircle{B}}{\Tcircle{A}}             \endpsTree         \endpsTree     }          \def\DABC{%         \psTree{\Tcircle{D}}              \psTree{\Tcircle{A}}                  \pstree{\Tcircle{B}}{\Tcircle{C}}                 \pstree{\Tcircle{C}}{\Tcircle{B}}             \endpsTree             \psTree{\Tcircle{B}}                  \pstree{\Tcircle{A}}{\Tcircle{C}}                 \pstree{\Tcircle{C}}{\Tcircle{A}}             \endpsTree             \psTree{\Tcircle{C}}                  \pstree{\Tcircle{A}}{\Tcircle{B}}                 \pstree{\Tcircle{B}}{\Tcircle{A}}             \endpsTree         \endpsTree     }          \begin{document}     \psTree[thislevelsep=0]{\Tn}         % commenting one of the following will fix the problem, but why?         \ABCD         \BACD         \CABD         \DABC     \endpsTree     \end{document}      ![enter image description here](http://i.stack.imgur.com/ljS3h.png) Why does adding one more subtree make a cropped output? ## My batch file               rem LatexDviPsPdf.bat          echo off          rem %1 TeX input filename without extension          if exist "%~1.pdf" del "%~1.pdf"          if exist "%~1.tex" latex -shell-escape "%~1.tex"          if exist "%~1.dvi" dvips -t unknown "%~1.dvi"          if exist "%~1.ps" gswin64c -r10000 -dCompatibilityLevel=1.5 -dAutoRotatePages=/None -sDEVICE=pdfwrite -o "%~1.pdf" "%~1.ps"          for %%x in (aux dvi log out ps toc nav snm) do (if exist "%~1.%%x" del "%~1.%%x")


title: Packages: graphics vs graphicx

text: Different websites suggest using one of those two packages.               \usepackage{graphicx}     \usepackage{graphics}      What are differences between them? Which is better?


title: Commutative Diagrams with internal mappings

text: I'd like to produce a commutative diagram with mappings specified inside it, as follows: ![Yoneda](https://upload.wikimedia.org/wikipedia/commons/b/b1/YonedaLemma-02.png) My rankly amateur efforts so far have centered on tikzcd with extra columns and rows, as in               \usepackage{tikz-cd}     \begin{document}     \[      \begin{tikzcd}     Zap \arrow{rrr}{foo}          \arrow{ddd}{bar} & & & Zoom \arrow{ddd}{bar} \\         & Foo \arrow[mapsto]{r}{\alpha}           \arrow[mapsto]{d}{\beta}         & Bar \arrow[mapsto]{d}{\gamma} & \\     & Baz \arrow[mapsto]{r}{\delta}             & Bong & \\     Zip \arrow[anchor=north]{rrr}{foo} & & & Zop     \end{tikzcd}     \]     \end{document}      This is uglier than the figure above. What's a better way to do this? EDIT: The suggestion of Stephen Segletes below showed a gentleman who demands more of his commutative diagrams. I salute him, and commend to you the following magisterial display of elegance, beauty and power:               \documentclass[oneside,english]{amsart}     \usepackage{tikz-cd}     \usepackage{stackengine}[2013-09-11]     \usepackage{graphicx}      \begin{document}     \[      \stackinset{l}{13ex}{b}{6ex}{%     \scalebox{.8}     {%      \begin{tikzcd}[row sep=8ex, column sep = 8ex, ampersand replacement=\&]     1_C          \arrow[mapsto]{r}         \arrow[mapsto]{d}     \& \vartheta_C1_C = x^{\vartheta}          \arrow[mapsto]{d}  \\     f          \arrow[mapsto]{r}      \& \begin{array}{c}Ff\left(x^{\vartheta}\right)=\\\vartheta_D\left(f\right)\end{array}     \end{tikzcd}     }      }{%      \begin{tikzcd}[row sep = 20ex, column sep = 20ex, ampersand replacement=\&]     Hom\left(C,C\right)          \arrow{r}{\vartheta_C}          \arrow[swap]{d}{f}     \& FC          \arrow{d}{Ff}  \\     Hom\left(D,C\right)          \arrow[swap]{r}{\vartheta_D}      \& FD     \end{tikzcd}     }     \]     \end{document}      This renders as ![raw beauty](http://i.imgur.com/JRu7JHo.png)


title: Beamer PDF presentation - how can i invert colors easily?

text: Suppose you are going to do a presentacion using a beamer PDF file and you dont know what size the rooms is, neither how much light there is. Under this circumstances, it would be better to have a "black on white" (the default) version of the presentation as well as a "white on black" version, and decide which one to use once you arrive at the place. Suppose also that you might need to use another computer and copy the PDF file into it. Is there a simple way to generate a completely inverted version of the beamer PDF presentation??


title: Usage of \include, \input and \import commands

text: Hans-Peter E. Kristians answer from Using \import correctly There are three ways to put subfile.tex file into main.tex:   1. `\include{⟨filename⟩}`   2. `\input{⟨filename⟩}`   3. `\import{⟨path⟩}{⟨filename⟩}` It is clear that   * `\include` is only used in the `main.tex` and `\include` can not be used in `subfile.tex`   * `\input` can be used in `main.tex` or `subfile.tex`   * `\import` needs `\usepackage{import}`.  Now I'm confused about using `\import`. When this should be used? What is the use of `\subimport`? The point is that there is no example in the manual for `import`. I have different files in different folders. How to use `\import` with giving the path of `subfile.tex`? Should I use `\input` for importing TikZ pictures using a standalone file `subfile.tex`?


title: Node at tip/pinch of brace in Tikz

text: I'm trying to add some explanatory braces in my graphic, and find myself running into some minor difficulties/inconveniences. **[Edit]:** After being made aware that the main thrust of the question (about off-center tips of braces) is already covered in How to draw an unbalanced curly brace in TikZ?, I removed that part. **[\Edit]** I was wondering if there's a built-in way to determine the position of the tip of the brace from all the given parameters and automatically place a node there. Right now I have to calculate the orthonormal vector to the one which spans the brace, which is tedious, especially for many braces. I tried testing some options from http://tex.stackexchange.com/a/95144/42225 (which weren't listed in the `PGF` manual), but to no avail. Also, I think it would be cleaner to have (my implementation of) `underext` as a key in `decoration={...}`; is there a way to set it, e.g. like `decoration/underext/.style={pre=moveto,pre length=#1,post=moveto,post length=#1}`? MWE:               \documentclass{article}     \usepackage[english]{babel}     \usepackage{tikz}     \usetikzlibrary{calc,intersections,decorations.pathreplacing}          \begin{document}     \begin{tikzpicture}[scale=1.5,%         underext/.style={decoration={pre=moveto,pre length=#1,post=moveto,post length=#1}}]     \pgfmathsetmacro\ang{asin(1/6)}     \clip (-\ang:6) arc (-\ang:90+\ang:6) -- (-1,-1) -- cycle;          \foreach \r / \i [evaluate=\r as \ang using 90/\r] in {8/4} % radius and number of slice     {     \begin{scope}[rotate={(\i-1)*\ang}]         \foreach \m in {2}         {         % Minkowski sum         \filldraw [fill=black!5,draw=black] ($(-\ang:\r/2)+(-\ang-90:\m)$) arc (-\ang-90:-\ang-180:\m)         arc (-\ang:\ang:\r/2-\m) arc (\ang+180:\ang+90:\m)         -- ($(\ang:2*\r)+(\ang+90:\m)$) arc (\ang+90:\ang:\m)         arc (\ang:-\ang:2*\r+\m) arc (-\ang:-\ang-90:\m) -- cycle;              % support         \filldraw[draw=black,fill=black!20] (-\ang:\r/2) arc (-\ang:\ang:\r/2) -- (\ang:2*\r) arc (\ang:-\ang:2*\r) -- cycle;              % axis of cone         \draw[very thin] (0,0) coordinate (A) -- (0:\r/2) coordinate (B);         \draw[decorate,decoration={brace,mirror,amplitude=10pt,raise=3pt,aspect=0.6},underext=1.5pt,very thin] (A)--(B);         \coordinate (base) at ($(A)!0.6!(B)$);         \coordinate (ortho) at ($(0,0)!1!90:($(B)-(A)$)$);         \node[inner sep=2pt] at ($(base)!-15pt!($(base)+(ortho)$)$) {$2^{j-1}$};         };     \end{scope}     \begin{scope}[very thin,<->]         \draw (-1,0) -- (6,0);         \draw (0,-1) -- (0,6);     \end{scope}     };     \end{tikzpicture}     \end{document}      ![enter image description here](http://i.stack.imgur.com/kLG9V.jpg) Whereas what I'd like to have would be something along the lines of:               \draw[very thin] (0,0) node[shape=coordinate](A){} -- (0:\r/2) node[shape=coordinate](B){};     \draw[decorate,decoration={brace,mirror,amplitude=10pt,raise=3pt,aspect=0.6,underext=1.5pt,         node at tip=node name},very thin] (A)--(B);     \node[below=2pt] at (node name) {$2^{j-1}$};


title: Abandon LaTeX2e for LaTeX3 or LuaTeX

text: I think my question is: Should I abandon `pdflatex`, possibly for `xetex` or `context`, and a TeX/LaTeX based macro writing approach, possibly for a LuaTeX or LaTeX3 based approach? Possibly relevant to the answer is that I am an academic who exclusively uses the English language and a lot of math. I have been using `TeX` on and off for a number of years. I am happy using `TeX` to create all my documents (papers, presentations, letters, etc.), new macros and even simple packages (although the whole literate programming and documentation thing is beyond me). My macros tend to use both TeX and LaTeX macros. I used to create DVI files by compiling with `latex` but now I use `pdflatex` to create pdf files. The change from EPS to PDF figures and the loss of `pstricks` took some time for me to get used to, but I am now happy with the change. Recently, I gave up BibTeX for Biber and BibLaTeX and am very happy. I am willing to put in the time to learn LuaTeX/LaTeX3/ConTeX if there are advantages.


title: vim-LaTeX does not construct correct argument for bibtex

text: My pdf compile rule is               pdflatex -interaction=nonstopmode $* & bibtex $* & pdflatex -interaction=nonstopmode $*      Everything works fine except for the bibtex call. The reason is that "$*" is expanded to "file.tex" rather than "file", and bibtex subsequently appends ".aux". I.e. the call is               bibtex file.tex      and then bibtex looks for a "file.tex.aux" which obviously won't exist. I can manually run bibtex with               :!bibtex file      and it works. Is there any way to change how $* is expanded? I would prefer to just hit \ll rather than manually typing in the call! NOTE: This is on MS Windows.


title: latex, how to put superscript and link to URL downpage

text: In a document, how do we do this: ![enter image description here](http://i.stack.imgur.com/yb9Te.png) i.e. how to put a superscript and then link it to a link as shown in the diagram?


title: How can I write $_{\text{s}}$ in a bookmark?

text: I need to write `$E_{\text{s}}$` in a pdf-bookmark, but               \documentclass{article}     \usepackage[T1]{fontenc}     \usepackage{amsmath}     \usepackage[unicode]{hyperref}     %209B ;LATIN SUBSCRIPT SMALL LETTER S;Lm;0;L;<sub> 0073;;;;N;;;;;     \DeclareTextCommand{\textsinferior}{PU}{\9040\233}%     \begin{document}     \section{\texorpdfstring{$E_{\text{s}}$}{E\textsinferior}}     \end{document}      gives ![bookmark](http://i.stack.imgur.com/XitoG.png) as bookmark (at least in Adobe Reader 10.1.3 and Sumatra, both @ Win XP) and no error in the `log`-file. What is my mistake, and how is it done right? I have placed the pdf at https://www.zeta-uploader.com/1675640013 (link will rot at 2012/06/19). Edit: As was confirmed by tests performed by fellow tex.SE users (thanks!), on some systems the pdf displays all right, on other systems it does not. Thus this is a viewer/os/installed fonts/... issue and not a TeX one. Sorry to have bothered you & thanks for testing (`.tex` as well as `.pdf`).


title: How do I fix baseline alignment of bullet-items in beamerposter?

text: In `beamerposter`, 2008/03/11. v.1.07. (the version in Tex Live 2011), `itemize` bullets are misaligned:               \documentclass[final]{beamer}     \usepackage[english]{babel}     \usepackage[orientation=portrait,size=a4,scale=1.0,debug]{beamerposter}  % e.g. custom size poster     \begin{document}      \begin{frame}{}        \begin{block}{\Large{Summary}}        \begin{itemize}         \item Item 1         \item Item 2         \item Item 3        \end{itemize}       \end{block}      \end{frame}     \end{document}      ![illustration of misaligned itemize bullets](http://i.stack.imgur.com/Ct8Gr.png)   * How can I fix the vertical alignment?


title: How to get the true width (including margins) of a page for inserting images?  \textwidth and \textheight are too large

text: When I enter the following:               text width in cm: \printinunitsof{cm}\prntlen{\textwidth}          text height in cm: \printinunitsof{cm}\prntlen{\textheight}      I see output: > text width in cm: 15.11078cm   >  text height in cm: 21.58693cm However, when I create an image exactly 15cm by 21cm, and insert it into my document, it is far too large, by about the amount of the margin sizes. I was under the impression that textwidth was supposed to be only the text box, already accounting for margins. Why is the output I see too large? I'm looking to include some pre-sized images in my document but can't divide the page in any reasonable way without knowing how large it is. Any hints on what is going on with the output above, or how I might do this better? **EDIT, updated to include MWE**               \documentclass[12pt]{report}     \usepackage{graphicx} % Required for inserting images     \usepackage{layouts}     \usepackage{lipsum}     \graphicspath{{/my/path}}     \DeclareGraphicsExtensions{.png}          \begin{document}          text width in cm: \printinunitsof{cm}\prntlen{\textwidth}          text height in cm: \printinunitsof{cm}\prntlen{\textheight}          line width in cm: \printinunitsof{cm}\prntlen{\linewidth}          column width in cm: \printinunitsof{cm}\prntlen{\columnwidth}          \lipsum{1-4}          \newpage          %\makebox[\textwidth][c]{\includegraphics{/my/path/myimg}}          \end{document}      Now, run this, you'll see this output: > text width in cm: 13.70499cm   >  text height in cm: 19.27483cm   >  line width in cm: 13.70499cm   >  column width in cm: 13.70499cm   >  Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Ut... Go to your favorite image program, and make a colored rectangular image corresponding to what this output says the text size is, that is 13.7cm x 19.2cm. Uncomment the insert image above,               \makebox[\textwidth][c]{\includegraphics{/my/path/myimg}}      When you do you, and rerun it, you will see that the image extends well into the footer area. The output of `\textwidth` and and `\textheight` just isn't corresponding to the text box---these commands don't seem to account for margins, headers, footers---but I was under the impression this is exactly what the text box ought to correspond to---the printable part of the page, after you deduct all the rest.


title: How to get marginnote to use the whole margin space?

text: I'm typing up a document where I'd like to add notes to myself on the side margin. I'm using marginnote and using the geometry package for specifying customized margins, I've allocated 5 cm for the left margin, but no matter how long the note is, it doesn't take up the whole 5 cm. Does anyone know why this is happening and is there a way to fix this? Here's my code:               \documentclass[12pt]{article}     \usepackage{outlines,tensor,amssymb,amsmath,wasysym,ulem,multicol,textcomp,marginnote}     \usepackage[top=2cm, bottom=1.3cm, left=5cm, right=0.5cm]{geometry}     \reversemarginpar     \pagestyle{empty}     %\marginnote{}          \begin{document}     \begin{flushleft}     \Large \underline{Chapter 7 \textsc{Enzyme Kinetics \& Inhibition}}       \end{flushleft}          \section*{Introduction to Enzyme Kinetics}     \begin{outline}[enumerate]       \1 Structural information doesn't give any information about enzyme's physiological role         \marginnote{{\small So what do we need to figure that out?}}     \end{outline}          \end{document}      * * * EDIT: So I downloaded the user guide to marginnote, and it says that I have to define the real width of the type area using `\marginnotetextwidth`. It says, > Package marginnote needs to know the real width of the type area to find the > right margin. While some environments (e.g. thos of package framed) change > \textwidth, marginnote defines it’s own text width macro. If you change type > area after \begin{document} you should add > > \edef\marginnotetextwidth{\the\textwidth} > > after changing the type area. Maybe you should do this globally using \xdef > instead of \edef. Most users will never need to change \marginnotetextwidth. Does that mean I have to do this in the preamble or in the package itself? I'm a little confused as I tried to add `\marginnotetextwidth{5cm}` in the preamble but the compiler tells me, "Missing number, treated as zero."


title: Lowering second accent in mathmode

text: I've come to a situation where I must put a tilde/hat over the vector sign in math mode:               \begin{document} % The start of the document          $\tilde{\vec{\beta}}$          \end{document}      I find the resulting overly tall character to be a little unsightly, so I was just curious if there was a way to lower the tilde closer to the vector symbol in an aesthetically pleasing way and if I could make it into a command like:               $\vtilde{\beta}$      I attempted working through this and playing around with things but it didn't work out in my favour due to my lack of knowledge of the TeX language. Any pointers to related resources or help would be greatly appreciated! Thanks in advance.


title: Can I get LuaLaTeX to do font variations on the Zapfino font just as XeLaTeX does?

text: When I use XeLateX on my mac I can get multiple variations for Zapfino like for example explained here under Glyph Variants. However this does not work when I run the same code though LuaLaTeX. Is there a way to get this functionality there as well?