title: Wavy arrows in xy-pic

text: What method should I use, to draw beautiful wavy arrows. So far I tried the following. I use `xy-pic` package, there I use `@{~>}` definition for the arrow. The code I've composed is like this:               \begin{figure}     \centering     \mbox{     \xygraph{     !{<0cm,0cm>;<1cm,0cm>:<0cm,1cm>::}     !{(0,0) }*+{\bullet_{x}}="x"     !{(2,0) }*+{\bullet_{v''}}="v"     !{(4,0) }*+{\bullet_{y}}="y"     !{(2,1) }*+{\bullet_{u}}="u"     !{(2,-2) }*+{\bullet_{z}}="z"     "x":@{~>}"v"     "v":@{~>}"y"     "y":@/_/@{~>}"u"     "u":"v"     "v":@{~>}"z"     }}     \end{figure}      And the result is like this: ![A graph with wavy arrows](http://i.stack.imgur.com/aqPVz.png) The problems that I see in this drawing are:   * In the arrows from x to v'' and from v'' to y the composition of last "~" and the ending ">" is not good.   * The arrow from v'' to z is cutted after each "~"    * The arrow from y to u looks awful. I search for a tip how to improve the quality of the figure. Thanks.


title: Special character in url link

text: I would like to insert the following text:               \href{http://en.wikipedia.org/wiki/List_of_successful_coups_d'état}{http://en.wikipedia.org/wiki/List\_of\_successful\_coups\_d'état}      However, that doesn't work because of the special character é in the first entry. Is there any way to get it working? I am not using `\url` because I don't want it to be formatted. But if someone knows how to prevent `\url` from changing the font, that would solve the problem, too. Thanks.


I have a homework. The problems chosen by the lecturer are often not in arithmetic sequence so I have to change the problem counter (and its solution counter) manually.               \documentclass[preview,varwidth,border=12pt]{standalone}     \usepackage{exsheets}     \SetupExSheets     {         solution/print=true, % default false     }     \begin{document}     \begin{question}     How to change  the counter of problems or questions and solutions to start from any number?     \end{question}     \begin{solution}     I don't know the counter name!     \end{solution}     \end{document}      ![enter image description here](http://i.stack.imgur.com/cVb7S.png)


title: Special daily calendar for whole year needed

text: I need to print out a special daily calendar sheet for every day of 2014. The solution here: Page a day calendar problems no longer is available, the link to mattjy.me is dead. The whole daily sheet I need is displayed in the picture below, the two tables are easy to make. But I do not know how to write the code which leads to a PDF with 365 (or even 366) pages, each page with the name of the day and the date, followed by two tables. ![Daily calender sheet](http://i.stack.imgur.com/nndNs.png) »Mittwoch« is wednesday in German, »Januar« is January, of course. Don't bother to include exactly the tabulars, just take any tabular environment.


title: What is the difference in citing/referencing with or without tilde?

text: I've seen examples referencing a table as follows: `Table~\ref{table:overview} shows an overview of all the elements.` What is the use of the tilde in front of `\ref` or `\cite` and when do you have to apply it?


title: biblatex, authoryear style: In-text citations display first name initials for certain bibliography entries

text: I'm using `biblatex` with the `authoryear` style and two of my bibliography entries include the initials of the first author when cited in-text (`R. Chen and Holmes, 2006` and `B.J. Chen et al., 2008` shown below). Only these two entries are affected: ![In text citation displays initials](http://i.stack.imgur.com/79wNX.png) I thought that there may be a problem with my bibfile, but this issue still occurs when the bibliography entries are included directly in a LaTeX document, as shown in the MWE below:               \documentclass[12pt,a4paper,oneside]{report}          \usepackage{filecontents}     \usepackage[     hyperref=true,     firstinits=true, % render first and middle names as initials     maxcitenames=3,     maxbibnames=99,     style=authoryear,     dashed=false, % re-print recurring author names in bibliography     natbib=true,     useprefix=true, % for inclusion of 'de' 'da' in surname     urldate=long,     backend=biber     ]{biblatex}                    % No unit separator after publication year:     \usepackage{xpatch}\xapptobibmacro{date+extrayear}{\nopunct}{}{}          % No month for publication year:     \AtEveryBibitem{\clearfield{month}}          % Use single quotes around titles:     \usepackage[british]{babel}     \usepackage{csquotes}          \DeclareNameAlias{author}{last-first}     %\renewcommand*{\mkbibnamefirst}[1]{{\let~\,#1}} % insert thin spaces between author initials     %\renewcommand*{\bibnamedelimd}{\addlpthinspace} % insert thin spaces between author initials     \renewcommand*{\bibinitdelim}{} % no spaces between author initials (requires biber)     \renewcommand*{\nameyeardelim}{\addcomma\addspace} % insert a comma between author and year in-text citations     \renewcommand*{\newunitpunct}{\addcomma\addspace} % comma as separator in bibliography, not full stop     \renewbibmacro{in:}{} % remove 'in:' preceding article title          % Place volume number within parentheses:     \renewbibmacro*{volume+number+eid}{%         \printfield{volume}%         \setunit*{\addnbspace}% NEW (optional); there's also \addnbthinspace         \printfield{number}%         \setunit{\addcomma\space}%         \printfield{eid}}     \DeclareFieldFormat[article]{number}{\mkbibparens{#1}}          % Spacing in bibliography:     \setlength{\bibitemsep}{12pt}     \setlength{\bibhang}{16pt}% the hanging indent          \DeclareFieldFormat{year}{\mkbibparens{#1}}     \DeclareFieldFormat{type}{\mkbibbrackets{#1}}     \DeclareFieldFormat{url}{Available at: \url{#1}}               \begin{filecontents}{\jobname.bib}          @Article{Example_Article_1,       Title                    = {Title 1},       Author                   = {Smith, A. B. and Jones, D. C.},       Year                     = {2012},       Month                    = {Oct},       Number                   = {1},       Pages                    = {42},       Volume                   = {10},       Journal                  = {Example Journal},     }          @Article{Example_Article_2,       Title                    = {Title 2},       Author                   = {Smith, A. B. and Jones, D. C.},       Year                     = {2012},       Month                    = {Oct},       Number                   = {1},       Pages                    = {42},       Volume                   = {10},       Journal                  = {Example Journal},     }          @Article{Chen_2006,       Title                    = {Avian influenza virus exhibits rapid evolutionary dynamics},       Author                   = {Chen, R. and Holmes, E. C.},       Year                     = {2006},       Addendum                 = {[Online]. Available at: \url{example.com} (Accessed: 01 January 2013)},       Month                    = {Dec},       Number                   = {12},       Pages                    = {2336--2341},       Volume                   = {23},       Journal                  = {Mol. Biol. Evol.},     }          @Article{Chen_2008,       Title                    = {The influenza virus M2 protein cytoplasmic tail interacts with the M1 protein and influences virus assembly at the site of virus budding},       Author                   = {Chen, B. J. and Leser, G. P. and Jackson, D. and Lamb, R. A.},       Year                     = {2008},       Addendum                 = {[Online]. Available at: \url{example.com} (Accessed: 01 January 2013)},       Month                    = {Oct},       Number                   = {20},       Pages                    = {10059--10070},       Volume                   = {82},       Journal                  = {J. Virol.},     }          \end{filecontents}               \addbibresource{\jobname.bib}               \begin{document}          \parencite{Example_Article_1}     \parencite{Example_Article_2}     \parencite{Chen_2006}     \parencite{Chen_2008}          \printbibliography[title=References]          \end{document}      Does anyone have any ideas? My setup consists of TeX Live 2012 and `biblatex` 1.7-1 on Debian Wheezy.


title: Sphinx error in converting latex to pdf

text: I'm trying to convert latex to pdf of CherryPy docs for offline usage. After I generated the latex I changed into build/latex directory and run "make all- pdf" and error happened. Sorry I don't know to fix this. I attached the error log here http://errorpaste.appspot.com/logs/1001/sphinx-convert-latex-to-pdf- error


title: Are there any document viewers that use Tex as a backend?

text: I know that many people use editing programs like MikTeX and TexWorks for TeX documents; these programs (and others like them) provide a pseudo-WYSIWIG (what you see is what you get) interface to TeX. I have not seen, however, any programs that are designed specifically for veiwing documents based on the TeX way. Obviously, TeX is designed to produce output in a format of choice, but are there any document viewing programs that take TeX formated documents as input and display formated text? I can see at least a few advantages to such a system:   * Dynamic zooming with appropriate      * default for viewing environment (e.g. fit to screen width)     * font adjustment     * line wrapping     * image resizing   * Hyperreferencing independant of PDF viewer capabilities   * Reduced memory requirement for document storage (important if implemented on mobile device) * * * Background: This question was prompted by questions about viewing TeX generated documents on a Kindle. My mother just got a Kindle and was asking me how I navigate through documents on it. Though I primarily use PDFs, hyperreferencing doesn't work on Kindle. It occured to me that a viewer that implemented TeX on a Kindle would be an interesting application.


title: mathop shifts the baseline, DeclareMathOperator doesn't

text: Here is a little example that illustrates this strange behaviour:               \documentclass{article}     \usepackage{amsmath}     \DeclareMathOperator\foo{\mathbf{l}}     \begin{document}     baseline$\mathbf{l}$baseline$\mathop{\mathbf{l}}$baseline$\mathop{l}$baseline$\foo$baseline     \end{document}      ![baselines](http://i.stack.imgur.com/exydF.png) Note that the explict call to `\mathop` shifts the baseline of the `l`. But if you use `\DeclareMathOperator` this doesn't happen. Is this a bug or a feature? I personally think that the shifted baseline looks really weird if you're discussing an operator in text, so I'd like to shift it up again. Do I have an alternative to endless use of `\DeclareMathOperator`?


title: How can I add some annotations to a screenshot so that the font can fit the (La)TeX document?

text: I want to add a screenshot with some text annotations in it, so that I can incorporate it into a (La)TeX document where the font used in the annotations match the document font. What's the recommended software to create this kind of picture? **EDIT** This is a small example. I hope the annotations' ("Sidebar", "Title", and "Infobox") font can fit the document's. And (if possible) the annotations can come with the picture. ![enter image description here](http://i.stack.imgur.com/aEJA2.png)


title: Making the math-insert command in LyX exit the created element

text: When using the `math-insert` LyX function to create an element that can contains other elements, the caret ends up inside that cell, and if some text is selected when the function is called, that text will also get inside that cell. Now, this is usually a blessed behavior, but there are some occasions when I want it to behave like a `math-insert` command that inserts an element that can't contain other elements - that is, I want the inserted TeX code to replace - not contain - whatever is selected, and the caret to end up after the the element, not inside it. For example, when I want to bind some keys to `math-insert \mathbb{R}` - a command that adds the symbol of the real numbers field. When I run this command, I don't want my caret to get inside the `mathbb` element, and I don't want anything selected to get inside either - I just want to add the real numbers field symbol, the same way I add a Greek letter. So, is there any other function that can help me, or an argument I can send to `math-insert`, or anything else to solve that problem?


I am new to TEX world . I am now working on thesis in TEX . I have the following code to show a table .                                             \begin{center}                                   \begin{tabular}{ | l | c |  r | l | c | r|  l | c |  }                                     \hline                                         \textbf{Basic} & \textbf{x_1} & \textbf{x_2} & \textbf{x_3} & \textbf{s_1}  & \textbf{s_2}  & \textbf{s_3} &    \textbf{b} \\ \hline                                         s1 &    2 & 1 & 0 & 1 & 0 & 0 & 10 \\ \hline                                         s2 & 1 & 2  & -2 &  0 & 1 & 0 & 20 \\ \hline                                         s3 & 0 & 1 & 2 & 0 & 0 & 1 & 5 \\ \hline                                         Z & -2 & 1 & -2 & 0 & 0 & 0 & 0 \\ \hline                                     \hline                                   \end{tabular}                                 \end{center}      But TexMaker IDE shows the following error .               ! Missing $ inserted.<inserted text>$ \textbf{Basic} & \textbf{x_1}      A snapshot of my error is provided below : ![enter image description here](http://i.stack.imgur.com/tI2Ud.png) Here is my code : ![enter image description here](http://i.stack.imgur.com/39djF.png) Where is the error ?


title: Do XeTeX and LuaTeX always use Unicode?

text: I am writing some functions to manipulate strings. A typical way to produce a character with a given character code is the `\lowercase` primitive. The following code produces a character with code 234, and displays it to the terminal.               \lccode`*=234     \lowercase{\message{*}}      If I replace `234` by `345` above, then pdfTeX raises an error: `Invalid code (345), should be in the range 0..255.` On the other hand, LuaTeX and XeTeX are happy up to `1114111`, as expected from a Unicode-compliant engine. Now, I want my macros to be as robust as possible. Is it _always_ true that the maximum lccode is 255 in pdfTeX and 1114111 in LuaTeX and XeTeX? Or can a user prevent in any way the engine from using the full range, hence confusing my macros?


title: How to solve the error: everyshi.sty is missing

text: I'm trying to get a Beamer-Presentation in Latex. My Windows is 7 PC. I'm using MiKTeX 2.9. At first, when I open the .tex file in the editor I don't get a preview at all. It is appeared this window: Package installation the required file tex\latex\ms\everyshi.sty is missing I downloaded "ms file" from http://ctan.org/tex- archive/macros/latex/contrib/ms .But, it doesn't work.


title: \Theta with square

text: I'm using `\Theta` for some concept in my work, then I need a variation of such concept. I was thinking to use `\Theta` symbol with a square instead of a circle. How can I obtain such symbol? Thanks


title: Tikz, rectangle split, first part aligned abnormally

text: Some little code two draw a rectangle with 4 parts, from library `shapes.multiparts`.               \tikzset{         font=\sffamily,         BLOCK/.style={             draw,             align=center,             text height=0.4cm,             draw=red!50,             fill=red!20,             rectangle split,              rectangle split horizontal,             rectangle split parts=#1,          }     }     \begin{tikzpicture}         \node (h1) {host\_entry};         \node[BLOCK=4, below=0 of h1]{             \nodepart{one}dpid \nodepart{two}port             \nodepart{three}IP\nodepart{four}MAC};     \end{tikzpicture}      Every thing is OK except for the **first column** of the rectangle, the text just aligns weirdly. ![weird first column](http://i.stack.imgur.com/UzDjm.png) Has anyone else encountered the same issue? And how to solve it? Thanks!


title: Align subfloats to the top of the figure

text: I want to put a listing next to a schematic in one figure. The template of the journal, I am writing my article for, suggests using subfloats. Here is my latex sourcecode,               \lstset{         numbers=left,            firstnumber=1,         numberfirstline=true         numbers=left,% display line numbers on the left side          numberstyle=\scriptsize,% use small line numbers          numbersep=10pt,% space between line numbers and code          breaklines=true,% automatic line breaking              columns=flexible,         frame=tb,         mathescape=true,         xleftmargin=2em,         framexleftmargin=2em,         morekeywords={input, output, clb, pinlist, subblock, tcon, parameter}     }     \newsavebox{\tconlist}     \begin{lrbox}{\tconlist}% Store first listing     \small     \begin{lstlisting}     .parameter $sel_0$     .parameter $sel_1$          .input i0     pinlist: i0p     .input i1     pinlist: i1p     .input o0     pinlist: o0p          .output o1     pinlist: o1p          .tcon i0p o0p $\neg sel_0$     .tcon i0p o1p $\neg sel_1$     .tcon i1p o0p $sel_0$     .tcon i1p o1p $sel_1$     \end{lstlisting}     \end{minipage}     \end{lrbox}          \begin{figure}     \subfloat{\usebox{\tconlist}}     \hfill     \subfloat{\includegraphics[width=0.25\textwidth, trim = 60mm 80mm 145mm 35mm, clip]{2x2crossbar_schema}}      \caption{A schematic of a $2{\times}2$~crossbar switch functionality represented by 4 TCONs and the corresponding TCON netlist}     \label{fig:2x2crossbar}     \end{figure}      This results in the following image, ![enter image description here](http://i.stack.imgur.com/bZEr5.png) How can I align the two floats to the top of the page?


title: Sub-images schema with two rows

text: I would like to show inside my doc sub-images with the following schema: ![schema](http://i.stack.imgur.com/pagcZ.png) How can I do that? Regards, vi.


title: Auto-flowing Blocks in Beamer/BeamerPoster environment?

text: What I have: Multi-column beamerposter with blocks in each column               \begin{columns}         \begin{column}             \begin{block}{A Block}                 ...             \end{block}             \begin{block}{A Block}                 ...             \end{block}         \end{column}         \begin{column}             \begin{block}{A Block}                 ...             \end{block}             \begin{block}{A Block}                 ...             \end{block}         \end{column}     \end{columns}      What I would _like_ to do:               \begin{columns}{2}         \begin{block}{A Block}             ...         \end{block}         \begin{block}{A Block}             ...         \end{block}         \begin{block}{A Block}             ...         \end{block}         \begin{block}{A Block}             ...         \end{block}     \end{columns}      Basically what I'm trying to head towards is a `beamerposter` template that will let me easily switch between portrait and landscape views for instance by setting the columns to 2 (as above) in the portrait version and to 3 in the landscape, with blocks being arranged in order top to bottom as they fit. Any ideas?


title: Controlling the space in section numbers

text: I want to control the space around the dots of the section numbers (and subsection and so on). I think the space sometimes is too small like the one with `IV .` sometimes to wide, eg when it involves a `1`. I already use microtype with pdflatex, is it possible to space the number and dots better ? Ideally the space between dot and 2 like in `. 2` is good and could be copied as the default length for everybody in arabic number. `II . 2` seems also good for the roman numbers. What do you think ? ![A](http://i.stack.imgur.com/Vqs7h.png) ![B](http://i.stack.imgur.com/x87IS.png) ![C](http://i.stack.imgur.com/ncSy6.png) ![D](http://i.stack.imgur.com/Khk8v.png)


title: Reset package options

text: \LaTeX seems to remember earlier stated options. How can I reset this?                   ! LaTeX Error: Option clash for package glossaries.         See the LaTeX manual or LaTeX Companion for explanation.         Type H <return> for immediate help.         ...         l.14         The package glossaries has already been loaded with options                 [nonumberlist,toc,acronym,xindy]         There has now been an attempt to load it with options         [ nonumberlist, acronym, toc, section]         Adding the global options:         nonumberlist,toc,acronym,xindy, nonumberlist, acronym, toc, section         to your \documentclass declaration may fix this.         Try typing <return> to proceed.


title: Decorate with text along the perimeter of a circle using TikZ

text: Using the following code I am trying to visualize nested circles:               \documentclass{standalone}     \usepackage{tikz}     \usetikzlibrary{calc,fpu}     \usetikzlibrary{decorations.text}          \begin{document}     \def\sizeA{1.248800}     \def\sizeB{.801900}     \def\sizeC{.450300}     \def\sizeD{.255400}     \def\baseRad{5}               \begin{tikzpicture}[rotate=90,%       textDiscLabel/.style={%         postaction={%           decorate,decoration={%             text along path,%             reverse path=true,%             raise=-2ex,%             text={#1}}         }       }       ]            \pgfmathsetmacro{\dRatio}{(\sizeD)/(\sizeA)}       \pgfmathsetmacro{\cRatio}{(\sizeC)/(\sizeA)}       \pgfmathsetmacro{\bRatio}{(\sizeB)/(\sizeA)}            \draw[fill=black!30] (0,0) circle (\baseRad);       \path [textDiscLabel={Size A - 1,248,800}] (0,0) circle (\baseRad);            \pgfmathparse{\baseRad*(\bRatio-1)}       \draw[fill=red!40] (\pgfmathresult,0) circle (\bRatio*\baseRad);       \path [textDiscLabel={Size B - 801,900}] (\pgfmathresult,0) circle (\bRatio*\baseRad);            \pgfmathparse{\baseRad*(\cRatio-1)}       \draw[fill=green!50] (\pgfmathresult,0) circle (\cRatio*\baseRad);       \path [textDiscLabel={Size C - 450,300}] (\pgfmathresult,0) circle (\cRatio*\baseRad);            \pgfmathparse{\baseRad*(\dRatio-1)}       \draw[fill=blue!40] (\pgfmathresult,0) circle (\dRatio*\baseRad);       \path [textDiscLabel={Size D - 255,400}] (\pgfmathresult,0) circle (\dRatio*\baseRad);     \end{tikzpicture}          \end{document}      This yields the following picture: ![enter image description here](http://i.stack.imgur.com/psj5l.png) I fail to adjust the positioning of the text along the perimeter of the discs. In particular, I want it to be centered with respect to the vertical line passing through the centers of the circles. How can I do it? I am looking for a programmed solution because the values that I use may (and will) vary (and thus the radii of the discs). Bonus question: as you see, the values that I have are between 10^6 to 10^5. `PGF` fails to do the computations for the ratios (`sizeA` is too big). How can I overcome this and automate the computation and the labeling?


title: Vertical alignment of p multirow in tabu

text: I'm using `tabu` to create my tables. In one of the tables, I would like to have a `multirow` row and vertically align its content to top.               -------------- ---------------------------------     This is p col  First row                    ---------------------------------                    Second row                    ---------------------------------                    Third row     -------------- ---------------------------------     This is p col  First row                    ---------------------------------                    Second row     -------------- ---------------------------------      This is the basic latex code               \begin{table}     \tabulinesep =_3pt^3pt     \begin{tabu} to \textwidth{p{4cm} X}     \toprule     \multirow{2}{4cm}{This is p col} & First row \\     & Second row \\     \bottomrule     \end{tabu}     \end{table}      I found several solutions to vertically align a `X` column, but not a `p` column.


title: Comprehensive List of LaTeX Packages

text: I am fairly new to LaTeX and am really struggling with finding the right packages for my document. Is there a resource for 1) looking up the package (e.g. `\graphicx`) and finding out what it does and 2) looking up the resource (e.g. tikz pictures) and finding the necessary packages?   Also, is there a resource that explains the limits of each package (e.g. why the `\graphicx` package is insufficient for tikz pictures)?


title: ConTeXt: Embed forward referenced figure

text: # Background Looking to recreate the following fancy table of contents where a limited number of images in the ToC are selected at random from all the figures included in the document, without repeating: ![Random Images](http://i.stack.imgur.com/qdqsp.jpg) This is merely one theme of many that users can generate; other themes do not include thumbnails in the ToC (i.e., the images only appear once). Another theme might reference the images in the index or credits section in the backmatter. Yet another theme might reference the images on the chapter page (providing a random selection of images found later in that chapter). Note: the above is a quick example; I'm aware that the four images are repeated... # Example               \setupexternalfigures[       order={svg,pdf,png,jpg},       location=global,       wfactor=fit,     ]           \setupcaptions[location=,]          \define[1]\Photograph{%       \placefigure[]{}{%         \externalfigure[#1][           %width=\dimexpr.25\paperwidth         ]       }     }          \starttext       % Thumbnail versions of referenced images are placed above the ToC.       Table of Contents       \placecontent            \startchapter        Final board position:       \Photograph{http://warp.povusers.org/pics/GobanPic.jpg}       \stopchapter       \startchapter       Opening problem #1:       \Photograph{http://fc00.deviantart.net/fs14/i/2007/091/c/8/Goban_Wall_by_zipper.jpg}       \stopchapter       \startchapter       Opening problem #2:       \Photograph{http://upload.wikimedia.org/wikipedia/commons/3/38/Goban2.png}       \stopchapter       \startchapter       Close up:       \Photograph{http://www.bengozen.com/wp-content/uploads/2014/01/leathergoban05.jpg}       \stopchapter     \stoptext      # Ideas The algorithm likely requires Lua:   1. Create an array of all `externalfigure` usages in the document.   2. Randomly remove a figure from the document.   3. Update the document to embed the image (scaled and cropped). Another idea is to create the list of images at the start of every document, before the text. Something like:               \def\photo1{http://warp.povusers.org/pics/GobanPic.jpg}     \def\photo2{http://fc00.deviantart.net/fs14/i/2007/091/c/8/Goban_Wall_by_zipper.jpg}     \def\photo3{http://upload.wikimedia.org/wikipedia/commons/3/38/Goban2.png}     \def\photo4{http://www.bengozen.com/wp-content/uploads/2014/01/leathergoban05.jpg}          \definenumber[photos][way=bytext,prefix=no]     \getnumber[photos]          % Embeds the images in order     \define\Photograph{%       \placefigure[]{}{%         \incrementnumber[photos]         \externalfigure[\photo\getnumber[photos]][         ]       }     }               \starttext       % Thumbnail versions of referenced images are placed above the ToC.       Table of Contents       \placecontent            \startchapter \Photograph \stopchapter       \startchapter \Photograph \stopchapter       \startchapter \Photograph \stopchapter       \startchapter \Photograph \stopchapter     \stoptext      # Question How would you embed a thumbnail version of an image in a document prior to its first reference?


title: convert (xe)latex with non-english character to html

text:
I have an exact problem as this post. I have checked the answers there, and found a probable reply here. Sad that I am in `linux`, and cannot use `bat` file. Pasted is my `latex` file, which compiles well with `xelatex`:               \documentclass[dvipdfmx]{article}     \usepackage{fontspec}     \usepackage[pass,paperwidth=4in,paperheight=4in]{geometry}     %     %\font\serif="FreeSerif:script=beng"     \font\serifbb="SolaimanLipi:script=beng" at 16pt%     \font\deffont="Lohit-Bengali:script=beng" at 14pt%     %     \author{\serifbb {শক্তি চট্টোপাধ্যায়}}%     \title{\serifbb {যখন বৃষ্টি নামলো}}%     \date{}          \begin{document}     \deffont %Default font used for the document     \maketitle     \noindent     \begin{center}বুকের মধ্যে বৃষ্টি নামে নৌকা টলোমলো\\     কূল ছেড়ে আজ অকূলে যাই এমনও সম্বল\\     নেই নিকটে - হয়ত ছিল বৃষ্টি আসার আগে\\     চলচ্ছক্তিহীন হয়েছি, তাই কি মনে জাগে\\     পোড়োবাড়ির স্মৃতি? আমার স্বপ্নে মেশা দিন\\     চলচ্ছক্তিহীন হয়েছি, চলচ্ছক্তিহীন।     \vspace{.5in}\\     বৃষ্টি নামলো যখন আমি উঠোন-পানে একা,\\     দৌড়ে গিয়ে ভেবেছিলাম তোমার পাব দেখা।\\     হয়ত মেঘে-বৃষ্টিতে বা শিউলিগাছের তলে\\     আজানুকেশ ভিজিয়ে নিচ্ছো আকাশ-ছেঁচা জলে\\     কিন্তু তুমি নেই বাহিরে – অন্তরে মেঘ করে,\\     ভারি ব্যাপক বৃষ্টি আমার বুকের মধ্যে ঝরে!\end{center}     \end{document}      using xelatex, its working properly:               $ xelatex jbn.tex     ...     *geometry* driver: auto-detecting     *geometry* detected driver: xetex     [1] (./jbn.aux) )     Output written on jbn.pdf (1 page).     Transcript written on jbn.log.      I tried using htxelatex:               $htxelatex trial.tex html     ...     (/usr/share/texlive/texmf-dist/tex/generic/tex4ht/html4-math.4ht)) (./jbn.aux)     (/usr/share/texlive/texmf-dist/tex/latex/tipa/t3cmr.fd)          ! LaTeX Error: Command `\acute' already defined in `'.          See the LaTeX manual or LaTeX Companion for explanation.     Type  H <return>  for immediate help.      ...                                                        l.13 \begin{document}          ?       and then starts printing many things ending up with:                [-S<image-script>]        [-s<css-file-ext>]   default: -s4cs; multiple entries allowed        [-t<tfm-font-dir>]        [-u10]               base 10 for unicode characters        [-utf8]              utf-8 encoding for unicode characters        [-v<idv version>]    replacement for the given dvi version        [-xs]           ms-dos file names for automatically generated gifs     /usr/bin/t4ht: fork: retry: No child processes     /usr/bin/t4ht: fork: retry: No child processes     /usr/bin/t4ht: fork: retry: No child processes     /usr/bin/t4ht: fork: retry: No child processes     /usr/bin/t4ht: fork: Resource temporarily unavailable      May I get some help? **EDIT** Friends, I have solved the `! LaTeX Error: Command ``\acute' already defined in`'.`` problem by putting `\usepackage[no-math]{fontspec}` but, no child process error is still there, and also, html's body is essentially empty: html output:                     <title>  </title>      <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">      <meta name="generator" content="TeX4ht (http://www.cse.ohio-state.edu/~gurari/TeX4ht/)">      <meta name="originator" content="TeX4ht (http://www.cse.ohio-state.edu/~gurari/TeX4ht/)">            <meta name="src" content="jbn.tex">      <meta name="date" content="2013-09-23 18:48:00">      <link rel="stylesheet" type="text/css" href="jbn.css">

                 **Make4ht** getting error:               ~/Downloads/make4ht/make4ht -u -c config -x jbn.tex      /home/rudra/Downloads/make4ht/make4ht:11: module 'make4ht-lib' not found:         no field package.preload['make4ht-lib']         [kpse lua searcher] file not found: 'make4ht-lib'         [kpse C searcher] file not found: 'make4ht-lib'      * _After 2nd comment *_ I have added the path, as per your instruction and this link.                $kpsewhich -var-value TEXMFHOME     /home/rudra/texmf     $ echo $PATH     /home/rudra/texmf/scripts/lua/make4ht:      but I am still getting the same error:               $ make4ht -u -c config.cfg jbn.tex     tex4ht.c (2012-07-25-19:36 kpathsea)     tex4ht      --- error --- improper command line     tex4ht [-f<path-separator-ch>]in-file[.dvi]        [-.<ext>]            replacement to default file extension name .dvi        [-c<tag name>]       choose named segment in env file        [-e<env-file>]        [-f<path-separator-ch>]        remove path from the file name        [-F<ch-code>]        replacement for missing font characters; 0--255; default 0        [-g<bitmap-file-ext>]        [-h(e|f|F|g|s|v|V)]  trace: e-errors/warnings, f-htf, F-htf search                                 g-groups, s-specials, v-env, V-env search        [-i<htf-font-dir>]        [-l<bookkeeping-file>]        [-P(*|<filter>)]     permission for system calls: *-always, filter        [-S<image-script>]        [-s<css-file-ext>]   default: -s4cs; multiple entries allowed        [-t<tfm-font-dir>]        [-u10]               base 10 for unicode characters        [-utf8]              utf-8 encoding for unicode characters        [-v<idv version>]    replacement for the given dvi version        [-xs]           ms-dos file names for automatically generated gifs     /usr/bin/t4ht: fork: retry: No child processes     /usr/bin/t4ht: fork: retry: No child processes     /usr/bin/t4ht: fork: retry: No child processes     /usr/bin/t4ht: fork: retry: No child processes     /usr/bin/t4ht: fork: Resource temporarily unavailable     Parse LG     parse_lg process file: jbn.html     outdir:      parse_lg process file: jbn.css     outdir:      parse_lg process file: jbn.tmp     tmp file


title: Any theme that responds to these requirements?

text: I'm trying to make a presentation in which:   * The first page must include the subjet, authors, 2 coaches names and 2 logos at top, a footer which includes authors, subject, date and pages.   * The rest of pages, the only requirement is to have on top of the page all of the chapters and, the current chapter selected and its sections. Is there any defined library for this kind of requirements? If not, how may to make this real please? NOTE: that I'm currently having a long chapter name which has as length = "xxxxxxxxxxxxxx xx xxxxxxxx x xxxxxxxx xxx xxxxxx xx xxxxxxx".


title: if i draw something using stand alone, how do i label the drawing (angles, sides,coordinates, etc.)

text: If I draw a triangle in stand alone, how do I label my drawing? I am able to draw my picture but I cant label any of the angles or sides.


title: Figure placement in XeLaTex

text: I am attempting to place a figure in my report. I have switched to XeLaTex but the figure doesn't seem centre and is overlapping the text. I have tried countless things but no luck. I've attached a photo of the problem, I am using the float package and multi columns with two columns. Thanks.               \begin{figure}[H]     \centering     \includegraphics[width=3in]{Resistance_Network.jpg}     \caption{Resistance network used for steady state pipe losses}     \end{figure}      ![enter image description here](http://i.stack.imgur.com/plhoq.png)


title: TikZ: Drawing regular hexagons with pictures inside

text: I need to create some images like these for a board game: ![enter image description here](http://i.stack.imgur.com/En7h9.jpg) In TikZ, can I draw a hexagon and fill it with a hexagonal area cut out of a bitmap? [In case anyone asks why TeX: Each actual hex will have a number of symbols (taken from bitmaps), boxes, text, coloured circles, etc. printed on it. These are liable to be extensively adjusted---a simple example might be systematic replacement of a symbol across all hexes. I want to use a scripting language rather than Photoshop-like software, to stop regeneration of hexes (and creation of new hexes) being tortuously slow. I know TeX isn't meant for this, but I don't know of any better options.]


title: Align three images vertically at the top, using the tallest height with floatrow

text: I am using the following LaTeX, to try to get 3 images aligned at the top               \documentclass[a4paper,11pt]{article}     \usepackage[utf8]{inputenc}     \usepackage[top=2cm, bottom=1.8cm, left=3cm, right=3cm]{geometry}     \usepackage[pdftex]{graphicx}     \usepackage[english]{babel}     \usepackage{url, floatrow, caption, fancyhdr, pifont, adjustbox, array, longtable, tikz}     \usepackage[toc, page]{appendix}          \floatsetup{heightadjust=object}          \newcolumntype{R}[2]{%         >{\adjustbox{angle=#1,lap=\width-(#2)}\bgroup}%         l%         <{\egroup}%     }          \newcommand*\rot{\multicolumn{1}{R{45}{1em}}}%          \renewcommand{\arraystretch}{1.5}     \newcommand{\cmark}{\ding{51}}          \begin{document}          \begin{figure}[!ht]         \centering         \begin{floatrow}           \ffigbox[\FBwidth]{\caption{Dummy figure}\label{fig:dummy-1}}{%             \includegraphics[width=0.33\textwidth]{old_engine/paper1.png}           }           \ffigbox[\FBwidth]{\caption{Dummy figure}\label{fig:dummy-2}}{%             \includegraphics[width=0.33\textwidth]{old_engine/paper2.png}           }           \ffigbox[\FBwidth]{\caption{Dummy figure}\label{fig:dummy-3}}{%             \includegraphics[width=0.33\textwidth]{old_engine/paper3.png}           }         \end{floatrow}     \end{figure}          \end{document}      However, it acts rather strange (The three images are all cropped to have zero white space at the top).   1. The first image is pushed a little bit down   2. The third image is goes through the caption What I would like is that the floatrow gets the height of the "tallest" image, where each image is clipped to the top of their ffigbox. ![enter image description here](http://i.stack.imgur.com/xPuuf.png) **EDIT** This is how it should be.. however it is the exact same code, just with different images. HOW LATEX?? ![enter image description here](http://i.stack.imgur.com/uzDHD.png)


title: Define a custom command to wrap easylist

text: I've installed the `easylist` package and am using it just fine. I've tried to create a custom command to shorten my typing as I've done before with the regular `\begin{itemize}`. My regular one that works is:               \newcommand{\itml}[1]{\begin{itemize} #1 \end{itemize}}      I use like this:               \itml{         \item first item         \item second item     }      The one that does **not** work:               \newcommand{\el}[1]{\begin{easylist}[itemize] #1 \end{easylist}}      When used as:               \el{         # first item         ## second item     }      I get the following error:               ! You can't use `macro parameter character #' in vertical mode.     <argument>  ##                first item #### Second item     l.44 }      What **actually does work** is:               \newcommand{\bel}{\begin{easylist}[itemize]}     \newcommand{\eel}{\end{easylist}}      When used as:               \bel         # first item         ## second item     \eel      Basically, I **don't** want to type the closing tag? **UPDATE** : I have all of my custom commands in a separate file like so:               % commands.tex file     \newcommand{\avgE}{\bar{E}}          ...          \newcommand{\bel}{\begin{easylist}[itemize]}     \newcommand{\eel}{\end{easylist}}     \newcommand{\el@aux}[1]{\begin{easylist}[itemize] #1 \end{easylist}\endgroup}     \newcommand{\el}{\begingroup\Activate\el@aux}     \newcommand{\bl}[1]{\bel #1 \eel}     \newcommand{\itml}[1]{\begin{itemize} #1 \end{itemize}}      And in my regular files, I say:               % regular latex file     \documentclass[11pt,letterpaper]{article}     ...     \input{../src/commands.tex}     ....      When trying it in my regular file I get the following error:               ! LaTeX Error: Missing \begin{document}.          See the LaTeX manual or LaTeX Companion for explanation.     Type  H <return>  for immediate help.      ...          l.25 ...list}[itemize] #1 \end{easylist}\endgroup}      Does that mean I have to declare these custom commands in each "regular" file and cant put it in just one place for all files?


title: Table mapping mathematical and scientific symbols to their meanings

text: Scott Pakin's Comprehensive LaTeX Symbol List (henceforth "Comprehensive List") and Detexify are great resources for finding symbols' LaTeX macros and packages. There is however a related thing that I feel is sorely needed: a table, in whatever form, that maps the most common symbols to their meanings. To elaborate on some issues relevant for a meaningful interpretation of this request:   * Which symbols should be documented? Only symbols with accepted usage in established fields should appear. Yes, determining the boundaries is difficult, but this doesn't mean that an effort isn't useful.   * Which symbols from the Comprehensive List are actually used? An answer to this question could be approximated by counting macro usage within published articles. Frequency information could be informative as well.   * Why is the Comprehensive List so large? Because a lot of symbols in the Comprehensive List seemed to have been generated through a process involving creative rage and obsessive completion based on symmetric considerations. I'm not saying these are bad _per se_ , but it would be nice to know whether esoteric symbol #253 from the Comprehensive List is actually used with consistency anywhere in the math literature.   * What are practical uses of such a table?     * Such a table will be useful for math symbol font designers.     * Unicode might be interested in knowing which symbols still need to be encoded.     * It is bothersome that the Comprehensive List as well as the interfaces of various equation editors inundate their users with a bunch of graphical symbols the majority of which one won't ever need, with some crucial ones being hard to find or even missing. One could prioritize the symbols in consistent, actual use by presenting them first, giving them shorter macro names, etc. Bringing a bit of order into the mess will be a good thing.     * Presenting symbols in an organized way will make it easier for package writers and users to organize and select symbols in a way that minimizes package conflicts. The incompatibility of `MnSymbol` with `amssymb` and `amsfonts` is notorious.     * Indexes (one for each field) for symbols will also make life easier for mathematicians and scientists wanting to publish in a particular field. Are there such tables? Is the community interested in constructing such tables?


title: Vertical Spacing in Tabular with bmatrix

text: I am unable to manually add vertical space between the second and third row. It should be controlled by the second parameter to `\MyTable` but that parameter seems to be have no effect: ![enter image description here](http://i.stack.imgur.com/gbDbw.png) ## Notes:   * The `\MyTable` macro was created specifically for this test case so that I can easily test various settings. This problem occurs even without a macro being used for the table.   * Using `\renewcommand*{\arraystretch}{1.5}` just before `\begin{tabular}` does not help in this case as it also stretches out the `bmatrix`. ## Code:               \documentclass{article}     \usepackage[paperwidth=21cm]{geometry}% To eliminate warning in MWE     \usepackage{amsmath}     \usepackage{booktabs}          \newcommand*{\MyTable}[2]{%     \begin{tabular}[t]{@{}cc@{}}\toprule         #1 & #2 \\         \cmidrule{1-2}         $\begin{bmatrix}             a_{11} & a_{12} &  a_{13} & a_{14} \\         \end{bmatrix}$                              & $1 \times 4$ \\[#1]         % -------------------------------------------         $\begin{bmatrix}             a_{11} & a_{12} & a_{13} & a_{14} \\             a_{21} & a_{22} & a_{23} & a_{24} \\             a_{31} & a_{32} & a_{33} & a_{34} \\             a_{41} & a_{42} & a_{43} & a_{44} \\         \end{bmatrix}$                              & $4 \times 4$ \\[#2]         % -------------------------------------------         $\begin{bmatrix}             a_{11} & a_{12} & a_{13} \\             a_{21} & a_{22} & a_{23} \\             a_{31} & a_{32} & a_{33} \\             a_{41} & a_{42} & a_{43} \\         \end{bmatrix}$                              & $4 \times 3$ \\         \bottomrule     \end{tabular}%     }          \begin{document}\noindent     \MyTable{0.0ex}{0.0ex}     \MyTable{2.0ex}{2.0ex}     \MyTable{2.0ex}{4.0ex}     \end{document}


title: TikZ scope options not working

text: Consider the following code:               \documentclass{article}     \usepackage{tikz}     \begin{document}       \begin{tikzpicture}         \begin{scope}[fill=red, draw=green,text=blue]           \node[fill=red, draw=green] at (0,0) {A};           \node[text=black] at (2,0) {B};         \end{scope}       \end{tikzpicture}     \end{document}      My question is: Why do only the `text` option to the `\scope` environment work? (That is: I would like the B-node to have a red background and a green border, but as seen from the included image, nothing happens) ![enter image description here](http://i.stack.imgur.com/DANbY.png)


title: Font used in Spivak's textbook, "Calculus"

text: Does anyone knows what's the font used in Michael Spivak's "Calculus" and "Calculus on Manifolds" ? I think they're not the same font. The point is that they're both very good fonts, and I didn't find any information anywhere. Can someone point out what fonts were used? **Edit:** Bellow there's a screenshot of Calculus: ![enter image description here](http://i.stack.imgur.com/jCdAK.png) And bellow there's a screenshot of Calculus on Manifolds: ![enter image description here](http://i.stack.imgur.com/eVmif.png)


title: How to force csquotes to show the quotations marks in block quotes?

text: How can I force the `csquotes` package to always show quotations marks in my block quotes, regardless of the language etc...? Tried this, but no cigar:               \usepackage{csquotes}[english=british] % hopefully this will show quotes      Also, there was a solution here using:               \renewenvironment{quoteblock}{\openautoquote}{\closeautoquote}      but it seems like `quoteblock` was removed in a recent version.


title: What unit of measure is pt in the documentclass?

text: I would like to know what is the meaning of `13pt` in here:               \documentclass[a4paper,13pt]{article}      My first guess was that it was the size of the characters, but changing the number does not seem to do that.


title: tikz doesn't work properly

text: I am trying to toy around with tikz and I have found that the result is strange. When I run the code given here:               \documentclass{article}          \usepackage{pgf}     \usepackage{tikz}     \usetikzlibrary{arrows,automata}     \usepackage[latin1]{inputenc}     \begin{document}     \begin{tikzpicture}[->,>=stealth',shorten >=1pt,auto,node distance=2.8cm,                         semithick]       \tikzstyle{every state}=[fill=red,draw=none,text=white]            \node[initial,state] (A)                    {$q_a$};       \node[state]         (B) [above right of=A] {$q_b$};       \node[state]         (D) [below right of=A] {$q_d$};       \node[state]         (C) [below right of=B] {$q_c$};       \node[state]         (E) [below of=D]       {$q_e$};            \path (A) edge              node {0,1,L} (B)                 edge              node {1,1,R} (C)             (B) edge [loop above] node {1,1,L} (B)                 edge              node {0,1,L} (C)             (C) edge              node {0,1,L} (D)                 edge [bend left]  node {1,0,R} (E)             (D) edge [loop below] node {1,1,R} (D)                 edge              node {0,1,R} (A)             (E) edge [bend left]  node {1,0,R} (A);     \end{tikzpicture}          \end{document}      I get this result:![enter image description here](http://i.stack.imgur.com/qkGGo.png) I'm using Ubuntu Natty machine.


title: table overflows the page

text: I use `\documentclass[a4paper,14pt]{report}` and the `longtable` package. Also I have               \usepackage[left=3cm,right=1cm,top=2cm,bottom=2cm,bindingoffset=0cm]{geometry}      in the preamble. I have some problems with the table:               \begin{longtable}{|p{50mm}|p{50mm}|p{50mm}|}      (I've tried `{|p{0.1\textwidth}|p{0.2\textwidth}|p{0.2\textwidth}|}`) but it makes no sense). I'm very new to LaTeX and all help will be appreciated! What's wrong? ![](http://i.stack.imgur.com/d8SYv.jpg)


title: Is there a way to add reusable metadata to the exam class?

text: Assuming I want to build a large pool of questions I can reuse for exams and tests, how can I extend the question section in the exam class to enable adding references to   * where the work/solution can be found in textbooks/online   * what section of work / major concepts are being address in the particular question, ideally encapsulating questions from similar sections of work together, and   * difficulty level of the particular question I have mostly worked with templates and standard classes, and have not extended any standard template, so please be gentle with your answer.               \question[12] Did you need this?          \begin{solution}     Once upon a midnight dreary, while I pondered, weak and weary,     Over many a quaint and curious volume of forgotten lore--- While I     nodded, nearly napping, suddenly there came a tapping, As of some     one gently rapping, rapping at my chamber door. ‘‘\,’Tis some     visitor,’’ I muttered, ‘‘tapping at my chamber door--- Only this     and nothing more.’’     \end{solution}      Would be great to be able to add variables or modifiers / metadata for   1. Reference    2. major concepts and    3. difficulty level.  Maybe the best place to do this would be inside the solution section?


title: 2up pdf with the toc as bookmarks

text: I left the world of postscript today, but now I wonder how to get a 2up pdf that still has the pdfbookmarks. I found pdfnup but this loses the pdfbookmarks. Is there a way to keep them? Previously I used dfips, 2up, ps2pdf. Thanks.


I would like activate Libertine's discretionary and historical ligatures with ConTeXt and XeTeX compilation. Currently, I'm using this:               \definetypeface[Libertine][rm][Xserif][Linux Libertine O]     \setupbodyfont[Libertine, 9pt]          \starttext     fi ffl ct st     \stoptext      Any ideas?


title: latex2html: Includes junk from document preamble and other mess.

text: I'm trying to make a clean web-version of a significantly sized tex document. latex2html works 'ok' except for not being able to handle lots of packages. Thats not a problem since I'm not that worried about style in this case, but all of the guff from those style related commands is treated as plain text. Is there a way of getting latex2html to effectively say 'I don't know what that is so I'm going to forget about it at all?'


title: set a caption and label in a tikz timingtable environment

text: Is it possible to set a caption and label within a tikz timing table? Or do I have to do that somehow within a tikzpicture? Here the codefragment:               \begin{minipage}{0.5\textwidth}     \begin{tikztimingtable}[xscale=1.5,yscale=1.5,timing/.cd,             metachar={w}{z [black]},             metachar={W}{Z [black]},             slope=0]           T1 & LLHLHHLH \\           T2 & LLHHLHLH \\           Summe & WWDDDDWD \\           Daten & LLHHHHLH \\      \extracode        \begin{pgfonlayer}{background}            \foreach [count=\x] \b in {0,0,1,0,1,1,0,1} {                 \node [below,font=\sffamily\bfseries\tiny,inner ysep=2pt] at (\x-.5,0) {\b};            }            \foreach [count=\y] \b in {0,0,1,1,0,1,0,1} {                 \node [below,font=\sffamily\bfseries\tiny,inner ysep=2pt] at (\y-.5,-2) {\b};            }            \foreach [count=\z] \b in {0,0,1,1,1,1,0,1} {                 \node [below,font=\sffamily\bfseries\tiny,inner ysep=2pt] at (\z-.5,-6) {\b};            }        \end{pgfonlayer}     \end{tikztimingtable}     \end{minipage}     \begin{minipage}{0.5\textwidth}     \begin{tikztimingtable}[xscale=1.5,yscale=1.5,timing/.cd,             c/dual arrows,c/arrow tip=latex,             c/arrow pos=.7,             metachar={v}{[timing/c/no arrows]c[timing/c/dual arrows]},             metachar={w}{z [black]},             metachar={W}{Z [black]},             slope=0]           T1 & ccv CCC cv CC c \\           T2 & ccv CcvCCCCc \\           Summe & wdwDwDDdWDw \\           Daten & ccv Ccv HH 0c0h0l 0c CCc \\      \extracode        \begin{pgfonlayer}{background}            \foreach [count=\x] \b in {0,0,1,0,1,1,0,1} {                 \node [below,font=\sffamily\bfseries\tiny,inner ysep=2pt] at (\x-.5,0) {\b};            }            \foreach [count=\y] \b in {0,0,1,1,0,1,0,1} {                 \node [below,font=\sffamily\bfseries\tiny,inner ysep=2pt] at (\y-.5,-2) {\b};            }            \foreach [count=\z] \b in {0,0,1,?,?,1,0,1} {                 \node [below,font=\sffamily\bfseries\tiny,inner ysep=2pt] at (\z-.5,-6) {\b};            }        \end{pgfonlayer}     \end{tikztimingtable}     \end{minipage}


title: Underlined Titles in Bibliography with `Biblatex` and `ulem` Package

text: I want to underline all titles in a bibliography using the `Biblatex` package with `Biber` backend and the `ulem` package. `Biblatex` seems to break `ulem`'s line breaking capabilities. Please consider the following MWE:               \documentclass{article}          \begin{filecontents}{MWE.bib}         @book{key,             author = {Super, Max},             title = {An extraordinary long and meaningless example book title, but unfortunately not correctly wrapped}         }     \end{filecontents}          \usepackage[normalem]{ulem}     \usepackage[backend=biber]{biblatex}         \addbibresource{MWE.bib}         \DeclareFieldFormat*{title}{\uline{#1}}          \begin{document}         \nocite{*}         \printbibliography     \end{document}      Is there any workaround? Any help is appreciated.


title: Recreating the xkcd Movie Narrative Chart

text: To teach myself TikZ, one of the things I've done is recreate interesting graphs/charts/etc. One of my bigger projects is attempting to recreate the xkcd Movie Narrative Charts comic. Different elements of the chart probably warrant their own question, but my particular question now is how I would draw the lines in the _Primer_ section of the chart (bottom right). I don't know if there's a good way to draw such messy, looping, interwoven paths. My solution as of now is to just use LaTeXDraw. Is that my only option here? **EDIT:** I played around with some of the suggestions from the related thread linked in the comments. I liked the example from the TikZ/pgf manual that Jan Hlavacek suggested. I fiddled with the example some and I'm getting there, but some obstacles are still in my way. First, here's an example of a path I created: ![enter image description here](http://i.stack.imgur.com/9HWex.png) Here's code that created the above. What I was aiming for was not quite a 'random' path because I wanted the path to drift in certain directions at different times. I'm sure what I've written is not the most efficient way of doing it (if you have a better way of doing it, I'd appreciate the advice, but it's not my main concern at the moment):               \documentclass{minimal}     \usepackage{tikz}     \begin{document}          \pgfmathsetseed{1}        \begin{tikzpicture}[x=10pt,y=10pt,ultra thick,baseline,line cap=round]          \coordinate (current point) at (0,0);          \coordinate (old velocity) at (0,0);          \coordinate (new velocity) at (rand,rand);          \foreach \i in {0,1,...,15}          {            \draw[black] (current point)             .. controls ++([scale=-1]old velocity) and                         ++(new velocity) .. ++(1,rand)               coordinate (current point);            \coordinate (old velocity) at (new velocity);            \coordinate (new velocity) at (rand,rand);            \draw[black] (0,0)             .. controls ++([scale=-1]old velocity) and                         ++(new velocity) .. ++(1,rand)               coordinate (current point);            \coordinate (old velocity) at (new velocity);            \coordinate (new velocity) at (rand,rand);          }          \foreach \i in {0,1,...,15}          {            \draw[black] (current point)             .. controls ++([scale=-1]old velocity) and                         ++(new velocity) .. ++(rand,1)               coordinate (current point);            \coordinate (old velocity) at (new velocity);            \coordinate (new velocity) at (rand,rand);          }          \foreach \i in {0,1,...,5}          {            \draw[black] (current point)             .. controls ++([scale=-1]old velocity) and                         ++(new velocity) .. ++(-1,rand)               coordinate (current point);            \coordinate (old velocity) at (new velocity);            \coordinate (new velocity) at (rand,rand);          }          \foreach \i in {0,1,...,5}          {            \draw[black] (current point)             .. controls ++([scale=-1]old velocity) and                         ++(new velocity) .. ++(rand,-1)               coordinate (current point);            \coordinate (old velocity) at (new velocity);            \coordinate (new velocity) at (rand,rand);          }          \foreach \i in {0,1,...,15}          {            \draw[black] (current point)             .. controls ++([scale=-1]old velocity) and                         ++(new velocity) .. ++(1,rand-.5)               coordinate (current point);            \coordinate (old velocity) at (new velocity);            \coordinate (new velocity) at (rand,rand);          }        \end{tikzpicture}     \end{document}      Aesthetically it's still not there, but I believe all it takes now is some tweaking. My problem now: I want to create three such paths that intertwine. I tried creating three paths within the `foreach` loop, but the coordinates of one path screws with the coordinates of another path in the subsequent loop -- I may just be doing something dumb. So, how would I the create image above with 3 intertwining paths instead of 1? **EDIT 2:** I was able to get multiple paths working (I had just forgotten to change something after copy-pasting). Here's an example with two paths: ![enter image description here](http://i.stack.imgur.com/5guOz.png) The code for this is below. But again, this is far from ideal, so I'm wondering if there's a better way to accomplish this (or at least make my method more efficient).               \documentclass{minimal}     \usepackage{tikz}     \begin{document}          \pgfmathsetseed{1}        \begin{tikzpicture}[x=10pt,y=10pt,ultra thick,baseline,line cap=round]          \coordinate (current point) at (0,0);          \coordinate (current point2) at (0,10);          \coordinate (old velocity) at (0,0);          \coordinate (old velocity2) at (0,10);          \coordinate (new velocity) at (rand,rand);          \coordinate (new velocity2) at (rand,rand);          \foreach \i in {0,1,...,15}          {            \draw[black] (current point)             .. controls ++([scale=-1]old velocity) and                         ++(new velocity) .. ++(1,rand)               coordinate (current point);            \coordinate (old velocity) at (new velocity);            \coordinate (new velocity) at (rand,rand);            \draw[red] (current point2)             .. controls ++([scale=-1]old velocity2) and                         ++(new velocity2) .. ++(1,rand-.5)               coordinate (current point2);            \coordinate (old velocity2) at (new velocity2);            \coordinate (new velocity2) at (rand,rand);          }          \foreach \i in {0,1,...,15}          {            \draw[black] (current point)             .. controls ++([scale=-1]old velocity) and                         ++(new velocity) .. ++(rand,1)               coordinate (current point);            \coordinate (old velocity) at (new velocity);            \coordinate (new velocity) at (rand,rand);            \draw[red] (current point2)             .. controls ++([scale=-1]old velocity2) and                         ++(new velocity2) .. ++(1,rand+.5)               coordinate (current point2);            \coordinate (old velocity2) at (new velocity2);            \coordinate (new velocity2) at (rand,rand);          }        \end{tikzpicture}     \end{document}


title: What is the most convenient way to create annotated bibliographies, e.g. in a literature review?

text: I am interested in creating annotated bibliographies either on a problem sheet for students or in general by writing a summary of a background literature research. I am aware of special bib-style files (annotation.bst, annotate.bst, chicagoa.bst, plain-annote.bst, ...) which don't ignore the annotation field in the bib files (either annote, or annotate). However, as customizing bst files is far too complicated and the useful `natbib` and `custom-bib` packages don't support this, as far as I know, I am not happy with them. The new `biblatex` package offers such a feature which is more convenient. Also, the annotation can be written into a separate file instead to the bib- file itself as the annotation is part of my document and not of the bibliographic information. However, creating many small files for each entry makes it difficult to read and handle the document in source code. From my point of view this problem should occurred to many people even before this biblatex package has existed. Though my question, how do you handle these cases when creating a LaTeX document?


title: How do I put multiple lines within a (single) pair of curly brackets?

text: I am trying to define a set by putting description of it in a pair of curly brackets like "{ }". The problem is the definition is sort of long and it looks messy with everything in a single line. Instead, I tried to use "align" environment. It came out with two lines, however, it could only show the left bracket on the first line but not the right one on the second. I guess it was because the "\" kind of broke the coherence. So is there any way I can put multiple lines (at least two lines) in a pair of curly brackets as a set? Thank you. Below are what I have tried as mentioned above.               \begin{equation}     \Theta_{I}\equiv  \left\{ \theta: [b_{n^{\prime }}(\alpha )-b_{n}(\alpha )]+\theta [R_{n^{\prime}}(\alpha )-R_{n}(\alpha )]\geq 0, \; \forall \alpha \in [0,1],        \forall n^{\prime},n \in \mathcal{N}, \quad n^{\prime}>n, \quad G_{n},G_{n^{\prime}}\in \mathcal{G}_{R}, \quad \theta \in \Theta \right\}    % how to add {} in an equation mode     \end{equation}                    \begin{align}     \Theta_{I}\equiv & \left\{ \theta: [b_{n^{\prime }}(\alpha )-b_{n}(\alpha )]+\theta [R_{n^{\prime}}(\alpha )-R_{n}(\alpha )]\geq 0, \; \forall \alpha \in [0,1], \\       &\forall n^{\prime},n \in \mathcal{N}, \quad n^{\prime}>n, \quad G_{n},G_{n^{\prime}}\in \mathcal{G}_{R}, \quad \theta \in \Theta \right\} \notag   % how to add {} in an equation mode       \label{eq7}     \end{align}


The following minimal working example employs a `cals` table in the document environment and works fine:               \documentclass{article}          %document encoding     \usepackage[utf8]{inputenc}          %geometry     \RequirePackage[a4paper, layoutwidth=10.5cm, layoutheight=20cm, noheadfoot, nomarginpar, margin=0mm, showcrop]{geometry}     \RequirePackage{calc}     \geometry{layouthoffset=0.5\paperwidth-5.25cm}     \geometry{layoutvoffset=0.5\paperheight-10cm}     \setlength{\topskip}{0mm}     \setlength{\parindent}{0mm}          %table     \RequirePackage{cals}          \begin{document}     \thispagestyle{empty}     \begin{calstable}     \makeatletter     \colwidths{{3.30cm}{1.95cm}{5.25cm}}     \def\cals@cs@width{0.8pt}     \def\cals@rs@width{0.8pt}     \setlength{\cals@paddingT}{1.44ex}     \setlength{\cals@paddingL}{1em}     \brow \nullcell{tbl}\nullcell{tb}\nullcell{tbr}\spancontent{} \ht\cals@current@row=30mm \erow     \brow \alignC \nullcell{tbl}\nullcell{tbr}\spancontent{} \alignL \cell{} \ht\cals@current@row=22mm \erow     \makeatother     \end{calstable}     \end{document}      However, when I put the code in a `\newcommand` called `\calscommand` I get a `Use of \cals doesn't match its definition \calscommand` error:               \documentclass{article}          %document encoding     \usepackage[utf8]{inputenc}          %geometry     \RequirePackage[a4paper, layoutwidth=10.5cm, layoutheight=20cm, noheadfoot, nomarginpar, margin=0mm, showcrop]{geometry}     \RequirePackage{calc}     \geometry{layouthoffset=0.5\paperwidth-5.25cm}     \geometry{layoutvoffset=0.5\paperheight-10cm}     \setlength{\topskip}{0mm}     \setlength{\parindent}{0mm}          %table     \RequirePackage{cals}     \newcommand{\calscommand}{%     \thispagestyle{empty}     \begin{calstable}     \makeatletter     \colwidths{{3.30cm}{1.95cm}{5.25cm}}     \def\cals@cs@width{0.8pt}     \def\cals@rs@width{0.8pt}     \setlength{\cals@paddingT}{1.44ex}     \setlength{\cals@paddingL}{1em}     \brow \nullcell{tbl}\nullcell{tb}\nullcell{tbr}\spancontent{} \ht\cals@current@row=30mm \erow     \brow \alignC \nullcell{tbl}\nullcell{tbr}\spancontent{} \alignL \cell{} \ht\cals@current@row=22mm \erow     \makeatother     \end{calstable}     }          \begin{document}     \calscommand     \end{document}      What am I doing wrong?


title: What do you call those things you use in LaTeX to format text?

text: I want many times to ask questions but I don't know what to call those. Are they called tags? Commands? Formatters? Example:               \example{example}      I know my question is general but that's what the question is for. To get out of generality.


title: saner listings monospace font size relative to surrounding text size

text: Is it possible to make listings and especially inline listings font size to be saner? It appears that the font size is chosen so that capital letters of the monospace font are full height of a line. It would be nice if the font size was chosen so that lowercase letters of the monospace font match the surrounding text's font's lowercase letters in height. Is this doable?


title: Bibtex unresolved references in a simple example mac OS lion

text: I have been trying to get BibTeX working but am really struggling. I have spent all morning doing google searches and trying to use other people's examples with no luck. I am using the latest version of Mac OS X (Lion), Emacs, and AUCTeX. The problem is that every time I try to pdflatex my TeX file I get unresolved references and all the citations are [?]. I have my TeX file and my `bib` file in the same folder.               \documentclass{article}     \begin{document}     \cite{who}     \bibliographystyle{plain}     \bibliography{test}     \end{document}          @ARTICLE{who,       author = {who},       year = {2008}     }


title: Suppress page number for a single page that only contains one large table?

text: I have a large table that uses up the whole space on a page. Unfortunately, the table also covers the page number, which is shining through. I don't want to split the table across two pages, hence I want to suppress the page numbering for this single page. Here's my table source code:               \begin{table}         \myfloatalign         \begin{tabular}[t]{rrrrr}             % lots             % of             % rows         \end{tabular}     \end{table}      I tried to place a `\thispagestyle{empty}` right before the table, directly after the table and in various other places, but without success. How do I suppress the page number of the page that contains the table?


title: newcommand conditionals

text: I am looking to create a command that adjusts my page layout, here is a sample:               \newcommand{\margin}{     \pdfpageheight 297mm     \pdfpagewidth 210mm     \pagebreak     \newgeometry{lmargin=31.5mm, rmargin=31.5mm, includemp, marginparsep=5mm, marginparwidth=52mm}     \setlength{\headwidth}{147mm}}      It basically just adjusts the margins to have a 52mm margin on the right hand side, and then I have other layouts too, which I all call with different commands, such as `\margin`, `\nomargin`, `\marginlandscape`, and this brings me to my problem. Ideally, I would want to only have to use one command, such as               \mypagestyle{margin}     \mypagestyle{nomarginlandscape}      but I have no idea how to create such a command, I've tried to do it myself and I've looked all over the place, but can find no answers. So, how do I code a `newcommand` that would give me the desired results?


title: Where are the sources for LaTeX3 development in TeX Live?

text: I'd like to take a look at the sources for some of the LaTeX3 development to model after, but I'm having trouble finding them. Where might I find the sources for `texdoc interface3`, `texdoc xparse`, and the like?


title: Add header to the table

text: I want to create the table as follows in latex. Note, the table below is created using excel. ![enter image description here](http://i.stack.imgur.com/EXFoW.png) So, far I have created something like this:                   Observed-modeled |observed-modeled| Observed-modeled |observed-modeled|     Min.          -1.5360000          0.0001891          -2.3740           0.001259     1st Qu.        0.0002512          0.1633000          -1.2280           0.674700     Median         0.3593000          0.5390000          -0.6202           1.101000     Mean           0.8554000          1.0020000          -0.2094           1.085000     3rd Qu.        1.6470000          1.6470000           0.7418           1.413000     Max.           5.5370000          5.5370000           5.0530           5.053000      The code for the above table is as follows:               \begin{table}[ht]     \centering     \begin{tabular}{rrrrr}       \hline      & Observed-modeled & $|$observed-modeled$|$ & Observed-modeled & $|$observed-modeled$|$ \\        \hline     Min. & -1.54 & 0.00 & -2.37 & 0.00 \\        1st Qu. & 0.00 & 0.16 & -1.23 & 0.67 \\        Median & 0.36 & 0.54 & -0.62 & 1.10 \\        Mean & 0.86 & 1.00 & -0.21 & 1.08 \\        3rd Qu. & 1.65 & 1.65 & 0.74 & 1.41 \\        Max. & 5.54 & 5.54 & 5.05 & 5.05 \\         \hline     \end{tabular}     \end{table}      How can I tweak the code so that I can add header `Station T1` and `Station T2` as shown in figure above ? The minimal working code is as follows:               \documentclass[12pt]{article}          \usepackage[english]{babel}     \usepackage[utf8x]{inputenc}     \usepackage{amsmath}     \usepackage{graphicx}     \usepackage{tikz}     \usetikzlibrary{shapes,decorations}     \usepackage[top=0.5in,bottom=1in,left=0.5in,right=0.4in]{geometry}          \begin{document}               \begin{table}[ht]     \centering     \begin{tabular}{rrrrr}       \hline       & & Station T1 & & Station T2 \\      & Observed-modeled & $|$observed-modeled$|$ & Observed-modeled & $|$observed-modeled$|$ \\        \hline     Min. & -1.54 & 0.00 & -2.37 & 0.00 \\        1st Qu. & 0.00 & 0.16 & -1.23 & 0.67 \\        Median & 0.36 & 0.54 & -0.62 & 1.10 \\        Mean & 0.86 & 1.00 & -0.21 & 1.08 \\        3rd Qu. & 1.65 & 1.65 & 0.74 & 1.41 \\        Max. & 5.54 & 5.54 & 5.05 & 5.05 \\         \hline     \end{tabular}     \end{table}          \end{document}      How can I make `station t1` and `Station T2` to get centered ?


title: Document management system

text: Is there any free / open source DMS for latex documents , which is simple to install and manage, not bulky (enterprize grade), help search the document and has revision control if possible? * * * (I've tried to second-guess this a bit. Please feel at ease to adapt, roll back, etc.) * * * Such a system should include, if possible:   * Versioning, and provision for shared development of, (La)TeX source, including both texts and packages   * Versioned storage of non-source material (E.g. images)   * Facilities for document formatting and review   * Facilities for document release (I.e. special distinguished versions)   * Storage of "frozen", released output documents (e.g. PDF, DVI, ...)   * Full text search (input and/or output)


title: TeXShop Flashmode does not refresh

text: I'm using TeXShop (v3.26) and I've just downloaded Flashmode (v7.1.1) which I put it into /Applications. Then I followed the instructions for the TeXShop/Preferences: > uncheck the „Automatic Preview Update“ , set „Default Page Style“ to „Multi- > Page“ . > > Under Typesetting define the „Sync Method“ you would want to use. You should > select „SyncTeX“ I've checked, SyncTeX is working. But when I launch Flashmode (by clicking on the app or executing the script new_clone) it just **compile the .tex once** and not refresh it every 0.2s like it is expected ! I tested with the minimal test " _Flashmode-test.tex_ " provided by the author in the folder :               ~/Library/Application Support/Flashmode/Test-files      which looks like this :               %&pdflatex      \documentclass{amsart}     %\usepackage{mathmacros}     \begin{document}     Notice the special command in the first line.          Start typing for otherwise Flashmode won't detect any modifications.           \end{document}      So I start Flashmode, it compiles the .tex and display the pdf, but again once ! If I add some characters in the source it does not refresh the preview in real time. Why ? These files have been created : Flashmode-test.aux               \relax     \newlabel{tocindent-1}{0pt}     \newlabel{tocindent0}{0pt}     \newlabel{tocindent1}{0pt}     \newlabel{tocindent2}{0pt}     \newlabel{tocindent3}{0pt}      Flashmode-test.flashmode               mardi 10 décembre 2013 15:30:16      Flashmode-test.flashmodeA               %&pdflatex     \documentclass{amsart}     %\usepackage{mathmacros}     \begin{document}     Notice the special command in the first line.          Start typing for otherwise Flashmode won't detect any modifications.          \end{document}      Flashmode-test.log               This is pdfTeX, Version 3.1415926-2.5-1.40.14 (TeX Live 2013) (format=pdflatex 2013.11.26)  10 DEC 2013 15:30     entering extended mode      \write18 enabled.      %&-line parsing enabled.     **Flashmode-test.tex     (./Flashmode-test.tex     LaTeX2e <2011/06/27>     Babel <3.9f> and hyphenation patterns for 78 languages loaded.     (/usr/local/texlive/2013/texmf-dist/tex/latex/amscls/amsart.cls     Document Class: amsart 2009/07/02 v2.20.1     \linespacing=\dimen102     \normalparindent=\dimen103     \normaltopskip=\skip41     (/usr/local/texlive/2013/texmf-dist/tex/latex/amsmath/amsmath.sty     Package: amsmath 2013/01/14 v2.14 AMS math features     \@mathmargin=\skip42          For additional information on amsmath, use the `?' option.     (/usr/local/texlive/2013/texmf-dist/tex/latex/amsmath/amstext.sty     Package: amstext 2000/06/29 v2.01          (/usr/local/texlive/2013/texmf-dist/tex/latex/amsmath/amsgen.sty     File: amsgen.sty 1999/11/30 v2.0     \@emptytoks=\toks14     \ex@=\dimen104     ))     (/usr/local/texlive/2013/texmf-dist/tex/latex/amsmath/amsbsy.sty     Package: amsbsy 1999/11/29 v1.2d     \pmbraise@=\dimen105     )     (/usr/local/texlive/2013/texmf-dist/tex/latex/amsmath/amsopn.sty     Package: amsopn 1999/12/14 v2.01 operator names     )     \inf@bad=\count79     LaTeX Info: Redefining \frac on input line 210.     \uproot@=\count80     \leftroot@=\count81     LaTeX Info: Redefining \overline on input line 306.     \classnum@=\count82     \DOTSCASE@=\count83     LaTeX Info: Redefining \ldots on input line 378.     LaTeX Info: Redefining \dots on input line 381.     LaTeX Info: Redefining \cdots on input line 466.     \Mathstrutbox@=\box26     \strutbox@=\box27     \big@size=\dimen106     LaTeX Font Info:    Redeclaring font encoding OML on input line 566.     LaTeX Font Info:    Redeclaring font encoding OMS on input line 567.     \macc@depth=\count84     \c@MaxMatrixCols=\count85     \dotsspace@=\muskip10     \c@parentequation=\count86     \dspbrk@lvl=\count87     \tag@help=\toks15     \row@=\count88     \column@=\count89     \maxfields@=\count90     \andhelp@=\toks16     \eqnshift@=\dimen107     \alignsep@=\dimen108     \tagshift@=\dimen109     \tagwidth@=\dimen110     \totwidth@=\dimen111     \lineht@=\dimen112     \@envbody=\toks17     \multlinegap=\skip43     \multlinetaggap=\skip44     \mathdisplay@stack=\toks18     LaTeX Info: Redefining \[ on input line 2665.     LaTeX Info: Redefining \] on input line 2666.     )     LaTeX Font Info:    Try loading font information for U+msa on input line 388.          (/usr/local/texlive/2013/texmf-dist/tex/latex/amsfonts/umsa.fd     File: umsa.fd 2013/01/14 v3.01 AMS symbols A     )     (/usr/local/texlive/2013/texmf-dist/tex/latex/amsfonts/amsfonts.sty     Package: amsfonts 2013/01/14 v3.01 Basic AMSFonts support     \symAMSa=\mathgroup4     \symAMSb=\mathgroup5     LaTeX Font Info:    Overwriting math alphabet `\mathfrak' in version `bold'     (Font)                  U/euf/m/n --> U/euf/b/n on input line 106.     )     \copyins=\insert233     \abstractbox=\box28     \listisep=\skip45     \c@part=\count91     \c@section=\count92     \c@subsection=\count93     \c@subsubsection=\count94     \c@paragraph=\count95     \c@subparagraph=\count96     \c@figure=\count97     \c@table=\count98     \abovecaptionskip=\skip46     \belowcaptionskip=\skip47     \captionindent=\dimen113     \thm@style=\toks19     \thm@bodyfont=\toks20     \thm@headfont=\toks21     \thm@notefont=\toks22     \thm@headpunct=\toks23     \thm@preskip=\skip48     \thm@postskip=\skip49     \thm@headsep=\skip50     \dth@everypar=\toks24     )     No file Flashmode-test.aux.     \openout1 = `Flashmode-test.aux'.          LaTeX Font Info:    Checking defaults for OML/cmm/m/it on input line 4.     LaTeX Font Info:    ... okay on input line 4.     LaTeX Font Info:    Checking defaults for T1/cmr/m/n on input line 4.     LaTeX Font Info:    ... okay on input line 4.     LaTeX Font Info:    Checking defaults for OT1/cmr/m/n on input line 4.     LaTeX Font Info:    ... okay on input line 4.     LaTeX Font Info:    Checking defaults for OMS/cmsy/m/n on input line 4.     LaTeX Font Info:    ... okay on input line 4.     LaTeX Font Info:    Checking defaults for OMX/cmex/m/n on input line 4.     LaTeX Font Info:    ... okay on input line 4.     LaTeX Font Info:    Checking defaults for U/cmr/m/n on input line 4.     LaTeX Font Info:    ... okay on input line 4.     LaTeX Font Info:    Try loading font information for U+msa on input line 4.     (/usr/local/texlive/2013/texmf-dist/tex/latex/amsfonts/umsa.fd     File: umsa.fd 2013/01/14 v3.01 AMS symbols A     )     LaTeX Font Info:    Try loading font information for U+msb on input line 4.          (/usr/local/texlive/2013/texmf-dist/tex/latex/amsfonts/umsb.fd     File: umsb.fd 2013/01/14 v3.01 AMS symbols B     ) [1{/usr/local/texlive/2013/texmf-var/fonts/map/pdftex/updmap/pdftex.map}]     (./Flashmode-test.aux) )      Here is how much of TeX's memory you used:      1361 strings out of 493315      15213 string characters out of 6137903      66713 words of memory out of 5000000      4700 multiletter control sequences out of 15000+600000      7385 words of font info for 29 fonts, out of 8000000 for 9000      1118 hyphenation exceptions out of 8191      34i,4n,28p,267b,185s stack positions out of 5000i,500n,10000p,200000b,80000s     </usr/local/texlive/2013/texmf-dist/fonts/type1/public/     amsfonts/cm/cmr10.pfb></usr/local/texlive/2013/texmf-dist/fonts/type1/public/am     sfonts/cm/cmr7.pfb>     Output written on Flashmode-test.pdf (1 page, 22566 bytes).     PDF statistics:      16 PDF objects out of 1000 (max. 8388607)      10 compressed objects within 1 object stream      0 named destinations out of 1000 (max. 500000)      1 words of extra memory for PDF output out of 10000 (max. 10000000)      Flashmode-test.pdf Flashmode-test.position Flashmode-test.synctex.gz What is strange is that I can't find any process named Flashmode with the command line "ps -A" after executing it. I suppose that if Flashmode should refresh in real time the preview it has to appear in the current process list, hasn't it ? Thank you


title: Table with multi column

text: i have this code               \begin{table}[htbp]       \centering       \caption{Add caption}         \begin{tabular}{|c|c|c|c|c|c|}         \hline         \multirow{3}[4]{*}{Tested Text} & \multicolumn{5}{c|}{\multirow{2}[2]{*}{         Training Text (tested text is not included)}}\\               & \multicolumn{5}{c|}{} \\     \cline{2-6}          & BI    & IK    & MR    & MA    & TO \\         \hline         BI    &       &       &       &       &  \\         \hline         IK    &       &       &       &       &  \\         \hline         MR    &       &       &       &       &  \\         \hline         MA    &       &       &       &       &  \\         \hline         TO    &       &       &       &       &  \\         \hline         \end{tabular}%       \label{tab:addlabelkiki}%     \end{table}%      I don't understand why last column is larger than other as shown in the figure![pic](http://i.stack.imgur.com/HOQIS.png)? any sugesstion


title: Oldstyle (arabic) numbers in headings remove roman pagination

text: Using the following code to get oldstyle (arabic) numbers in the headings make the preamble page numbers (in roman) to disappear. Here's a minimal working example:               \documentclass{book}     \usepackage{fancyhdr}     \usepackage{lmodern}     \usepackage{lipsum}     \usepackage{multicol}     \usepackage{textcomp}     \usepackage{pdfpages}          \pagestyle{fancy}     \fancyhead[LE]{\oldstylenums{\thepage}}     \fancyhead[RO]{\oldstylenums{\thepage}}          \begin{document}     \frontmatter     \lipsum     \mainmatter     \lipsum     \end{document}      As you can see, in the frontmatter, there is no pagination on the headings (although there's still pagination at the bottom). Thanks.


title: How do I draw parallel arrows in commutative diagrams with TikZ?

text: How do I draw two parallel arrows having the same domain and the same codomain in a commutative diagram with TikZ? For that matter, how do I draw any sort of parallel paths between two nodes? Do I need to explicitly shift the two paths myself? And if so how?


title: amsfonts become pixelated in PDF

text: I'm completely new to LaTeX. I've downloaded LyX 1.6.8 which uses MiKTeX 2.9, so there is probably some markup which is not required. When I create a PDF from this a bitmap font of AMSFonts is used. If I uncomment `\usepackage{palatino}` ( **EDIT** like it is below) the font is smooth, so I guess this has to be the problem. According to the documentation of AMSFonts the type 1 font is included. It just seems it's not used. Thanks for your time!               %% LyX 1.6.8 created this file.  For more info, see [Link removed].     %% Do not edit unless you really know what you are doing.     \documentclass[ngerman]{scrartcl}     \usepackage[T1]{fontenc}     \usepackage[utf8]{inputenc}     \usepackage{fancyhdr}     \pagestyle{fancy}     \setcounter{secnumdepth}{2}     \setcounter{tocdepth}{2}     \usepackage{color}     \usepackage{babel}          \usepackage{wrapfig}     \usepackage{amsmath}     \usepackage{graphicx}     \usepackage{setspace}     \usepackage{amssymb}     \onehalfspacing     \usepackage[unicode=true,      bookmarks=true,bookmarksnumbered=false,bookmarksopen=false,     breaklinks=false,pdfborder={0 0 0},backref=false,colorlinks=true]     {hyperref}     \hypersetup{pdftitle={My Title}}          \makeatletter     %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands.     % This file was converted to LaTeX by Writer2LaTeX ver. 1.0.2     % see [Link removed] for more info          \usepackage{amsfonts}\usepackage{array}\usepackage{hhline}     \usepackage{palatino}     \title{My Title}     \author{Mene}     \date{2010-12-14T21:45:48.12}          \@ifundefined{showcaptionsetup}{}{%     \PassOptionsToPackage{caption=false}{subfig}}     \usepackage{subfig}     \makeatother          \begin{document}          \title{My Title}          \maketitle          \section{Lorem ipsum dolor sit amet}          Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam     nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat,     sed diam voluptua. At vero eos et accusam et justo duo dolores et     ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem     ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing     elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore     magna aliquyam erat, sed diam voluptua. At vero eos et accusam et     justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata     sanctus est Lorem ipsum dolor sit amet.     \end{document}


title: tikz draw circle segment

text: How can I use tikz to draw a circle segment if I have the center of the circle and two points on it? Please see the following example ![example](http://i.stack.imgur.com/mQayh.png) Update: I try to accomplish something like this. This can be done using the method from Tikz: joining points on a circle, but I would prefer a some sort of tikz solution, because this would allow me to use a tikz style. ![enter image description here](http://i.stack.imgur.com/5sYmU.png)


title: Making register declarations local, Undefining a register (count, toks, etc.)

text: Is it possible to make `\newcount`, `\newtoks`, etc. respect grouping, so that, e.g., `\newcount\temp\temp=2{\newcount\temp\temp=1}\showthe\temp` gives 2 (instead of 0)? Relatedly, is it possible to undefine a register so that the appropriate `\new` command (`\newcount`, `\newtoks`, etc.) will use it?


title: Need a package for \bari

text: I want to `\bari` code but I did found the package for this which is `wsuipa.sty`. Is there someone knows where we can download?


title: Expand directory names using nested macro definitions

text: ## Background Would like to use values from macros that reference other macros (n-levels deep) and apply their values to the `\path` command. ## Problem (Scenario A) The following works:               \usepackage{url}          \newcommand*{\filename}[1]{\expandafter\path\expandafter{#1}}     \newcommand*{\filephpdemo}{index.php}          \path{c:\programs\Apache\htdocs\}\filename{\filephpdemo}      Result:               c:\programs\Apache\htdocs\index.php      (Scenario B) This fails:               \newcommand*{\dirname}[1]{\expandafter\path\expandafter{#1}}          \newcommand*{\dirhomeapachehttp}{c:\programs\Apache\}     \newcommand*{\dirhomeapachehttpdocs}{\dirhomeapachehttp\docs\}          \dirname{\dirhomeapachehttpdocs}\filename{\filephpdemo}      Actual result is an error:                Missing }.      (Scenario C) This fails:               \newcommand*{\dirhomeapachehttp}{c:\programs\Apache\}     \newcommand*{\dirhomeapachehttpdocs}{c:\programs\Apache\hdtocs}      Actual result:               c:\programs \Apache \htdocs index.php      ## Question How can the `\path` command be used to expand and use the value of `\dirhomeapachehttpdocs` from Scenario B? ## Related   * Alternatives to $\backslash$   * Using \nameref within \path


title: When loading LaTeX files in vim (7.3) I get the error "perhaps you should insert a `~' before '\ref' "

text: I have the over 30 errors in my LaTeX file, all over the `\ref{...}` command, and all following this similar pattern (I put it as a quote instead of code as it is long and code does not wrap) > I returned and saw under the sun, that the race is not to the swift, nor the > battle to the strong, neither yet bread to the wise, nor yet riches to men > of understanding, nor yet favour to men of skill; but time and chance > happeneth to them all. \ref{bible:ecclesiastes} Every time I get the following complaint over `\ref{...}`               perhaps you should insert a `~' before "\ref"      Why am I getting this error? How can I avoid it?


title: Reference part of a figure (with or without cleveref)

text: I have a figure with multiple parts (a, b, c, etc.) and in the text I would like to have a reference to the figure with the letter of the part (i.e. fig 1(b) ). Is there a way to pass this to `\cref{}` or `\ref{}` in order to have it do this? EDIT: So this turned out to be a dumb question. I forgot `\ref{}` returns just the number, so this is easily done using               Figure \ref{fig:1}a says...


title: \textsc and acronym

text: I am willing to use the `acronym` package in a paper and I'd like to show the acronym in `\textsc`. Unfortunately the documentation of the package says that my acronym can be only an ASCII character. http://staff.science.uva.nl/~polko/HOWTO/LATEX/acronym.html Is there a way to do what I'd like to do?


title: Reverse arrow in TikZ

text: How can I reverse some arrows of the diagram given by the code below?               \begin{tikzpicture}       % Tell it where the nodes are       \node (A) {$A$};       \node (B) [below=of A] {$B$};       \node (C) [right=of A] {$C$};       \node (D) [right=of B] {$D$};       % Tell it what arrows to draw       \draw[-stealth] (A)-- node[left] {\small $i$} (B);       \draw[-stealth] (B)-- node [below] {\small $g$} (D);       \draw[-stealth] (A)-- node [above] {\small $j$} (C);       \draw[-stealth] (C)-- node [right] {\small $k$} (D);     \end{tikzpicture}


title: What is the counterpart of \IEEEauthorrefmark for sig-alternate class?

text: What is the counterpart of `\IEEEauthorrefmark{1}` (which is used in the `IEEEtran` class) for `sig-alternate` class? Some information about `\IEEEauthorrefmark` The author parts many times are in the following form:               john^, willy^, daniel*     ^ University of Washington     * University of Michigan      It is used to create the symbols ^*


title: Customized page numbering in the Appendix

text: Hello lassies and lads! I want to have customized numbering in my appendix. For example I want each page to be numbered as A.1, A.2, ..., A.n, for the first section, then B.1, B.2, ... for the second one etc. I have prepared a minimal code where I show more or less how I can change the numbering, nonetheless, I am unable to do what I desire.               \documentclass[11pt,a4paper]{article}     \usepackage[utf8x]{inputenc}     \usepackage{ucs}     \usepackage{amsmath}     \usepackage{amsfonts}     \usepackage{amssymb}     \usepackage{makeidx}     \usepackage{graphicx}     \usepackage[width=0.00cm, height=0.00cm, left=1.00in, right=1.00in, top=1.00in,     bottom=1.00in]{geometry}     \author{Doge of the Serene Republic}         \title{A Socio-economic Analysis of Naval Powers at the Italian Peninsula of the Medieval Period}          \begin{document}     \maketitle          \pagenumbering{arabic}     \thispagestyle{empty}          \begin{abstract}     This is my abstract ...      \end{abstract}          \newpage               \section{This is section one}          \newpage     \section{On the Economic Structure of Venice and the Neighbouring Naval States}          \newpage     \pagenumbering{Alph}     \appendix          \section{The Scientific Method}     \par Here I describe my method in detail ...          \end{document}


title: How to code an auto-increment counter in LaTeX

text: When typesetting letters is common practice to have a reference such as:                  XXX-yl-0001      Where the last number is incremented for each successive letter. Normally, I hand-code the number. When having hundreds of letters one tends to now and then make mistakes and duplicate or miss references. Can someone propose a method to automate this with TeX? Important is to only increment once for each run, i.e., you don't want the counter to increment if you re-run the file. Please note I am out of inspiration for a MWE. My suggestion, is probably one needs two files. The first one to totalize and a local per jobname to keep the specific letter reference.


title: Changing textblock and margin size mid-document with memoir

text: In a `memoir` document, I'd like to set different textblock size and margins for the back matter, to give wider space for a glossary. Similar questions have been asked about changing page layout settings in `memoir`, nonetheless I can't produce a consistent result (if any). I'm probably missing some trivial step in the MWE below.               \documentclass[11pt]{memoir}          \usepackage{multicol}     \usepackage{calc}          \setstocksize{9in}{6in}     \settrimmedsize{\stockheight}{\stockwidth}{*}     \settrims{0pt}{0pt}     \settypeblocksize{32\baselineskip + \topskip}{*}{0.577}% 1/1.732 (sqrt(3)), Hexagon ratio     \setlrmargins{*}{*}{1.125}% 1/0.889 major 2nd ratio     \setulmargins{*}{*}{1.701}% Tall Pentagon ratio     \setlength{\footskip}{3\baselineskip}     \checkandfixthelayout          \begin{document}          \mainmatter          \chapter{A Message From Mars}          In plain English, at 4 a.m., a ray of light had been observed on the     disc of the planet Mars in or near the "terminator"; that is to     say\ldots          \backmatter          \settypeblocksize{32\baselineskip + \topskip}{110mm}{*}     \setlrmargins{*}{14mm}{*}     \checkandfixthelayout          \chapter{Glossary}          ``Some ten times round the world. Well, is that tremendous vacuum     absolutely impassable?''          \begin{multicols}{2}          \begin{description}       \item[The next] evening promised well, and I kept my appointment, but unfortunately a slight haze       \item[gathered] in the sky and prevented us from making further observations.       \item[While] hoping in vain for it to clear away, Professor Gazen and I talked     \end{description}          \end{multicols}          \end{document}      The log prints the new page dimensions:               ...     Text height and width: 446.2002pt by 257pt     Spine and edge margins: 82.88574pt and 93.2786pt     ...     Text height and width: 446.2002pt by 312pt     Spine and edge margins: 80.80585pt and 39.83385pt     ...      But somehow it ain't happening: ![enter image description here](http://i.stack.imgur.com/sH5AA.png)


title: The \lowercase trick

text: We have a number of questions or rather answers using (and explaining) the `\lowercase` “trick”.               \begingroup     \lccode`\~=`\.     \lowercase{\endgroup\def~}#1{foo with #1}      However, after reading on uppercase and lowercase codes I started wondering how it is possible that it is working. Quoting _TeX by Topic_ : > To each of the character codes correspond an uppercase code and a lowercase > code [...]. These can be assigned by >   >   >     \uccode number equals number >   > > and >   >   >     \lccode number equals number . >   > > In IniTeX codes ``a`..``z`, ``A`..``Z` have uppercase code ``A`..``Z` and > lowercase code ``a`..``z`. All other character codes have both uppercase and > lowercase code zero. > > The commands `\uppercase{...}` and `\lowercase{...}` go through their > argument lists, replacing all character codes of explicit character tokens > by their uppercase and lowercase code respectively if these are non-zero, > without changing the category codes. The last sentence made me thinking: how can the “trick” work if both `~` and the symbol that gets a definition have lowercase code=0? My naive expectation would be that               \lccode`\~=`\.      gives `~` the same lowercase code it had before and is equivalent to `\lccode`~=0`. But to me this would imply that the “trick” shouldn't work? How come it _does_ work?               \documentclass{article}     \begin{document}          \verb+\the\lccode`. += \the\lccode`. \par     \verb+\the\lccode`~ += \the\lccode`~          \begingroup     \lccode`\~=`\.     \lowercase{\endgroup\def~}#1{foo with #1}          \catcode`\.=13          .{bar}          \end{document}      ![enter image description here](http://i.stack.imgur.com/wZxh7.png)


title: pgfplots: 2d graphics in 3d axis environment

text: I would like to stack several external 2d plots into a 3d axis environment like the orange and green planes in my example. As the 2d plots are created externally, I am looking for a way to rotate and insert these external graphics accordingly. The `\addplot graphics` command will not provide the desired result as it does not seem to understand 3d, and also `addplot3 graphics` does not work the way I hoped (uncommenting this part will result in an error).   So, is there a way to insert 2d external graphics in a 3d plot and make them appear in the desired perspective?               \documentclass[crop,10pt]{standalone}     \usepackage{pgfplots}     \pgfplotsset{compat=1.8}     \begin{document}     \begin{tikzpicture}         \begin{axis}[view={70}{30},         xmin=-1.5,xmax=1.5,ymin=-1.5,ymax=1.5,zmin=-1.5,zmax=1.5,         xlabel=x,         ylabel=y,         zlabel=z,         ]     \filldraw[orange] (axis cs:-1,-1.5,-1.5) -- (axis cs:-1,-1.5,1.5) -- (axis cs:-1,1.5,1.5) -- (axis cs:-1,1.5,-1.5)  -- cycle;     \filldraw[green] (axis cs:0,-1.5,-1.5) -- (axis cs:0,-1.5,1.5) -- (axis cs:0,1.5,1.5) -- (axis cs:0,1.5,-1.5)  -- cycle;     \addplot graphics [xmin=0,xmax=0,ymin=-1.5,ymax=1.5,zmin=-1.5,zmax=1.5] {anygraphics};     %\addplot3 graphics[     %       points={     %           (-1,-1.5,1.5) => (0pt,566pt)     %           (-1,1.5,1.5) => (566pt,566pt)     %           (-1,1.5,-1.5) => (566pt,0pt)     %           (-1,-1.5,-1.5) => (0pt,0pt)     %           }     %       ]     %       {anygraphics};         \end{axis}     \end{tikzpicture}          \end{document}


title: How to force Latex to change from "A Appendix's name" to "Appendix A"

text: I work on a article type document and I would like to force Latex to use "Appendix A" without giving a name in place of the simple "A" that it gives me when I start a new section in the appendices. My example : when I type this               \documentclass[a4paper,titlepage]{article}     \usepackage[titletoc]{appendix}     \numberwithin{equation}{section}          % I write it because I would want to keep the (A.1) notation for          % equations' label for appendices          \begin{document}          \section{First section}         blablabla          \begin{appendices}          \section{nameA}         blablabla     \section{}         blablabla     \end{appendices}          \end{document}      I get this in the body of the document :               A nameA     blablabla     B      blablabla      and in my toc I get               Appendix A nameA ...      Appendix B      which is fine (as far as the toc is concerned) But I would like that I got this in the body :               Appendix A nameA     blablabla     Appendix B      blablabla      How to do this ?


title: \pdfmarkupcomment does not highlight what it is supposed to

text: Basically I have the same problem as in the closed thread \pdfmarkupcomment works in MWE, but doesn't work in my thesis. Simple MWE, even longer files work fine, the text gets highlighted as it is supposed to. My main paper consists out of several .tex-files (in different subdirectories) that get included (or not) depending on boolean variables. Wheras other pdfcomment-commands work fine, the `pdfmarkupcomment` does not work at all. Anybody seen something similar?