title: Importing my TeX Template fails

text: I am trying to get the TeX template of my university into my LyX where I have written my thesis already before trying this and I am freaking out. The full template can be retrieved from https://www2.vmi.ei.tum.de/templates/; I use `thesis-current-utf8.zip`. By copying the sources to the user folder, etc. I can choose the document style `article` (tum) and with slight modifications of `tum.cls` as removing the `hyperref` part which does not work with LyX. I still need to somehow import the `frontpage.tex` file which is quite complicated (see below). I cannot import this file to LyX though. It gives me a lot of               Undefined Control Sequence      errors. Maybe you can try import the TeX file below and display it and tell me what is wrong. Don't mind the pictures or go with the download link. It would be really great since I am working already a week on this!               \RestoreLanguage     \ifthenelse{\equal{\MyType}{PhD}}{%     \GeneratePhDHead\\[8ex]     %%--------------------Dissertations-Deckblatt----------------------------------------------------     \onehalfspacing     {\centering     \color{tumblue}{\huge\bf{\insertTitle \par \parindent 0pt }}     }     \vspace{2cm}     \begin{center}     {\Large{\bf{\insertAuthor}}}\\[6ex]     Vollständiger Abdruck der von der Fakultät für Elektrotechnik und Informationstechnik der Technischen Universität München zur Erlangung des akademischen Grades eines\\[3ex]     \textbf{Doktor-Ingenieurs (Dr.-Ing.)}\\[3ex]     genehmigten Dissertation.     \end{center}     \vfill     {\begin{tabular}{ll}     Vorsitzender                    & \insertVorsitzender \\[1ex]     Prüfer der Disseration:         & 1. \insertProfessorFirst \\                                     & 2. \insertProfessorSecond      \end{tabular}}\\[6ex]     {Die Disseration wurde am \insertDateEnd\ bei der Technischen Universität München eingereicht und durch die Fakultät für Elektrotechnik und Informationstechnik am \insertDateBegin\ angenommen.}\\     \cleardoublepage     %%-------------------Ende Dissertation Deckblatt----------------------------     }{%     %%-------------------Studienarbeiten Deckblatt und erste Seiten----------------------------     %     \GenerateHead     \\[8ex]     %---------------------------------Thema und Autor--------------------------------     \onehalfspacing     %%%%%%%%%%%%%%     %{\color{tumblue}{\huge\bf{\insertTitle\par\ }}}\\[5ex]     %print1     %{\color{tumblue}{\huge\bf{\insertFirstTitle }}} \\[3ex] %\par\ %\parindent 0pt     %{\color{tumblue}{\huge\bf{\insertSecondTitle\par\ }}} \\[5ex]     %print2     %{\color{tumblue}{\huge\bf{\insertFirstTitle \par\ }}} \\[0ex] % %     %{\color{tumblue}{\Large\bf{\insertSecondTitle\par\ }}} \\[5ex]     %print3     %{\color{tumblue}{\huge\bf{\insertFirstTitle \par \parindent 0pt }}} %\\[0ex] % %     %{\color{tumblue}{\Large\bf{\insertSecondTitle\par\ }}} \\[5ex]     %print4     %{\color{tumblue}{\huge\bf{\insertFirstTitle }}} \\[4ex]      %{\color{tumblue}{\huge\bf{\insertSecondTitle\par\ }}} \\[5ex]     %print5     {\color{tumblue}{\huge\textbf{\insertFirstTitle \par \parindent 0pt }}} \vspace{0.75\baselineskip}     {\color{tumblue}{\LARGE\textbf{\insertSecondTitle\par\ }}} \\[5ex]          {\Large{\bf{\insertAuthor}}}\\[3ex]     {\Large{{\insertType}}}\\[5ex]     \ \\     \vfill     %-----------------------------weitere Angaben -----------------------------------     \SelectByReport{%     \begin{tabular}{ll}     \intlAuthor:                   & \insertTableAuthor \\     \intlGroup:                    & \insertGroup \\     \intlProfessor: \hspace*{2cm}  & \insertProfessor \\     \intlAdvisor:                  & \insertAdvisor \\     \intlSemester:                 & \insertSemester \\     \intlDateEnd:                  & \insertDateEnd      \end{tabular}}     {%     \begin{tabular}{ll}     \intlAuthor:                   & \insertTableAuthor \\     \intlLocation:                 & \insertStreet \\                                    & \insertTown \\     \intlNumber:                   & \insertMatrikelNr \\     \intlProfessor: \hspace*{2cm}  & \insertProfessor \\     \intlAdvisor:                  & \insertAdvisor \\     \intlDateStart:                & \insertDateBegin \\     \intlDateEnd:                  & \insertDateEnd      \end{tabular}}          \cleardoublepage     %-----------------------     %echwechgema an mengen clearpage baigesaat          \SelectIfPartner{%     \GenerateHead     \ \\[-2ex]     % %------------------------- Beteiligte Organisationen -----------------     \singlespacing\noindent%%%%%%%%%%%%%%%     {\color{tumblue}{\huge\bf{\intlOrgans}}}\\          \parbox[c]{2.5cm}{\includegraphics{\insertInstituteLogo}}     \parbox[c]{13.5cm}{\insertFullAddress}     \ \\[5ex]%     \parbox[c]{2.5cm}{ \includegraphics[height=1cm]{\insertIPLogo}}     \parbox[c]{13.5cm}{\insertFullIPAddress}     \\[5ex]\par     % %------------------------- Eidesstattliche Erklaerung -----------------     {\color{tumblue}{\huge\bf{\intlStatement}}}\\[5ex]     \SelectByLanguage{I declare under penalty of perjury, that I wrote this \insertType\ entitled}     {Hiermit erkl\"are ich an Eides statt, dass ich diese \insertType\ zum Thema}\\[3ex]     {\color{tumblue}{\bf{\insertTitle}}}     \\[3ex]     \SelectByLanguage{by myself and that I used no other than the specified sources and tools.}     {selbstst\"andig verfasst und keine anderen als die angegebenen Quellen und Hilfsmittel verwendet habe.}     \\[7ex]     \SelectByLanguage{\insertUniSmallTown, \today}{\insertUniSmallTown, den \insertDateEnd}\\[-6ex]     \begin{flushright}{\rule{7cm}{0.5pt}}\\{\footnotesize{\insertAuthor}}\end{flushright}     \ \\[-8ex]\\\vfill\noindent     \insertAuthor\\     \insertStreet \\     \insertTown \\     \clearpage     %%%%%%%%%%%%%%%%%%     \onehalfspacing     }{%     \GenerateHead     \ \\[4ex]     % %------------------------- Beteiligte Organisationen -----------------     \singlespacing\noindent%%%%%%%%%%%%%%%     \ \\[20ex]%     % %------------------------- Eidesstattliche Erklaerung -----------------     {\color{tumblue}{\huge\bf{\intlStatement}}}\\[5ex]     \SelectByLanguage{I declare under penalty of perjury that I wrote this \insertType\ entitled}     {Hiermit erkl\"are ich an Eides statt, dass ich diese \insertType\ zum Thema}\\[3ex]     {\color{tumblue}{\bf{\insertTitle}}}     \\[3ex]     \SelectByLanguage{by myself and that I used no other than the specified sources and tools.}     {selbstst\"andig verfasst und keine anderen als die angegebenen Quellen und Hilfsmittel verwendet habe.}     \\[7ex]     \SelectByLanguage{\insertUniSmallTown, \today}{\insertUniSmallTown, den \insertDateEnd}\\[-6ex]     \begin{flushright}{\rule{7cm}{0.5pt}}\\{\footnotesize{\insertAuthor}}\end{flushright}     \ \\\vfill\noindent     \insertAuthor\\     \insertStreet \\     \insertTown \\     \clearpage     %%%%%%%%%%%%%%%%%%     \onehalfspacing     }     \cleardoublepage     %%----------------Ende Studienarbeiten Deckblatt und erste Seiten------------------%     }


title: Navigation system coordinates in tikz-3dplot

text: I am using tikz-3dplot and trying to represent navigation system transformations. In navigation systems, the orientation of the vehicle axis is given in terms of Roll, Pitch and Yaw. These are generally represented as Euler angles of Phi, Theta, and Psi. I am trying to represent the following: Rotate about the Z axis by Psi, the Yaw angle. Then, Rotate about the new Y axis by the pitch angle (Theta). Then, Rotate about the new X axis the roll angle (Phi). The challenge I am having is that Tikz-3dplot rotates about the Z, Y then Z axis. According to the documentation, these rotations should be relative to the "world" Z, Y, and Z axes. After reading up on Euler angles (on Wikipedia), I was educated to the fact that there are actually multiple representations of the Euler angles, and the Z,Y,Z is one, as is the Z,Y,X that I was familiar with. The problem I have now is that it appears that when I apply the tikz-3dplot command: `\tdplotsetrotatedcoords{\psi}{\theta}{\phi}` that the first rotation is about the Z axis, as expected. The second rotation (`\theta`), is about the ROTATED Y axis, which is really what I want, but NOT what the documentation claims. Unfortunately, here is where I am stuck. The final rotation, which needs to be about the rotated X axis, in fact rotates about the ROTATED Z axis... If the rotations were about the world axes, I could come up with a transform (although I would really have to think about it).. but, since they are not, I am completely stumped as to how to get that final rotated system... I have been doing a lot of searching for answers.. and come up with very little. I've even tried to modify the tikz-3dplot package, making a copy of my own.. this might work, but I am hoping there is a better answer, as I really don't have time to learn enough about tex to do this.. nor the time to troubleshoot it. * * * Keywords to make more discoverable in search engines: z-y-z sequence, z-y-x sequence, rotation sequence


title: Authoring an MLA-conforming document in LaTeX?

text: I am trying to write a paper in proper MLA (Modern Language Association) format, but I am having trouble understanding how it all goes together. Is there an example document or template for MLA (with citations, including parenthetical) for (La)TeX? I find incomplete examples all over the place and I just can't seem to put it together correctly.


title: Manual bibliography format does not exists?

text: In the wiki for LaTeX bibliography compilations, the following is listed as a standard template:               @manual          Technical manual                  Required fields: title.             Optional fields: author, organization, address, edition, month, year, note.      However,               @manual{bioc2201man,     title="{Principles of Molecular Biology (Advanced) Course Syllabus and Laboratory Manual, Session 2, 2011}",     organization="{School of Biotechnology and Biomolecular Sciences}",     year="2011"     }      will not compile. However assigning the same as an "article" will. Is the wiki wrong or have I missed something? Here is a minimal example, as requested:               \documentclass[a4paper,12pt]{article}     \usepackage{cite}     \begin{document}          The method was derived from {\it Principles of Molecular Biology (Advanced) Course Syllabus and Laboratory Manual, Session 2, 2011}~\cite{bioc2201man}.  Variations to be noted are...          \subsection*{References}          \bibliography{bib}{}     \bibliographystyle{natbib}          \end{document}


title: tex4ht leaving equations unchanged

text: I'm trying to convert a LaTeX document to a webpage that'll be hosted on a server that's capable of processing and rendering simple TeX equations, but not doing section-level formatting. So I'm trying to convert the document to HTML using TeX4ht, but leave the equations in the form `$ my-eq-here $` in the resulting HTML to have the server process them and be able to modify them later. Any ideas on how to accomplish this using TeX4ht?


title: linking up minipages like real pages

text: If I understand correctly, the main text box on a page is a special box, since in addition to the normal paragraph typesetting, text can also overflow into the next page. Is it possible to, say, have two minipages (or any sort of boxes that I can position arbitrarily in my document) so that the text in the first box that overflows gets put into the second box?


title: Embedding Movies with XeTeX+beamer+movie15 in TeXLive 2011

text: I recently got a new computer and so installed MacTeX 2011, previously I had been using the 2009 version. I have used the TeXLive utility to bring the 2011 version up to date today. I use XeTeX with the beamer package to create presentations and need to occasionally embed movies. I used to be able to do the following with my 2009 installation:               %!TEX TS-program = xelatex      %!TEX encoding = UTF-8 Unicode     \documentclass[dvipdfmx]{beamer}      \usepackage[dvipdfmx]{movie15_dvipdfmx}     \begin{document}     \begin{frame}     \frametitle{Movie Test}     \includemovie[poster,text={Tacoma Narrows}, mouse, repeat,controls]{.5\linewidth}{.375\linewidth}{tacoma.avi}     \end{frame}     \end{document}      Here "tacoma.avi" can of course be any .avi movie, I used a DivX 4.1.2 encoding. I downloaded the file movie15_dvipdfmx.sty from http://asymptote.svn.sourceforge.net/viewvc/asymptote/trunk/asymptote/patches/ In the new installation, I need to replace the document class with               \documentclass{beamer}       i.e., I need to drop the "[dvipdfmx]" option. This is fine by me. The code still compiles, but when I open the resulting file in Adobe reader 10.1, I get an error message: A window titled "Warning: JavaScript Window -" pops up and says "Expected a stream object." The movie is not shown. Furthermore, I just checked the file size: the .avi movie should be included inside the pdf container of the compiled TeX file, but this evidently doesn't happen, as the .pdf file is only 6 kb large. Everything still works fine in the 2009 installation. I understand that the file "movie15_dvipdfmx.sty" is two years old and perhaps incompatible with TeXLive 2011, but there seems to be no newer version available. Can I make the above code work in some way with TexLive 2011? If not, what are my options for embedding movies in the XeTeX+beamer set-up?


title: Conflict between \hline and arydshln in aligned environment?

text: I'm using the following code:               \documentclass{article}     \usepackage{tikz}     \usepackage{amsmath}     % \usepackage{arydshln} %code doesn't compile anymore with this package          \begin{document}          \begin{tikzpicture}      \node at (0,0){$\begin{aligned}                       & A \to B\\                       & A \\\hline                         & B                      \end{aligned}$};      \end{tikzpicture}       \end{document}      to produce this (the actual formula is a bit longer but I don't think that does matter): ![enter image description here](http://i.stack.imgur.com/rjBIL.png) Problem is that in other parts of the document I need to use the `\hdashline` macro from the `arydshln` package and it seems that the package conflicts with the `\hline` macro when placed inside the `aligned` environment. I tried replacing `\hline` with `\cline` and `\hhline` but both produce something like this: ![enter image description here](http://i.stack.imgur.com/ib44l.png) with too much whitespace around the horizontal line. Is there a way to have an horizontal line like`\hline` in an `aligned` environment while the `arydshln` is loaded? It would be ok also to change the environment to something else, assuming it works inside a TikZ node.


title: merging 2 pdf's and rearanging pages

text: This is not just merging two `pdf` files using `pdflatex`. final document need have a structure:   * odd pages are from `first.pdf`   * even pages are from `second.pdf` is this possible? p.s. I'm trying to have 4 column parallel text spread on 2 pages. follow this Four Language Parallel Column Book have 2 documents one for odd another for even pages... can there be a better solution ?


title: Creating a circled operator which expands into a lozenge

text: I have a LaTeX document which has a binary operator called "composition". Normally, this is written as a circled letter, where the letter is passed as a parameter: `\comp{x}`. I can achieve good results for this using techniques similar to How do I put a circle around an operator?. However, sometimes the content of the operator get big, e.g. some calculation that renders as a few letters long: `\comp{x + y + z}`. In this instance, I don't want a giant circle with a diameter large enough to contain the text. I'd like to have the operator extend into a lozenge, the length of which depends on the length of the content. So, if the content is just one letter, it's just a letter in a circle. If it's several letters, it expands the circle horizontally into capsule that contains the content. I have complete control of the build environment and package choice. The document will be quite long (200+ pages), so build time is a concern. However, the machine is quite punchy, so "heavy" solutions are possibly OK. The operator is used in math mode, and occasionally as a super/subscript, but should never get really tiny. How can I achieve this goal?


title: Counter on Appendix without sections

text: Im using the usual counter for my book. That is, the theorems, lemmas, etc, are labeled according to the chapter and section (Ex Theorem 2.5.18). I included an appendix just with the chapter title and it has no sections, the commands I set were               \appendix          \chapter{a1}      but the theorems, `lemmas`, `def`, etc in this chapter are labeled with things like "Theorem A.0.5.", I want that it be in the form "A.5", that is, ommit the section countering.


title: Print front page on a single piece of paper without adding empty pages to PDF

text: Some people use empty pages to make sure that the front page gets printed on a single piece of paper (example). I think this is a bad solution, as some people might want to print every page on a new piece of paper. They will get some empty pieces of paper. It is also bad for people who read the document in a PDF-reader. Is there another possibility to make sure that the front page (or other pages) get printed on a new piece of paper without adding an empty piece of paper?


title: Labeling within Loops in Asymptote

text: I'm fairly new to Asymptote, and am trying to create a basic number line using a for loop. I would like the for loop to also label the points for me. Could somebody tell me how to fix this?               \documentclass{article}          \begin{document}          \begin{figure}[hbt]     \centering     \begin{asy}         unitsize(0.1inch);              draw((0,0)--(50,0),);         draw((0,0)--(1,1));         draw((0,0)--(1,-1));         draw((50,0)--(49,1));         draw((50,0)--(49,-1));              draw((25,1)--(25,-1));         label("$0$",(25,0)+2*dir(270));              for(int i=1; i<12; ++i)         {             draw((25+2*i,1)--(25+2*i,-1));             label("$i$",(25+2*i,0)+2*dir(270));         }          \end{asy}     \end{figure}          \end{document}      When run, almost everything displays the way I would expect it to, except instead of labeling the numbers, it labels everything with my counter variable. Also, earlier my system was working fine, but now it's stopped creating the .pdf files for the images. For example, my first image is supposed to be Neighborhoods-1.pdf. It creates the .asy file, but not the .pdf file. Can somebody tell me how to fix this?


title: How to manage long lines of inputs in function declaration, or inside the code, in clrscode3e

text: This is a part of my code:               \begin{codebox}          \Procname{$\proc{\textbf{Connect_two_SamplePoints}}(Graph,S1, S2,connectionCostMat,cost)$}     \li \Comment S1 and S2 are sample points      \li  cost[S1][S2] $=$ $\infty$      \li \Comment  cost holds the length of shortest path between S1 and S2     \li \For $pnt$ in connectionCostMat[S1]: \>\>\>\>\>\>\>\>\Comment candidate point for S1     \li \> \For $pnt2$ in connectionCostMat[S2]:  \>\>\>\>\>\>\>\>\Comment candidate point for S2     \li \> \> \If shortestPathLength($pnt$,$pnt2$) $+$ connectionCostMat[$S1$][$pnt$] $+$ connectionCostMat[$S2$][$pnt2$]< cost[S1][S2]:     \li \Then \> \> cost[S1][S2] $=$ shortestPathLength($pnt$,$pnt2$) $+$ connectionCostMat[$S1$][$pnt$] $+$ connectionCostMat[$S2$][$pnt2$] \End          \end{codebox}      You can see how long the name of the function is, as well as few line in the actual code. Using the default settings of `clrscode3e`, I get an ugly set of code, with function inputs and lines in code extended all the way to the margin and disappeared... pretty awful. I tried Centering clrscode3e codebox horizontally, but it didn't make things better. Any help is appreciated!


title: \cellcolor command from colortbl package not working

text: I've been trying to colour single cells but it's not working. Here's a MWE:               \documentclass{memoir}     \usepackage[usenames,dvipsnames,svgnames,table]{xcolor}          \begin{document}          \begin{tabular}{|l|c|}     \cellcolor{Green}one and  & two      \\     \rowcolor{Green}three and & four and \\     \end{tabular}          \end{document}      The \rowcolor command works fine (as do all other colortbl commands) but \cellcolor never works. The error I get is 'unknown command name'. I've tried this with article.cls as well, so it's not an incompatibility with memoir. My workaround has been to use the \columncolor command with \multicolumn{1}. I've updated all packages on my system to the latest versions. Edit: I'm running TeXlive 2013 under OS X 10.9 (Mavericks) and have recently updated all changed packages via TeX Live Utility. package version information (via \listfiles):               memoir.cls    2013/05/30 v3.7b configurable book, report, article document class     ifpdf.sty    2011/01/30 v2.3 Provides the ifpdf switch (HO)     ifetex.sty    2011/12/15 v1.2 ifetex     ifxetex.sty    2010/09/12 v0.6 Provides ifxetex conditional     ifluatex.sty    2010/03/01 v1.3 Provides the ifluatex switch (HO)     etex.sty    1998/03/26 v2.0 eTeX basic definition package (PEB)     mem10.clo    2008/01/30 v0.3 memoir class 10pt size option     mempatch.sty    2009/07/24 v6.0f Patches for memoir class v1.6180339     xcolor.sty    2007/01/21 v2.11 LaTeX color extensions (UK)     color.cfg    2007/01/18 v1.5 color configuration of teTeX/TeXLive     pdftex.def    2011/05/27 v0.06d Graphics/color for pdfTeX     infwarerr.sty    2010/04/08 v1.3 Providing info/warning/error messages (HO)     ltxcmds.sty    2011/11/09 v1.22 LaTeX kernel commands for general use (HO)     colortbl.sty    1999/03/24 v0.1i Color table columns (DPC)     dvipsnam.def    1999/02/16 v3.0i Driver-dependant file (DPC,SPQR)     svgnam.def    2007/01/21 v2.11 Predefined colors according to SVG 1.1 (UK)     supp-pdf.mkii      And here's the error message I get:               ! Undefined control sequence.     l.25 \cellcolor                {Green}one and &two\\     The control sequence at the end of the top line of your error message was never          \def'ed.


title: TikZ Drawing not Fully Showing

text: I'm not sure what this problem is called so it's hard to search for information... When I use the `tikz` package sometimes part of the drawing does not show fully. Currently the code I am using for a curly brace is not showing its right side... Why? The original code from where I took it had a picture that seemed to display correctly. This is not the first time that this has happened on my Textmate. ![enter image description here](http://i.stack.imgur.com/joIl4.png) Here is a minimal working code that uses the template I am using and only shows the graph with problematic curling braces: http://pastebin.com/g4j7kKAF               \documentclass{standalone}     \usepackage{tikz}         \usetikzlibrary{matrix}         \usetikzlibrary{decorations.pathreplacing}                 \tikzstyle{underbrace style}=[decorate,decoration={brace,raise=10mm,amplitude=5pt,mirror},color=black]              \usepackage[brazilian]{babel}     \usepackage[utf8]{inputenc}     \usepackage[T1]{fontenc}          \begin{document}                \begin{tikzpicture}[%             >=stealth,             shorten >=2pt,             thick           ]             \matrix (block) [%               matrix of nodes,               nodes={%                 draw,                 anchor=center,                 minimum width=2em,                 minimum height=1em               }             ] {%               1 & 2 & \node[fill=gray!99]{8}; & \node[fill=gray!50]{3}; & 4 & 6 & 9\\             };     %\node[fill=gray!50]{1};             \path[->] (block-1-4.north) edge [bend right=30] (block-1-3.north)                       (block-1-3.south) edge [bend right=30] (block-1-4.south);             \draw (block-1-1.west) node[left=0.005cm,scale=0.9] {A:};                                           \draw (block-1-2.south) node[below=0.1cm] {$\longleftarrow$};                               \draw (block-1-2.south) node[left=0.2cm,below=0.4cm,scale=0.6] {Ordenado};                                       \draw (block-1-1.north) node[above=0.1cm,scale=0.7] {0};             \draw (block-1-2.north) node[above=0.1cm,scale=0.7] {1};             \draw (block-1-3.north) node[above=0.1cm,scale=0.7] {i=2};             \draw (block-1-4.north) node[above=0.05cm,scale=0.7] {j=3};             \draw (block-1-5.north) node[above=0.1cm,scale=0.7] {4};             \draw (block-1-6.north) node[above=0.1cm,scale=0.7] {5};             \draw (block-1-7.north) node[above=0.1cm,scale=0.7] {6};                        \draw (block-1-2.south east) node[right=0.25cm,below=1.9cm] {$\longrightarrow$};                         \draw [thin] (block-1-2.south east) +(0,-2) -- +(0,+2);                     \draw (block-1-2.south east) node[right=0.25cm,below=2.1cm] {Fronteira};                 \draw [underbrace style] (block-1-1.south west) -- (block-1-2.south east) node [left=0.8cm,below=1.05cm] {$A_{esquerdo}$};                                \draw [underbrace style] (block-1-2.south east) -- (block-1-7.south east) node [left=1.8cm,below=1.05cm] {$A_{direito}$};                                           \end{tikzpicture}     \end{document}


title: Retrieving image stored in a network folder?

text: I am trying to create a header for a TeX file that includes an image. The image in question is located in the network directory "\\FileStore1\Forms\IT Info\Apps\pdfTex\images\", and I am having a terrible time getting the pdflatex.exe to not throw an error. Attached is my code, any and all help is greatly appreciated.               \documentclass[letterpaper]{article}     \usepackage{graphicx}     \usepackage{fancyhdr}     \usepackage{lipsum}     %\usepackage[space]{grffile}     \pagestyle{fancy}     \graphicspath{//FileStore1/Forms/IT Info/Apps/pdfTex/images}     %\graphicspath{{./../../images/}}     \setlength{\topmargin}{-.5in}     \setlength{\textheight}{8in}     \setlength{\headheight}{51.1pt}     \renewcommand{\headrulewidth}{0pt}     \renewcommand{\footrulewidth}{0pt}     \begin{document}     \lhead{\includegraphics[keepaspectratio=true]{head.png}}     \rhead{Company Name\\     Street Address\\     City, State ZIP\\     phone number}     \lfoot{This is an auto-generated report}     blah blah blah\\     foo bar\\     \begin{center}     \begin{tabular}{l c}     Key & Data\\     1 & 2     %<TableData>     \end{tabular}     \end{center}     \lipsum[1-10]     \end{document}      Edit 1: Following a suggestion from Mr. Oberdiek, I changed/added the following 2 lines               \usepackage{grffile}     \graphicspath{{\\FileStore1\Forms\IT Info\Apps\pdfTex\images\}}


title: Non-italic \emph, italic biblatex titles

text: The internal Biblatex `\mkbibemph` macro defaults to being an alias for `\emph` (see section 4.10.4 _Auxiliary Commands and Hooks_ in its documentation). It is used with `\DeclareFieldFormat` to typeset certain fields, especially _title_ , in many bibliography styles. I redefined `\em` and thereby `\emph`, however, because I cannot use italics for emphasis in text. Italics are required in citation titles, though (which I would not consider emphasis, by the way). Which is the correct way to redefine `\mkbibemph` to use either `\textit` or `\itshape`?   1. `\renewcommand{\mkbibemph}[1]{\textit{#1}}`   2. `\renewcommand{\mkbibemph}{\textit}`   3. `\let\mkbibemph\textit`   4. `\def\mkbibemph{\textit}`   5. something else


title: BibTex scientific style with pages at the end

text: Where can I find bibtex style, which looks approximately like this? ![enter image description here](http://i.stack.imgur.com/TojRm.png) Somehow all styles (even `science.bst`), which I find use `format.vol.num.pages` function, which put pages right after volume number. But the order I used to see and use is volNum-year-pages. I can simply move the line `format.date "year" output.check` into `format.vol.num.pages`, but 1. I am not sure whether this is correct (looks strange for me), 2. I don't know how to add `\---` sign in front.


title: How to use format files in a different directory

text: I have successfully built my own format file from a large preamble. I can successfully use it when I `pdflatex` with the `.tex` in the same directory as the `.fmt`, but how do I access that `.fmt` file if I want to compile a pdf from a different directory? The first line of my `.tex` file reads `%&pre` in order to use my format file `pre.fmt`. I tried `%&path/to/pre` when attempting to `pdflatex` from another directory, but that didn't seem to work. What's the best way to do this? If I am going to be using this `.fmt` file everywhere, is there some other strategy I should be thinking about? A logical place to install it in my tex system perhaps? Thanks for any help!


title: ArsClassica (ClassicThesis variant) and MinionPro issue

text: `arsclassica` provides minor modifications to the `classicthesis` package. Both provide checks in their `.sty` files for the `minionprospacing` passed to `classicthesis`. The problem is that pdflatex yields an error when `classicthesis` is loaded with `minionprospacing`, `arsclassica` is loaded after it, and any sectioning command is used:               [Loading MPS to PDF converter (version 2006.09.02).]     ) (/usr/local/texlive/2013/../texmf-local/tex/latex/MinionPro/mt-MinionPro.cfg)     Chapter 1.          kpathsea: Running mktextfm MinionPro-Subh-osf-ot1     /usr/local/texlive/2013/texmf-dist/web2c/mktexnam: Could not map source abbreviation M for MinionPro-Subh-osf-ot1.     /usr/local/texlive/2013/texmf-dist/web2c/mktexnam: Need to update /usr/local/texlive/2013/texmf-dist/fonts/map/fontname/special.map?     mktextfm: Running mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input MinionPro-Subh-osf-ot1     This is METAFONT, Version 2.718281 (TeX Live 2013)               kpathsea: Running mktexmf MinionPro-Subh-osf-ot1     ! I can't find file `MinionPro-Subh-osf-ot1'.     <*> ...; nonstopmode; input MinionPro-Subh-osf-ot1          Please type another input file name     ! Emergency stop.     <*> ...; nonstopmode; input MinionPro-Subh-osf-ot1          Transcript written on mfput.log.     grep: MinionPro-Subh-osf-ot1.log: No such file or directory     mktextfm: `mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input MinionPro-Subh-osf-ot1' failed to make MinionPro-Subh-osf-ot1.tfm.     kpathsea: Appending font creation commands to missfont.log.     ! Font OT1/MinionPro-OsF/m/n/14.4=MinionPro-Subh-osf-ot1 at 14.4pt not loadable     : Metric (TFM) file not found.     <to be read again>                         relax      l.9 \chapter{A Chapter}      At first I thought there was some conflict with the sans-serif font (Iwona), but I can use `\textsf` etc. and the document is processed as long as no sectioning commands are used. Minion Pro is installed properly as far as I can tell (I used the fonts that came with Adobe Reader and FontPro), as the document is processed successfully when no sectioning commands are used or when `arsclassica` is not loaded. Any ideas? I hope this is not something incredibly obvious. `:-)` # MWE:               \documentclass[10pt,a4paper,]{scrreprt}          \usepackage[minionprospacing,]{classicthesis}     \usepackage{arsclassica} % Comment out to make this compile.          \usepackage{lipsum}          \begin{document}     \chapter{A Chapter} % Comment out while arsclassica is loaded to make this work.     \textsf{Random sans-serif text.}          \lipsum[1-4]          \end{document}


title: using math symbol \times in symbolic x coords

text: I need to use the math symbol \times on the x axis because the x axis represents image dimensions. But latex doesnt allow me to proceed with this. It gives me hundreds > missing \endgroup inserted error messages. Could someone please help me               \begin{figure}[H]       \begin{adjustwidth}{-.1in}{+.0in}      \begin{tikzpicture}     \begin{axis}[     scaled y ticks=real:150,     ytick scale label code/.code={},     ymax = 150, ymin = 0,     symbolic x coords={8 \times 8, 16 \times 16,32 \times 32,64 \times 64},     xtick=data,     height=11cm,     width=8cm,     grid=major,     xlabel={Bitmap Dimensions},     ylabel={Accuracy},     legend style={     cells={anchor=east},     legend pos=south east,     },     cycle list name=black white     ]          \addplot coordinates {      (8 \times 8, 22)  (16 \times 16, 23)  (32 \times 32, 23)  (64 \times 64, 122) };           \addplot coordinates {      (8 \times 8, 56)  (16 \times 16, 55)  (32 \times 32, 99)  (64 \times 64, 140) };           \addplot coordinates {      (8 \times 8, 22)  (16 \times 16, 75)  (32 \times 32, 89)  (64 \times 64, 130) };           \addplot coordinates {      (8 \times 8, 108)  (16 \times 16, 145)  (32 \times 32, 144)  (64 \times 64, 149) };           \addplot coordinates {      (8 \times 8, 109)  (16 \times 16, 111)  (32 \times 32, 145)  (64 \times 64, 145) };           \addplot coordinates {      (8 \times 8, 56)  (16 \times 16, 111)  (32 \times 32, 150)  (64 \times 64, 146) };           \addplot coordinates {      (8 \times 8, 77)  (16 \times 16, 111)  (32 \times 32,  133)  (64 \times 64, 147) };     \legend{$A$,$B$,$C$,$D$,$E$,$F$,$G$}      \end{axis}      \end{tikzpicture}      \caption{     Accuracy variation with increasing bitmap dimensions}      \label{fig:accresplot}         \end{adjustwidth}     \end{figure}


title: How to pass a node as the angle argument of \uput?

text: I am attempting to solve my own problem How to rotate the label such that its base line is parallel to the bisector? with the most elegant approach, i.e., passing a node as an angle argument of `\uput`. The following cases are ordered from the less elegant (but successful) to the more elegant (but fail).   * Case 1: Success to pass literal constants. ![enter image description here](http://i.stack.imgur.com/mnTEG.png)              \documentclass[pstricks,border=15pt]{standalone}     \usepackage{pst-eucl}          \begin{document}          \begin{pspicture}[showgrid](4,4)         \pstGeonode[PosAngle={-135,90},CurveType=polyline]             (1,1){O}             (2,3){A}         \pstGeonode([nodesep=2]O){X}         \psline[linestyle=dashed](O)(X)         \psarc[origin={O},linecolor=red]{->}(O){0.5}{(X)}{(A)}         \uput{1}%         [             !3 1 sub 2 1 sub atan         ]         {             !3 1 sub 2 1 sub atan         }(O){\textcolor{red}{$\pi-\theta$}}     \end{pspicture}          \end{document}        * Case 2: Fail to use `\psGetNodeCenter`. ![enter image description here](http://i.stack.imgur.com/fHXYX.png)              \documentclass[pstricks,border=15pt]{standalone}     \usepackage{pst-eucl}          \begin{document}          \begin{pspicture}[showgrid](4,4)         \pstGeonode[PosAngle={-135,90},CurveType=polyline]             (1,1){O}             (2,3){A}         \pstGeonode([nodesep=2]O){X}         \psline[linestyle=dashed](O)(X)         \psarc[origin={O},linecolor=red]{->}(O){0.5}{(X)}{(A)}         \uput{1}%         [             !\psGetNodeCenter{A}\psGetNodeCenter{O} A.y O.y sub A.x O.x sub atan          ]         {             !\psGetNodeCenter{A}\psGetNodeCenter{O} A.y O.y sub A.x O.x sub atan         }(O){\textcolor{red}{$\pi-\theta$}}     \end{pspicture}               \end{document}        * Case 3: Fail to pass a node. ![enter image description here](http://i.stack.imgur.com/3Rqa6.png)              \documentclass[pstricks,border=15pt]{standalone}     \usepackage{pst-eucl}          \begin{document}          \begin{pspicture}[showgrid](4,4)         \pstGeonode[PosAngle={-135,90},CurveType=polyline]             (1,1){O}             (2,3){A}         \pstGeonode([nodesep=2]O){X}         \psline[linestyle=dashed](O)(X)         \psarc[origin={O},linecolor=red]{->}(O){0.5}{(X)}{(A)}         \uput{1}[(A)]{(A)}(O){\textcolor{red}{$\pi-\theta$}}     \end{pspicture}              \end{document}      How to pass a node as the angle argument of `\uput`?


title: Font features selection in Xe(La)TeX

text: I am using the XeTeX engine in order to compile a document based on a class of my own, and the package `fontspec` to select the face families and features. Though this is not relevant for my question, just with the aim to be more concrete, let me say that for the sans face I am using Formata (from Adobe). This family comes in different .otf files, with the root name Formata, in such a way that the *-Regular file (and *-Light as well, this being just about weight series) includes only the "non-expert" types, small caps and text figures being included in files *-RegularSC and even another, *-RegularExpert. I have no problem about small caps thanks to the `fontspec` key `SmallCapsFont`, but I'd like to have text figures as my default selection for numerals. Of course I have `Numbers=OldStyle` set in my `\defaultfontfeatures`, but this won't do. Is there a way that I can get to the numerals in the "expert" files without having to switch through `\textsc`? Moreover, the Formata family includes a condensed face in a file *-Condensed (together with all shapes and weight series). Is there a switch to have this loaded without having to resort to `fontspec`'s `\newfontfamily` or `\newfontface`? Well, my priority is on the numerals-related question, but just to not open another post, I thought the latter would be appropriate here, too.


title: LaTeX formatting error

text: I've converted a word document to LaTeX but when I write :               "BELLARE , M , ..."        Latex shows me:               "... , M , BELLERE"      What's the error and how to solve it? part of text:               \documentclass[12pt]{article}     \usepackage{LectureTemplate}     \usepackage{xepersian}     \settextfont{XB Niloofar}          \begin{document}          \handout{سمینار نظریه علوم کامپیوتر}          \section{مقدمه:}          ....          \section{ منابع}          {     BELLARE , M , ...     }          \end{document}


title: figures numbering to 3 levels rather than 2

text: For some reason my current 'report' has started numbering figures to 3 levels... so if something is within chapter 1, but section 1.3, the figure gets numbered 1.3.1... This isn't what I want... it's too much granularity for me. I just figures numbered in order within the chapter... so 1.1, 1.2, 1.3 as they appear, regardless of the section within the chapter in which they appear. Could anyone help? Thanks.


title: Problem with \newcommand

text: When I compile the following document, I get the error > LaTeX Error: Something's wrong--perhaps a missing \item.               \documentclass[11pt]{book}     \usepackage[utf8]{inputenc}     \usepackage{amsmath,amsthm,amssymb,enumerate}          \begin{document}          \newtheorem{defi}{Definição}[section]          \newcommand{\cuatex}[3]     {\begin{center}     \setlength{\unitlength}{2.54cm}     \begin{picture}(#1,#2)     \put(0,0){\framebox(#1,#2){\begin{minipage}{12.5cm}#3\end{minipage}}}     \end{picture}     \end{center}}          \newcommand{\Defi}[2]     {\cuatex{5.2}{#1}{     \begin{defi}     #2     \end{defi}     }}          \chapter{Chapter I}     \section{Section 1}     This is only a test.          \Defi{2.1}{Diremos que un conjunto no vacío $X$ es un espacio métrico,     si sobre él está definida una función     $$     d:X\times X     $$     satisfaciendo las siguientes propriedades     \begin{itemize}     \item $d(x,y)=0$ si, y solamente si $x=y$.     \item La función $d$ es simétrica, esto es, $d(x,y)=d(y,x)$     \item $d(x,z)\leq d(x,y)+d(y,z)$ (desigualdad triangular)     \end{itemize}     La función $d$ es llamada métrica.     }     \end{document}


title: 3D as 2D plots using Matlab data

text: I am trying to plot 3d data as 2d (please refer to the attached figure![enter image description here](http://i.stack.imgur.com/GjTC4.png)). Is that possible at all in Tex (or Matlab)?(Usually, this is done a s a legend, however, when no colors are allowed, I have to plot it as in the attached picture). If so, please provide any hints. Thank you in advance Here is also a sample of the data:               X=[0 0 0 0 0     0.00499487214258387 0.0100271322719341  0.0151355841667174  0.0203619904285679  0.0257528910437245     0.00703013931750997 0.0141123715001326  0.0213007419561194  0.0286533748405864  0.0362349750090093     0.00856912164753604 0.0172011015018718  0.0259611298569260  0.0349192664533911  0.0441534216317338     0.00984769541100846 0.0197669024060679  0.0298317587516411  0.0401218833508729  0.0507257254049430     0.0109577332470996  0.0219942405774403  0.0331911596116199  0.0446361019206510  0.0564262963381876     0.0119466084732432  0.0239782392419037  0.0361829739474490  0.0486552739640120  0.0614998638245181     0.0128426154484001  0.0257757149277838  0.0388930053871466  0.0522949117805015  0.0660926587477192     0.0136642899493110  0.0274238903416811  0.0413774721254582  0.0556307081325855  0.0703005193527485     0.0144245776620953  0.0289487637697525  0.0436756433487295  0.0587155421791397  0.0741904098771546     0.0151329564382696  0.0303693701768318  0.0458162730087464  0.0615881383770832  0.0778113778863288     0.0157966212085941  0.0317001603416950  0.0478211921655991  0.0642779014739504  0.0812006730740997     0.0164211931300526  0.0329524247496926  0.0497074590478197  0.0668078104510510  0.0843874098612964     0.0170111676966756  0.0341351933703888  0.0514887177522871  0.0691962474012896  0.0873948821954542     0.0175702105696051  0.0352558296774944  0.0531760952694321  0.0714582050315404  0.0902420919849960     0.0181013600452389  0.0363204372087640  0.0547788154484420  0.0736061131758165  0.0929447953582426     0.0186071698801841  0.0373341463673818  0.0563046321253931  0.0756504218986758  0.0955162408504069     0.0190898126701751  0.0383013220178056  0.0577601426467341  0.0776000236025984  0.0979677038151599     0.0195511563564558  0.0392257171221451  0.0591510199088859  0.0794625654482437  0.100308881996065     0.0199928219502558  0.0401105886622858  0.0604821874442227  0.0812446851052654  0.102548194045946];          Y=[1 1 1 1 1     1.00100502512563 1.00100502512563 1.00100502512563 1.00100502512563 1.00100502512563     1.00201005025126 1.00201005025126 1.00201005025126 1.00201005025126 1.00201005025126     1.00301507537688 1.00301507537688 1.00301507537688 1.00301507537688 1.00301507537688     1.00402010050251 1.00402010050251 1.00402010050251 1.00402010050251 1.00402010050251     1.00502512562814 1.00502512562814 1.00502512562814 1.00502512562814 1.00502512562814     1.00603015075377 1.00603015075377 1.00603015075377 1.00603015075377 1.00603015075377     1.00703517587940 1.00703517587940 1.00703517587940 1.00703517587940 1.00703517587940     1.00804020100503 1.00804020100503 1.00804020100503 1.00804020100503 1.00804020100503     1.00904522613065 1.00904522613065 1.00904522613065 1.00904522613065 1.00904522613065     1.01005025125628 1.01005025125628 1.01005025125628 1.01005025125628 1.01005025125628     1.01105527638191 1.01105527638191 1.01105527638191 1.01105527638191 1.01105527638191     1.01206030150754 1.01206030150754 1.01206030150754 1.01206030150754 1.01206030150754     1.01306532663317 1.01306532663317 1.01306532663317 1.01306532663317 1.01306532663317     1.01407035175879 1.01407035175879 1.01407035175879 1.01407035175879 1.01407035175879     1.01507537688442 1.01507537688442 1.01507537688442 1.01507537688442 1.01507537688442     1.01608040201005 1.01608040201005 1.01608040201005 1.01608040201005 1.01608040201005     1.01708542713568 1.01708542713568 1.01708542713568 1.01708542713568 1.01708542713568     1.01809045226131 .01809045226131  1.01809045226131 1.01809045226131 1.01809045226131     1.01909547738693 1.01909547738693 1.01909547738693 1.01909547738693 1.01909547738693];          Z=[0.0500000000000000 0.100000000000000 0.150000000000000 0.200000000000000 0.250000000000000     0.0500000000000000 0.100000000000000 0.150000000000000 0.200000000000000 0.250000000000000     0.0500000000000000 0.100000000000000 0.150000000000000 0.200000000000000 0.250000000000000     0.0500000000000000 0.100000000000000 0.150000000000000 0.200000000000000 0.250000000000000     0.0500000000000000 0.100000000000000 0.150000000000000 0.200000000000000 0.250000000000000     0.0500000000000000 0.100000000000000 0.150000000000000 0.200000000000000 0.250000000000000     0.0500000000000000 0.100000000000000 0.150000000000000 0.200000000000000 0.250000000000000     0.0500000000000000 0.100000000000000 0.150000000000000 0.200000000000000 0.250000000000000     0.0500000000000000 0.100000000000000 0.150000000000000 0.200000000000000 0.250000000000000     0.0500000000000000 0.100000000000000 0.150000000000000 0.200000000000000 0.250000000000000     0.0500000000000000 0.100000000000000 0.150000000000000 0.200000000000000 0.250000000000000     0.0500000000000000 0.100000000000000 0.150000000000000 0.200000000000000 0.250000000000000     0.0500000000000000 0.100000000000000 0.150000000000000 0.200000000000000 0.250000000000000     0.0500000000000000 0.100000000000000 0.150000000000000 0.200000000000000 0.250000000000000     0.0500000000000000 0.100000000000000 0.150000000000000 0.200000000000000 0.250000000000000     0.0500000000000000 0.100000000000000 0.150000000000000 0.200000000000000 0.250000000000000     0.0500000000000000 0.100000000000000 0.150000000000000 0.200000000000000 0.250000000000000     0.0500000000000000 0.100000000000000 0.150000000000000 0.200000000000000 0.250000000000000     0.0500000000000000 0.100000000000000 0.150000000000000 0.200000000000000 0.250000000000000     0.0500000000000000 0.100000000000000 0.150000000000000 0.200000000000000 0.250000000000000];      Please notice how Z is constant for each column


title: Label one line in a begin align*

text: I have the following block of TeX:               \begin{align*}     m_n^+ = \dfrac{1}{n}\sum\limits_{k=N+1}^{n} =& \dfrac{1}{n}\sum\limits_{k=N+1}^{n}\left(a_k-L+L\right) \\                                                 <& \dfrac{1}{n}\sum\limits_{k=N+1}^{n}\left(\dfrac{\epsilon}{2}+L\right) \\                                                 <& \dfrac{1}{n}\sum\limits_{k=1}^{n}\left(\dfrac{\epsilon}{2}+L\right) = \dfrac{\epsilon}{2}+L \\     \end{align*}      How could I set a label for the last line in this block so that I may reference it later?


title: Problem with framelines in tables

text: I am having a problem with LaTeX at the moment, which I seem completely incapable of solving. I am trying to create a simple table which has 4 columns and (should have in the end) 36 rows, including a header row. That header row, I want it to have a grey background. Now, I have solved most of the issues concerning that topic, but in the end, my table refuses to put a vertical like between the 3rd and 4th header column - as long as it has the grey background color. Before I tried to use the `\cellcolor[...]` option, and when I removed it for that 3rd and 4th cell, LaTeX would draw that vertical line. So I tried with the `\rowcolor[...]` option, but the same thing. It's just either grey background or the missing vertical line. I have tried two ways to draw that table, but the problem persists. Here is my example document, with two options that I tried to draw that table:               \documentclass[12pt,a4paper,toc=listofnumbered]{scrbook}     \usepackage[table]{xcolor}     \usepackage[ngerman]{babel}     \usepackage[utf8]{inputenc}     \usepackage{lmodern}          \definecolor{dunkelgrau}{rgb}{0.8,0.8,0.8}          %First Option, but here is the upper left vertical line and the upper horizontal line missing     \begin{document}     \begin{table}[h]     \begin{tabular}{|c|c|c|c|}     \rowcolor{dunkelgrau}     \hline     \textbf{Proben-Nr.} & \textbf{Lokalität} & \textbf{Höhe in cm} & \textbf{Schliff-Nr.} \\     \hline     A & B & C & D  \\     \hline     A & B & C & D \\     \hline     \end{tabular}     \end{table}          %Second option, here the frame is entirely complete, just the missing vertical line between the 3rd and 4th header cell     \begin{tabular}{|c|c|c|c|}     \rowcolor{dunkelgrau}     \hline Proben-Nr. & Lokalität & Höhe in cm & Schliff-Nr. \\      \hline A & B & C & D \\      \hline A & B & C & D \\      \hline      \end{tabular}           \end{document}


title: Bibtex and Miktex: A bibliography program (empty) bbl file

text: There are quite few posts with the same problem and I think I tried all of them, and couldn't solve the issue. I am using a thesis template and Texmaker on Ubuntu, so, I guess following lines related to reference.               \bibliographystyle{plainnat}     \bibliography{bibbase}      I have an empty `planinnat.bst`, and this is my .bib file               @INPROCEEDINGS {author:06,      title    = {Some publication title},      author   = {First Author and Second Author},      crossref = {conference:06},      pages    = {330—331},     }     @PROCEEDINGS {conference:06,      editor    = {First Editor and Second Editor},      title     = {Proceedings of the Xth Conference on XYZ},      booktitle = {Proceedings of the Xth Conference on XYZ},      year      = {2006},      month     = oct,     }      and by running `bibtex` on the .aux file a `.blg` file is generated and it looks like this               This is 8-bit Big BibTeX version 0.99c Implementation:  C for Unix Release version: 3.71 (31 May 2005)          The 8-bit codepage and sorting file: 88591lat.csf The top-level auxiliary file: master2010.aux The style file: plainnat.bst          Here's how much of BibTeX's memory you used:  Cites:                 4 out of 750  Fields:                0 out of 17250  Hash table:         4998 out of 5000  Strings:              89 out of 4000  String pool:   590 out of 65530  Wizard functions:      0 out of 3000      So, apparently bibtex found 4 citations, and I expect to have a `.bbl` file as well, but it's empty. EDIT : I found a plainnat.bst from here, and now, .bbl is not empty anymore,but its not what I expect ! Its just like this               \begin{thebibliography}{1}     \expandafter\ifx\csname natexlab\endcsname\relax\def\natexlab#1{#1}\fi     \expandafter\ifx\csname url\endcsname\relax       \def\url#1{{\tt #1}}\fi          \bibitem[aut()]{author:06}               \end{thebibliography}


title: How to create a virtual font?

text: In his answer to the question Replace hyphenation character by a backwards arrow, Hendrik Vogt writes: > If you come into a situation where you want your hyphenchar to be something > like `\hookleftarrow`, and Philipp's answer does _not_ help, then there's > still the option to create a virtual font. By this you can circumvent both > the problems that `\hookleftarrow` is from a different font and that it's > not a single character. It's not as hard as it might sound: If you need > this, I can fill in the details. I would like to know these "details" and a solution to this problem in particular.


title: What does the 'etex' package do, exactly?

text: I was creating a rather large `LaTeX` project, so I had to use many packages. This gave me an error > `No room for a new \dimen \newdimen \MPscratchDim` while my editor(Kile) opened the file `supp-pdf.mkii`, pointing at the line > `\newdimen\MPscratchDim % will be assigned global` Searching through the net, I found that this could happen due to loading too many packages, as answered in No room for a new `\dimen` by egreg. Indeed I loaded, `etex` and everything works fine now. I searched `etex` on CTAN to understand what does this particular package do, but I am not able to understand what is going on. As stated by CTAN > The package provides support for LATEX documents to use many of the > extensions offered by e-TEX; in particular, it **modifies** LATEX’s > **register allocation** macros to make use of the **extended > register range** I believe that the bold words give the answer, but I cannot understand why there is a limited _register allocation_ (I don't even know what that is) and how can a package _extend_ this _register range_. Any idea on that will be very educational!


title: documentclass{book}: Page content aligned on bottom of page

text: I'm still a beginner on LaTeX, but at the moment I'm working on a book. I'm working with Gummi and for some reason I started my work with \documentclass{article}. As I changed the \documentclass to {book}, the content of the page was aligned to the bottom of the page - when I change back to {article} everything is normal again. I already searched on the net, but I could neither find a reason for that behaviour nor a solution for my problem... Anyone an idea how to solve this? I give a piece of my code of a page with that problem:               \documentclass[12pt]{book}     \usepackage{graphicx}     \usepackage{geometry}     \usepackage[german]{babel}     \usepackage[utf8]{inputenc}           \geometry{a4paper, top=20mm, left=30mm, right=10mm, bottom=20mm,     headsep=10mm, footskip=12mm}          \begin{document}          \centering     \begin{Huge}     \textbf{1934 - 1949}     \end{Huge}     \linebreak \linebreak          \centering     \begin{minipage}{7cm}     \includegraphics[width=7cm]{Bilder/robert2.jpg}     \end{minipage}     \begin{minipage}{9cm}     \parbox{9cm}{     \textbf{1934:}\\     Die Nationalsozialisten festigen ihre Macht...  \\     \textbf{1939:}\\     Die Wehrmacht greift Polen an und beginnt somit den 2. Weltkrieg.\\     \textbf{1945:}\\     Am 8. Mai Am 8. Mai kapituliert die Wehrmacht bedingungslos...\\     \textbf{1948:}\\     Die Westzonen führen die D-Mark ein, woraufhin Moskau...\\     \textbf{1949:}\\     Aus den westlichen Besatzungszonen gründet sich die...      }     \end{minipage}     \linebreak     \linebreak     \linebreak     \renewcommand{\arraystretch}{2}     \begin{tabular}{ p{3.2cm} p{13cm} }     Juli 1934 & some text\\     Dezember 1943 & another text in column \\     September 1949 & more and more text in right column \\     \end{tabular}     \pagebreak          \end{document}


title: Removal of grid lines in pst-solides3d object

text: Is it possible to either remove the grid lines in a `pst-solides3d` object or make them thinner? Specifically, I'm thinking of the rings in Herbert's answer here. I have had a look in the manual but I can't seem to find anything regarding the issue mentioned. **Update** This is a follow-up question: I think it should be               \psSolid[r1=1,  ngrid=20 100,        RotY=90,        fillcolor=blue,  name=R1](0,0,3)     \psSolid[r1=0.9,ngrid=20 90, RotX=90,        RotZ=30,fillcolor=green, name=R2](0,0,1.5)     \psSolid[r1=0.8,ngrid=20 80,         RotY=90,        fillcolor=red,   name=R3](0,0,0.2)     \psSolid[r1=0.7,ngrid=20 70, RotX=90,        RotZ=30,fillcolor=yellow,name=R4](0,0,-0.9)     \psSolid[r1=0.6,ngrid=20 60,         RotY=90,        fillcolor=Purple,name=R5](0,0,-1.8)      in Herbert's answer in the other question. Then we have the following: (1) The grid 'tiles' are square-looking. (2) With the new coordinates for the rings, they are not 'floating' or overlapping when interlocked with one another. Am I right on this? **Update 2** The rings can be smoothened even further but the code takes a _very_ long time to compile (using XeLaTeX):               \documentclass[       dvipsnames     ]{article}          \usepackage{pst-solides3d}          \begin{document}          \begin{center}       \begin{pspicture}[solidmemory](-2.9,-7.95)(2.9,10.45)        \psset{          lightsrc=viewpoint,          viewpoint=40 -10 0 rtp2xyz,          Decran=100,          object=tore,          r0=0.2,          action=none        }         \psSolid[r1=1,  ngrid=66 330,        RotY=90,        fillcolor=blue,  name=R1](0,0,3)         \psSolid[r1=0.9,ngrid=66 297,RotX=90,        RotZ=30,fillcolor=green, name=R2](0,0,1.5)         \psSolid[r1=0.8,ngrid=66 264,        RotY=90,        fillcolor=red,   name=R3](0,0,0.2)         \psSolid[r1=0.7,ngrid=66 231,RotX=90,        RotZ=30,fillcolor=gray,  name=R4](0,0,-0.9)         \psSolid[r1=0.6,ngrid=66 198,        RotY=90,        fillcolor=yellow,name=R5](0,0,-1.8)         \psSolid[r1=0.5,ngrid=66 165,RotX=90,        RotZ=30,fillcolor=Purple,name=R6](0,0,-2.5)         \psSolid[           object=fusion,           base=R1 R2 R3 R4 R5 R6,           linewidth=0.1pt,           linecolor=black!60,           action=draw**         ]       \end{pspicture}     \end{center}          \end{document}      P.S. I have added an extra ring and changed the colours.


title: Move figure away from first page, in two-column mode

text: I'm trying to suppress any floats, tables and figures, from appearing on the first page in a two-column ieeetran document: > Furthermore, IEEE journals never place floats in the first column of the > first page and rarely (if ever) do they do so in the second column of the > first page. Middle in-text placement (“here”) is not used. But so far I have no luck. Actually, I haven't even been able to get the `\suppressfloats` command to work at all in this set-up, on any page. Does `\suppressfloats` even work with ieeetran?   Does `\suppressfloats` even work with `twocloumn`? Related question: Move figure away from the first page _Edit_   After having done some testing with the `bare_jrnl.tex` template, I've come to some conclusions, but not nearly enough to satisfy me:   * `\suppressfloats` does seem to _work_ with ieeetran   * The conditions of _work_ is not clear to me, i.e. it seems to be dependent on both the amount of text, sections, subsections, placement of the command (even tough they appear on the same page), placement of float in text, etc.   * placing `\suppressfloats` just after `\begin{document}` never seems to work Even so, I still can't get latex to move my float in my original document. Suggestions that I could move the float, in text, away is kind of hassle if it moves to far away (like different (sub)sections in different files, etc.).


title: Latex Tikz drawing

text: I am trying to draw following diagram on a latex using Tikz library but unfortunately the nodes are unable to be moved around. Its always centered on the center and cannot be moved. Can anyone help me how to draw this diagram on a latex.![diagram](http://i.stack.imgur.com/gfPa8.png)               \begin{figure*}[t!] %  figure placement: here, top, bottom, or page     \centering     \includegraphics[width=7.2in]{../picture/sequence2}                     \begin{picture}(0,0)     %\put(188,124){\vector(0,-4){30}}     %\put(118,124){\vector(0,-4){30}}     %\put(48,124){\vector(0,-4){30}}     %\put(-22,124){\vector(0,-4){30}}     %\put(-93,124){\vector(0,-4){30}}     %\put(-155,124){\vector(0,-4){30}}     %\put(-225,124){\vector(0,-4){30}}          \put(95,117){\small Boundary Estimation}     \put(107, 74){\small Modeling and }     \put(116, 65){\small Learning}          \put(8, 74){\small Tracking and }     \put(8, 65){\small Segmentation}          \end{picture}          % \begin{tikzpicture}[node distance = 2cm, auto]     % \node at (-10,01) [mynode] (n0){Boundary Estimation};     % \node [mynode, below of = n0 ] (n1){Modeling and Learning};      %      % \node [mynode, left of = n1, distance = 3cm ] (n2){Tracking and Segmentation};      %      %      % \end{tikzpicture}          \caption{example caption}     \label{fig:example}     \end{figure*}


title: Defining a dynamic variable

text: ## Goal : I would like to create a variable that could be dynamically updated. ## Context : Every chapter of my document has a specific keyword (actually a bibtex entry). And sometimes, I need to print it, or use it as a parameter for another command. So I need to define a first command that stores the keyword, and another command that prints it. Thereby, for every new chapter, the keyword changes, and so does the variable. ## So far : This is the commands I (think I) would need :               \newcommand{\aNewChapter}[2]{%       \textbf{#1} % The title of the chapter       \setVariable{#2} % The definition of the variable     }     \newcommand{\setVariable}[1]{#1}      \newcommand{\printVariable}{???}     \begin{document}     \aNewChapter{The first chapter}{keyword1}     Some text...     \printVariable % this should, in this case, print 'keyword1'     The rest of the text     \end{document}      The idea doesn't seem massively complex, but I can't find any solution to achieve it. It would be easy if I set the variable manually, rather than with a parameter. But I need this 'dynamic' way of doing. The problem is then that I don't know how to print it. It seems so easy that I almost feel dumb to ask that...


title: File 'environ.sty' not found on Ubuntu 13.04 with texlive 2013

text: I found a similar answer but regarding a different distro and the solution did not work for me, so:   * on an Ubuntu 13.04   * I made yesterday (to say that it's clean & brand new) a complete network installation of texlive   * afterwards I installed texstudio   * I tried to compile a tex file using a cls that used environ.sty -!- texstudio complain about not finding file environ.sty BUT   * if I try from a command line everything works fine   * `tlmgr -check` all seems ok   * `tlmgr -files` gives package environ as installed   * `kpsewhich environ.sty` outputs `/usr/local/texlive/2013/texmf-dist/tex/latex/environ/environ.sty` I am trying to convince a bunch of people around me to get rid of M$ stuff but I'm quite a newbie too in the world of the penguin, so please help me :)


title: Use of \\minted@pygmentize doesn't match its definition

text: Having followed the installation instructions for the minted package (CTAN), I keep encountering the error, and variations thereof, listed in the title when trying to compile the document. The relevant preamble:               \usepackage{./ExtraPackages/minted/minted}      The call to use minted:                   \appendix         \chapter{Appendices}         \section*{Python Source Code}         \label{app: SourceCode}         \begin{minted}             \inputminted{python}{SourceCode/strainPOSCAR.py}         \end{minted}      I have something of a tight deadline so any help would be particularly appreciated :-).


title: tabular inside a newcommand

text: I'm trying to define a \newcommand that has a tabular in it, but I get an:               ! You can't use `macro parameter character #' in restricted horizontal mode.      Here's an example:               \newcommand{\Mytest}{1}{     \begin{tabular}{c}         #1 \\\hline     \end{tabular}     }      Any way around this?


title: Latex connecting lines between nodes on Tree

text: How can I connect 2 horizontal nodes on a tree? That is I want to connect z1 to z2. but the line should continue to the right of z2 and left of z1 to show continuity. Like wise for theta 1 and theta 2. ![Tree image](http://i.stack.imgur.com/hYIa8.png) My current latex commands:               \begin{tikzpicture}[level distance=1.2cm,                          level 1/.style={sibling distance=4cm},                         level 2/.style={sibling distance=1cm}                        ]     \centering     \tikzstyle{every node}=[circle,draw]          \node (Root) [black] {$z_{1}$}         child {         node {$\theta_{1}$}          child { node {$\varphi_{1}$} edge from parent node[left,draw=none]{} }         child { node {$\varphi_{2}$} }         child { node {$\varphi_{3}$} }     };     \hspace*{4cm}\node (Root) [black] {$z_{2}$}     child {         node {$\theta_{2}$}         child { node {$\varphi_{1}$} }         child { node {$\varphi_{2}$} }         child { node {$\varphi_{3}$} }         child { node {$\varphi_{4}$} }     };          \end{tikzpicture}


title: Using \verbatiminput on filenames with underscores

text: I'm trying to include some source files using `\verbatiminput{}`. Some of these filenames have underscores in them. This works fine by default. But if I try to include the `underscore` package so that I can use underscores in text and within `\texttt{}`, suddenly my `verbatim input` stops working (it tries to read the file specified by the name before the underscore, and it just prints out the text after the underscore). How can I fix this?


title: Font size in toc

text: I get a problem when creating toc with my style, I want all font size is normalsize, but it doesn't work for the chapter. here my code :               \titleformat{\chapter}[display]{\large\bfseries\fillast }{BAB \thechapter}{0pt}{}     \titlespacing{\chapter}{0pt}{-0.275in}{20pt}     \chapterfont{\normalfont\centering}     \chaptertitlefont{\centering\normalfont}          \renewcommand{\cfttoctitlefont}{\hfill\normalfont\bfseries\MakeUppercase}     \renewcommand{\cftchapfont}{\normalfont}     \renewcommand{\cftchappagefont}{\normalfont}     \renewcommand{\cftaftertoctitle}{\hfill}     \renewcommand{\cftchapleader}{\normalfont\cftdotfill{\cftchapdotsep}}      and the result: ![enter image description here](http://i.stack.imgur.com/mZ7sN.jpg) How to set the font size of the chapter to normalsize?


title: Create appendix in LyX?

text: I use report class, I create appendix in LyX :   1. The definition of the appendix has been defined from the LyX menu Document->Start Appendix Here   2. The contents of Appendices are listed in a separate List of Appendices. The List of Appendices page is defined by `tocloft` command, in the LaTeX preamble: \newlistof{appendices}{loa}{DAFTAR LAMPIRAN}   3. The format setting of the heading is consistent with LOF and LOT. These four lines must be written in the LaTeX preamble:              \renewcommand{\cftloatitlefont}{\hfill\normalfont\bfseries\MakeUppercase}      \renewcommand{\cftafterloatitle}{%      \hfill\null\\[2\baselineskip]\bfseries     No.Lampiran\hfill\phantom{Halaman}Judul     Lampiran\phantom{No.Lampiran}\hfill Halaman}     \renewcommand\cftafterloatitleskip{1\baselineskip}     \renewcommand{\cftappendicespresnum}{}      In order to print the chapter headings in List of Appendices, right after the appendix definition (from the menu Document->Start Appendix Here), LaTeX commands are inserted : This is simply copied from book.cls then changed toc to loa.               \makeatletter     \def\@chapter[#1]#2{\ifnum \c@secnumdepth >\m@ne     \if@mainmatter      \refstepcounter{chapter}%     \typeout{\@chapapp\space\thechapter.}%     \addcontentsline{loa}{chapter}%     {\protect\numberline{\thechapter}#1}%      \else     \addcontentsline{loa}{chapter}{#1}%     \fi     \else     \addcontentsline{loa}{chapter}{#1}%     \fi     \chaptermark{#1}%     \addtocontents{lof}{\protect\addvspace{10\p@}}%     \addtocontents{lot}{\protect\addvspace{10\p@}}%     \if@twocolumn     \@topnewpage[\@makechapterhead{#2}]%     \else     \@makechapterhead{#2}%     \@afterheading     \fi}     \makeatother      To prevent section headings of the appendices printed in TOC, `minitoc` command is used. The package minitoc must be called in the preamble `\usepackage{minitoc}`. And The following command is then inserted right after the appendix definition :               \addtocontents{toc}{\protect\setcounter{tocdepth}{0}}      the problems are : I get the loa as printed : a word "BAB" printed as `\cftchappresnum` ![loa=DAFTAR LAMPIRAN](http://i.stack.imgur.com/fMn6E.jpg)


title: TeX Live (and MiKTeX) + Windows 7 + Texmaker problem with expl3.sty

text: I recently updated MiKTeX and I can't compile anymore xelatex through Texmaker simple multilingual tex e.g.               \documentclass{article}     \usepackage{xltxtra}     \usepackage{xgreek}     \setmainfont[Mapping=tex-text]{Times New Roman}     \begin{document}      Hello world Χαίρε κόσμε      \end{document}      obtaining errors concerning expl3.sty I read a lot of solutions in various places and to be frank I got rather confused. I removed MiKTeX and installed TeX Live instead but the problem persists. The error part of my logfile is:               (c:/texlive/2011/texmf-dist/tex/latex/l3kernel/l3names.sty     (c:/texlive/2011/texmf-dist/tex/latex/l3kernel/l3bootstrap.sty     Package: l3bootstrap 2011/09/10 v2798 L3 Experimental bootstrap code)     Package: l3names 2011/09/07 v2776 L3 Experimental namespace for primitives)          ! Undefined control sequence.     <argument> \filename           l.55 ...\filedate}{\fileversion}{\filedescription}          The control sequence at the end of the top line     of your error message was never \def'ed. If you have     misspelled it (e.g., `\hobx'), type `I' and the correct     spelling (e.g., `I\hbox'). Otherwise just continue,     and I'll forget about whatever was undefined.          ! Undefined control sequence.     <write> ...e \@cls@pkg \space provides `\filename                                                    '\@gobble \on@line .^^J     l.55 ...\filedate}{\fileversion}{\filedescription}          The control sequence at the end of the top line     of your error message was never \def'ed. If you have     misspelled it (e.g., `\hobx'), type `I' and the correct     spelling (e.g., `I\hbox'). Otherwise just continue,     and I'll forget about whatever was undefined.               LaTeX Warning: You have requested package `expl3',                but the package provides `'.      followed by 6 more "! Undefined control sequence." full messages concluding with:               ! LaTeX Error: File `l3intexpr.sty' not found.          Type X to quit or <RETURN> to proceed,     or enter new name. (Default extension: sty)          Enter file name:      ! Emergency stop.     <read *>           l.83 \RequirePackage                     {      *** (cannot \read from terminal in nonstop modes)      Texmaker classifies the error messages in the expl3.sty package. * * * Thank you for your help. Unfortunately the problem is still there... MikTex shows that "no updates available" There is just an expl3.sty file inside the l3kernel folder. I can't find it directly from TexLive Manager (just as a filename inside the l3kernel package) The complete log file is:               This is XeTeX, Version 3.1415926-2.3-0.9997.5 (Web2C 2011) (format=xelatex 2011.9.21)       22 SEP 2011 11:30     entering extended mode      restricted \write18 enabled.      %&-line parsing enabled.     **test.tex     (./test.tex     LaTeX2e <2011/06/27>     Babel <v3.8m> and hyphenation patterns for english, dumylang, nohyphenation, an     cientgreek, ibycus, ukenglish, usenglishmax, monogreek, greek, loaded.     (c:/texlive/2011/texmf-dist/tex/latex/base/article.cls     Document Class: article 2007/10/19 v1.4h Standard LaTeX document class     (c:/texlive/2011/texmf-dist/tex/latex/base/size10.clo     File: size10.clo 2007/10/19 v1.4h Standard LaTeX file (size option)     )     \c@part=\count80     \c@section=\count81     \c@subsection=\count82     \c@subsubsection=\count83     \c@paragraph=\count84     \c@subparagraph=\count85     \c@figure=\count86     \c@table=\count87     \abovecaptionskip=\skip41     \belowcaptionskip=\skip42     \bibindent=\dimen102     )     (c:/texlive/2011/texmf-dist/tex/latex/xltxtra/xltxtra.sty     Package: xltxtra 2010/09/20 v0.5e Improvements for the "XeLaTeX" format          (c:/texlive/2011/texmf-dist/tex/generic/oberdiek/ifluatex.sty     Package: ifluatex 2010/03/01 v1.3 Provides the ifluatex switch (HO)     Package ifluatex Info: LuaTeX not detected.     )     (c:/texlive/2011/texmf-dist/tex/generic/ifxetex/ifxetex.sty     Package: ifxetex 2010/09/12 v0.6 Provides ifxetex conditional     )     (c:/texlive/2011/texmf-dist/tex/latex/fontspec/fontspec.sty     Package: fontspec 2011/09/18 v2.2a Advanced font selection for XeLaTeX/LuaLaTeX           (./expl3.sty     (c:/texlive/2011/texmf-dist/tex/latex/l3kernel/l3names.sty     (c:/texlive/2011/texmf-dist/tex/latex/l3kernel/l3bootstrap.sty     Package: l3bootstrap 2011/09/10 v2798 L3 Experimental bootstrap code     )     Package: l3names 2011/09/07 v2776 L3 Experimental namespace for primitives     )     ! Undefined control sequence.     <argument> \filename           l.55 ...\filedate}{\fileversion}{\filedescription}          The control sequence at the end of the top line     of your error message was never \def'ed. If you have     misspelled it (e.g., `\hobx'), type `I' and the correct     spelling (e.g., `I\hbox'). Otherwise just continue,     and I'll forget about whatever was undefined.          ! Undefined control sequence.     <write> ...e \@cls@pkg \space provides `\filename                                                    '\@gobble \on@line .^^J     l.55 ...\filedate}{\fileversion}{\filedescription}          The control sequence at the end of the top line     of your error message was never \def'ed. If you have     misspelled it (e.g., `\hobx'), type `I' and the correct     spelling (e.g., `I\hbox'). Otherwise just continue,     and I'll forget about whatever was undefined.               LaTeX Warning: You have requested package `expl3',                but the package provides `'.          ! Undefined control sequence.     <argument> \filedate                        v\fileversion  \filedescription      l.55 ...\filedate}{\fileversion}{\filedescription}          The control sequence at the end of the top line     of your error message was never \def'ed. If you have     misspelled it (e.g., `\hobx'), type `I' and the correct     spelling (e.g., `I\hbox'). Otherwise just continue,     and I'll forget about whatever was undefined.          ! Undefined control sequence.     <argument> \filedate  v\fileversion                                       \filedescription      l.55 ...\filedate}{\fileversion}{\filedescription}          The control sequence at the end of the top line     of your error message was never \def'ed. If you have     misspelled it (e.g., `\hobx'), type `I' and the correct     spelling (e.g., `I\hbox'). Otherwise just continue,     and I'll forget about whatever was undefined.          ! Undefined control sequence.     <argument> ...te  v\fileversion  \filedescription           l.55 ...\filedate}{\fileversion}{\filedescription}          The control sequence at the end of the top line     of your error message was never \def'ed. If you have     misspelled it (e.g., `\hobx'), type `I' and the correct     spelling (e.g., `I\hbox'). Otherwise just continue,     and I'll forget about whatever was undefined.          ! Undefined control sequence.     <write> Package: \@gtempa \space \filedate                                              v\fileversion  \filedescription      l.55 ...\filedate}{\fileversion}{\filedescription}          The control sequence at the end of the top line     of your error message was never \def'ed. If you have     misspelled it (e.g., `\hobx'), type `I' and the correct     spelling (e.g., `I\hbox'). Otherwise just continue,     and I'll forget about whatever was undefined.          ! Undefined control sequence.     <write> ...gtempa \space \filedate  v\fileversion                                                     \filedescription      l.55 ...\filedate}{\fileversion}{\filedescription}          The control sequence at the end of the top line     of your error message was never \def'ed. If you have     misspelled it (e.g., `\hobx'), type `I' and the correct     spelling (e.g., `I\hbox'). Otherwise just continue,     and I'll forget about whatever was undefined.          ! Undefined control sequence.     <write> ...edate  v\fileversion  \filedescription           l.55 ...\filedate}{\fileversion}{\filedescription}          The control sequence at the end of the top line     of your error message was never \def'ed. If you have     misspelled it (e.g., `\hobx'), type `I' and the correct     spelling (e.g., `I\hbox'). Otherwise just continue,     and I'll forget about whatever was undefined.          Package:   v      (c:/texlive/2011/texmf-dist/tex/latex/etex-pkg/etex.sty     Package: etex 1998/03/26 v2.0 eTeX basic definition package (PEB)     \et@xins=\count88     )     (c:/texlive/2011/texmf-dist/tex/latex/l3kernel/l3basics.sty     Package: l3basics 2011/09/12 v2817 L3 Experimental basic definitions     )     (c:/texlive/2011/texmf-dist/tex/latex/l3kernel/l3expan.sty     Package: l3expan 2011/09/12 v2812 L3 Experimental argument expansion     )     (c:/texlive/2011/texmf-dist/tex/latex/l3kernel/l3tl.sty     Package: l3tl 2011/09/12 v2812 L3 Experimental token lists     )          ! LaTeX Error: File `l3intexpr.sty' not found.          Type X to quit or <RETURN> to proceed,     or enter new name. (Default extension: sty)          Enter file name:      ! Emergency stop.     <read *>           l.83 \RequirePackage                     {      *** (cannot \read from terminal in nonstop modes)               Here is how much of TeX's memory you used:      1610 strings out of 495646      24751 string characters out of 3186730      60250 words of memory out of 3000000      4819 multiletter control sequences out of 15000+200000      3640 words of font info for 14 fonts, out of 3000000 for 9000      36 hyphenation exceptions out of 8191      37i,0n,27p,339b,36s stack positions out of 5000i,500n,10000p,200000b,50000s      No pages of output.


title: Change font via `ERT` at LyX

text: I want to change font at LyX via `ERT` (e.g. for one of the Culmus Hebrew fonts).   I remeber that was one command like `\set...{fontname}` and then the font change to _fontname_ (What was before this command was with no change... Can you help me and tell me which command is it? **And not via XeTex/LuaTex**.... Thank you!


title: teTeX Distribution in Slackware

text: I have installed slackware 14. It has an in-built support for TeX. The distributions provided are **teTeX** and **eTeX**. Does it make a difference if I install **TeXLive 2013**? Secondly, I am not able to compile the documents using **XeLaTeX** in **slackware**.I can compile only using PdfLaTeX and eTeX.What should I do?


title: How do I make a small pmatrix?

text: I want a small matrix but the only command I can find is `\smallmatrix` which leaves the brackets out. Is there a simliar one that includes brackets?


title: Generating Gantt Charts for process scheduling

text: I am trying to create a gantt chart for my thesis on blocking analysis. I know of the pgfgantt package for generating gantt charts. But this package generates charts for normal schedules, what I need is gantt charts specifically for blocking analysis, like those used in Operating Systems text books. Here is an example of what I need: ![Gantt Chart for CPU scheduling](http://i.stack.imgur.com/kDfrJ.png) How can I make a chart similar to this one using pdflatex? I don't mind using pgfgantt either, except I don't see how it can render something like this.


title: How to change the order in natbib´s short citation?

text: I´m using `natbib` with the `apalike` style. When using the short citation               \citet[p. 22]{Testauthor98}      it shows me > Testauthor (1998, p. 22) What do i have to do/change in order to get the following result? > Testauthor (1998), p. 22


title: How to number tables and figures according to sections and subsections independently?

text: I am writing a document that does not required much formalisms, but I want to implement the following numbering system:               1 Section     Table 1: Caption     Figure 1: Caption     1.1 Subsection     Table 1.1: Caption     Figure 1.1: Caption      Any suggestion?


title: datatool repeat row

text: I intend to create a document where parts of the text are read from the entries of a `.csv` file using the package `datatool` (version 2012/09/25 v2.11., updated manually under debian). Everything works fine as I want: activities.csv:               "Role","Activity","NbActivity"     "Role 1","Activity A",1     "Role 1","Activity B",2     "Role 2","Activity C",3      read by the following `.tex` file:               \documentclass{minimal}     \usepackage[english]{babel}     \usepackage{datatool}     \DTLloaddb[]{activities}{activities.csv}     \begin{document}     \DTLforeach{activities}     {\role=Role, \activity=Activity, \NbA=NbActivity}{     \role      \activity \\     }     \end{document}      For the purpose of the document that I would like to create, rows of the database should be copied by the number indicated in the "NbActivity" column, resulting in something like that,...               "Role","Activity","NbActivity"     "Role 1","Activity A",1     "Role 1","Activity B",2     "Role 1","Activity B",2     "Role 2","Activity C",3     "Role 2","Activity C",3     "Role 2","Activity C",3      ... in order to repeat those entries in the text as follows: > Role 1 Activity A > > Role 1 Activity B > > Role 1 Activity B > > Role 2 Activity C > > Role 2 Activity C > > Role 2 Activity C I tried to solve this by using `\DTLnewdbentry` and loops as suggested in Repeat command n times?, but just can't figure out how to do this. I am new to LaTeX programming/ macros, and would really appreciate any help, thank you.


title: lettrine inside multicol positioned wrong. problem with \columnbreak

text: The following code shows two problems. 1. the intendation of the lettrine is wrong inside the multicols environment and the SampleList environment unless a `\vfill` is inserted at the end. 2. The next picture (here emulated as a minipage) after the SampleList is positioned with a large separation, which is unwanted. ![enter image description here](http://i.stack.imgur.com/13oIa.png)               \documentclass[]{scrbook}          \usepackage{multicol}     \usepackage{lettrine}          \begin{document}          \newcounter{itemstep}     \setcounter{itemstep}{0}     \setlength{\parindent}{0pt}          \newenvironment{SampleList}{}{}     \newcommand{\step}{%     \stepcounter{itemstep}%     \lettrine[findent=5pt,lines=1]{\theitemstep}{}     }% end of \step           \begin{multicols}{2}          \begin{minipage}[b]{.99\linewidth}     \centering     \rule{0.95\linewidth}{9cm}     \end{minipage}          \begin{SampleList}     \step This is some example text. This is some example text. This is some example text. This is some example text. This is some example text. This is some example text. This is some example text.      \step This is some example text. This is some example text. This is some example text. This is some example text. This is some example text. This is some example text. This is some example text. This is some example text. This is some example text. This is some example text. This is some example text. This is some example text. This is some example text.      \step This is some example text. This is some example text. This is some example text. This is some example text. This is some example text. This is some example text.      %     \columnbreak % <-- error of large free space introduced here     %     \step This is some example text. This is some example text. This is some example text. This is some example text. This is some example text. This is some example text.      %     \vfill % <-- necessary to position last lettrine number correct     \end{SampleList}     %      \begin{minipage}[b]{.99\linewidth}     \centering     \rule{0.95\linewidth}{5cm}     \end{minipage}     %     \begin{SampleList}     \step This is some example text. This is some example text. This is some example text. This is some example text. This is some example text. This is some example text.      \step This is some example text. This is some example text. This is some example text. This is some example text.      % \vfill  % <- commented to show error with position of last lettrine number     \end{SampleList}     \end{multicols}          \end{document}


title: Consistent alignment in eqlist throughout chapter

text: I am currently using eqlist to create a summary of the mathematical notation in my thesis. For example,               \section*{Statistical theory}          \begin{eqlist}[\labelsep2em]     \item[$D\{\cdot\}$] mathematical dispersion operator      \item[$E\{\cdot\}$] mathematical expectation operator      \end{eqlist}          \section*{Estimation theory}          \begin{eqlist}[\labelsep2em]     \item[$\underline{y}$] random vector of $m$ observations.     \item[$Q_y$] an $m \times m$ a priori variance-covariance matrix of the observations.     \end{eqlist}      In each section the point at which the description starts is aligned to the longest label in the list in that local section. Consequently, it is not consistent throughout my chapter. Is there a way of simply specifying the minimum label width in each case? Each time I try various options, such as specifying `\labelwidth4em` in the options part in square brackets, it appears to be overridden. Any help appreciated!


title: Make a PDF bookmark point towards title

text: I've been using the bookmark package to add custom PDF bookmarks to my thesis. More specifically, I started using this package because I didn't want the the ToC, LoF and LoT to appear in the ToC, but still appear in the bookmarks bar. The problem I've been encountering is that the `hypertarget` does not point towards the top of the first page of the targeted section, but rather somewhere above it. The result is that as the ToC, LoF, and LoT get longer the hypertarget is more and more "off target". Here's a MWE of the code I've been using:               \documentclass[12pt,a4paper]{book}          \usepackage[numbered]{bookmark}          \usepackage{hyperref}          \usepackage[nottoc, notlof, notlot,chapter]{tocbibind}           \begin{document}          \frontmatter          \hypertarget{tocpage}{}     \tableofcontents     \bookmark[dest=tocpage]{Table of Contents}          \hypertarget{lofpage}{}     \listoffigures     \bookmark[dest=lofpage]{List of Figures}          \hypertarget{lotpage}{}     \listoftables     \bookmark[dest=lotpage]{List of Tables}          \mainmatter          \chapter{Chapter 1}          \section{Section 1.1}          \subsection{Subsection 1.1.1}     \begin{figure}[h]     \LARGE A     \caption{A figure}     \end{figure}     \subsection{Subsection 1.1.2}          \section{Section 1.2}          \subsection{Subsection 1.2.1}          \subsection{Subsection 1.2.2}          \chapter{Chapter 2}          \section{Section 2.1}     \begin{table}[h]     \caption{A table}     \end{table}     \subsection{Subsection 2.1.1}          \subsection{Subsection 2.1.2}          \section{Section 2.2}          \subsection{Subsection 2.2.1}          \subsection{Subsection 2.2.2}          \endmatter          \end{document}      **UPDATE** The solution I have in mind would behave similarly to what I assume is default hyperref behavior for sections and subsections: the hypertarget points to the title, regardlessly of where in the text that title is placed. I tried adding something along the following lines in the preamble, using the etoolbox package and the `\apptocmd` command.               \usepackage{etoolbox}     \makeatletter     \AtBeginDocument{%     \apptocmd{\contentsname}{\hypertarget{tocpage}{}}{}{}     }     \makeatother      Of course, I commented out the existing `\hypertarget{tocpage}` in the MWE. When I run the MWE with this code, I get the following error:               [1]./Thesis.toc !Missing control sequence inserted <inserted text> \inaccessible.      Any ideas on what I did wrong in the command definition?


title: Chicago-style citations of CJK documents (e.g. American Oriental Society): Name order; transcribed/translated titles

text: Is there a way to produce Chicago-style citations of material written in Chinese, Japanese, for an English-language paper using biblatex-chicago? I want to produce a citation that looks like: > Li Wuwei 李无未, _Riben Hanyu yinyun xue shi_ 日本汉语音韵学史 (History of the study of > Chinese phonology in Japan) (Beijing: Shangwu yinshuguan, 2011) Right now, I'm able to produce a reference that looks like this using biblatex-chicago: > Li Wuwei [李无未], _Riben Hanyu yinyun xue shi,_ 日本汉语音韵学史 [History of the study > of Chinese phonology in Japan] (Beijing: Shangwu yinshuguan, 2011) My .bib entry looks like:               @book{Liwuwei2011,     Author = {{Li Wuwei}}, %Author as institution not individual     nameaddon = {李无未},     Publisher = {Shangwu yinshuguan},     address = {Beijing},     Title = {Riben Hanyu yinyun xue shi},     titleaddon = {日本汉语音韵学史},     usere = {History of the study of Chinese phonology in Japan},     Year = {2011}}      The problem is not the square brackets around the Chinese name and title, but (1) the fact that the name now is not parsed as a name (if it were, it would be listed in the footnote as "Wuwei Li," and in the final bibliography as "Li, Wuwei," which is incorrect), but treated as one word. This means I cannot make the style cite the reference simply as > Li, _Riben_ but only > Li Wuwei, _Riben_ in subsequent citations. Dominic Yu (http://blyt.net/blog/2009/11/bibtex-and- chinese-names.html) kindly showed me how to solve this with bibtex. I wonder if there is a solution for biblatex-chicago? The second problem is: (2) The comma > _Riben Hanyu yinyun xue shi,_ 日本汉语音韵学史 between the transcribed title and the original title. Is there a way I can get rid of that in the reference? Any help would be greatly appreciated!


title: How to add barely visible tracking dots to a b/w document?

text: I would like to add barely visible tracking dots in the style of these micro tracking dots to my b/w document. The tracking dots mentioned in the above look like this: ![tracking dots as per \(c\) EFF, OP link see above](http://i.stack.imgur.com/GLBot.png) The tracking dots are aligned in a 15x8 matrix and, in the above case, include printer information, infos about the time the document was printed etc. I specifically do not want to copy the mechanism of encoding timestamps, but rather uniquely be able to identify printed pages (and, as you might have guessed, copies thereof). I assure you to use this wisely, rarely and make ample notice of using the mechanism on my document. If anyone has a more pratical, but still rather invisible, way of adding this type of tracking to a document I'd be quite happy to hear from you. Sadly, just adding a watermark in the background (also thanks to the good people of stackexchange ;) has not solved the issue of tracking single documents for me.


title: Inserting floating text near decision tree arrows

text: How do I insert Yes and No beside the solid arrows? I tried putting `node [near end, right] {Yes}` after each node and child declaration but this just messes up the flow of the decision tree. ## Code                   \noindent         \begin{figure}[htbp]           \centering            \sffamily                \tikzstyle{level 1}=[level distance=1.5cm, sibling distance=4.25cm]           \tikzstyle{level 2}=[level distance=1.5cm, sibling distance=2.25cm]           \tikzstyle{level 3}=[level distance=1.5cm, sibling distance=4.25cm]           \tikzstyle{level 4}=[level distance=1.5cm, sibling distance=2.25cm]                \tikzset{decision/.style={             draw=gray-5-border, solid, fill=gray-e-bg, rectangle,              anchor=north,             inner sep=2mm, outer sep=0, text centered, growth parent anchor=south}            }           \tikzset{prediction/.style={             draw=gray-4-border, solid, fill=gray-d-bg, ellipse,              anchor=north,             inner sep=2mm, outer sep=0, text centered, growth parent anchor=south}            }           \tikzset{arrow/.style={-latex, thick}}           \tikzset{arrow-dashed/.style={-latex, dashed, thick}}                \begin{tikzpicture}             \node [prediction] {+0.5} [dashed, -latex, thick, ->]               child {                  node [decision] {$a < 4.5$} [->]                   child {                     node [prediction] {-0.7} [solid, -latex, thick, ->]                        child {                         node [decision] {$b > 1$} [dashed, -latex, thick, ->]                           child {                             node [prediction] {+0.4} [solid, -latex, thick, ->]                           }                           child {                             node [prediction] {-0.2} [solid, -latex, thick, ->]                           }                       }                       child {                         node [decision] {$a > 2$} [dashed, -latex, thick, ->]                           child {                             node [prediction] {-0.1} [solid, -latex, thick, ->]                           }                           child {                             node [prediction] {+0.1} [solid, -latex, thick, ->]                           }                       }                   }                   child {                     node [prediction] {+0.2} [solid, -latex, thick, ->]                   }               }               child {                 node [decision] {$b > 0$}                   child {                     node [prediction] {+0.3} [solid, -latex, thick, ->]                   }                   child {                     node [prediction] {-0.6} [solid, -latex, thick, ->]                   }               }             ;           \end{tikzpicture}                \caption{A diagram of Freund and Mason's general alternating decision tree}           \label{fig:diagram-adt}         \end{figure}      ## Output ![enter image description here](http://i.stack.imgur.com/3ks8i.png)


title: The command \string does not print curly braces of its argument

text: While printing the List of Symbols, I would like, in a draft, to print the definition commands as well. For instance, consider the following commands:               \providecommand{\perm}{\ensuremath{\pi}}     \providecommand{\permel}[1]{\ensuremath{\perm(#1)}}      and the following command for printing symbols within a table:               \providecommand{\symbdef}[2]{\texttt{\color{blue}\string #1} & #1 & #2}      Now, the code:               \section{List of Symbols}     \begin{tabular}{lll}     \symbdef{\perm}{a permutaion} \\     \symbdef{\permel{i}}{the value of \perm for the argument $i$} \\     \end{tabular}      proudeces output: `\perm` and `\permeli` in the first column. However I would like to print `\permel{i}` instead of `\permlei` here and do not know how. Please help...


title: TikZ: Curve through specified points

text: \documentclass{standalone}     \usepackage{comment}          \usepackage{tikz,pgf}          \usetikzlibrary{fit,scopes,calc,matrix,positioning,decorations.pathmorphing}          \begin{document}          \begin{tikzpicture}         \begin{scope}                 \matrix (A5) [matrix of nodes, ampersand replacement = \&] {                     {7}  \& {2} \& {7} \& {7} \& {2} \& {8}\\                 };         \end{scope}         \begin{scope}             \matrix (B5) at ([yshift=-2.5cm]A5-1-1.south) [anchor=B5-1-1.north, matrix of nodes, ampersand replacement = \&] {                 {12} \& {7} \& {2} \& {7} \& {2} \& {8}\\             };         \end{scope}         \path[draw] (A5-1-3.north west) -- (A5-1-4.north east) -- (B5-1-4.south east) -- (B5-1-4.south west) -- (A5-1-3.north west);     \end{tikzpicture}     \end{document}      Here `\path[draw]` groups 7s of the two matrices together. Is there any way to group them with a more "curvy" curve? i.e. by some curve that doesn't look so regular. ![result](http://i.stack.imgur.com/gpeH3.png)


title: Set indent and width to beamer block for nice itemize

text: I want to have blocks within itemize environments. The code:               \documentclass[8pt]{beamer}     \usetheme{Madrid}     \begin{document}     \begin{frame}{Bad Frame}     \begin{itemize}     \item Some item here     \begin{block}{Bad Block}     Bad text     \end{block}     \item Some item here     \end{itemize}     \end{frame}         \end{document}      Produces something that looks like this: ![enter image description here](http://i.stack.imgur.com/YXbB2.png) But I really want the block to be aligned to the item texts, and not go further left. Started using columns for each and every block I have:               \begin{columns}     \begin{column}{0.075\textwidth}     \end{column}     \begin{column}{0.925\textwidth}     \begin{block}{\bf Output}        Good block text     \end{block}     \end{column}     \end{columns}      But this looks ugly and the document becomes unreadable. Can I make a simple command or environment that I can use like this:               \begin{itemize}     \item Some item here     \begin{gblock}{Good Block}     Good text     \end{gblock}     \item Some item here     \end{itemize}


title: New command not working as expected

text: When using `\fbox` on its own, it creates a border around the text. However, I want to create a new command so I can create a boxed code example. Written 'inline', it works as expected:               \fbox{\scriptsize{\texttt{example}}}      However, when I put it into a new command:               \newcommand{codelist}[1]{\fbox{\scriptsize{\texttt{#1}}}      It doesn't apply the border, nor does it apply the font and sizing. I am completely new to LaTeX, so any help will be much appreciated in identifying what the problem is.


title: Is Texinfo used much except for the GNU manuals?

text: It looks kind of nice, but I'm not certain I should invest the time or just put LyX and org-mode away and finally learn LaTeX properly.


title: Is there really something wrong with using the caption package for \ContinuedFloat?

text: In my question How to create an unnumbered algorithm with a caption?, a nice solution was suggested using `\ContinuedFloat`, from the `caption` package. However, when I use it, I get:               Package caption Warning: Unsupported document class (or package) detected,     (caption)                usage of the caption package is not recommended.     See the caption package documentation for explanation.      The package documentation says: > Please note: Many document classes already have built-in options and > commands for customizing captions. If these possibilities are sufficient for > you, there is usually no need for you to use the caption package at all. And > if you are just interested in using the command `\captionof`, loading of the > very small 'capt-of' package is usually sufficient. but that's not what I'm after. I'm using a document class I've created as a (thin) wrapper based on `report`; I don't provide any built-ins I can use instead of `\ContinuedFloat`, and neither does `report`, as far as I can tell.   * Is the use of `caption` really not recommended with the `report` class?    * If so, why and what should I do about it?    * If not, how can I 'tell' the package that mine is an 'ok class' to load with?


title: How does \headline work?

text: I understand that TeX uses `\headline` to place headers. If `\headline` did not exist, how would one implement a simple version of the same? Additionally, where might one find simple documentation of how `\headline` is implemented beyond _The TeXbook_? Of _one_ particular interest is the use of the commands used to position the header text (or the box in which the header is set).