title: How can I make tikzpicture flow smoothly around text?

text: I have a problem when I use `tikzpicture` and `wrapfigure`. The main issue is that when using the third parameter, the "distance" becomes arbitary. For example, I am using `9cm` but what is the correct way to do it? Because, currently, the text looks out of place and not aligned.               \documentclass{article}     \usepackage{pgfplots}     \usepackage{graphicx}     \usepackage{wrapfig}          \begin{document}          Whenever we deal with integration, we come across the constant of integration $C$. Suppose we have the following graph of $ f(x) = \sin x$.           \begin{wrapfigure}{l}{9cm}     \begin{tikzpicture}     \begin{axis}[     xlabel = $x$,     ylabel = $f(x)$     ]     \addplot{sin(deg(x))};     \end{axis}     \end{tikzpicture}     \end{wrapfigure}          The primary reason for doing integration is to be able to solve differential equations.          \begin{quote}         some random text goes here and other cool stuff.     \end{quote}          \end{document}


title: Titles ending with punctuation in biblatex-ieee

text: I've just recently started using the `biblatex` package (with the `biblatex- ieee` style), and I've run into a small problem. I've looked at the `.bbx` file, and it seems like it should be easy to change, although I'm perhaps not familiar enough with this to see how. I have a citation with a title ending in a question mark, such as:               @article{Doe2012,     author={Doe, J.},     title={This title is a question?},     journal={Proc. IEEE},     year={2012},     volume={1234},     number={12},     pages={345--678},     month={Dec.},     }      This produces the something looking like: > [1] J. Doe, “This title is a question?,” _Proc. IEEE_ , vol. 1234, no. 12, > pp. 345–678, Dec. 2012. I would like to remove the comma following the question mark. The `bibtex` version of the IEEE style does not do this, and I don't remember seeing this kind of double-punctuation in any IEEE publications. Naturally, I would like to keep the comma if the title does not end in a punctuation mark. Otherwise, I think I could just use `\nopunct`. Can anyone see how I might modify the style file to change this behaviour?


title: Adding text to a different part of the document

text: I'm writing a LaTeX document at the moment which has problems (which are created in a `{theorem}` environment) for the reader in it. I'd like to put solutions to those problems in the end of the document. Of course, I could just add another section/chapter called “solutions” in the end and write them there. But, since the problems are very likely to be reordered and new problems will be added I would have to change the order of the solutions manually which could be quite a hassle. I was wondering whether it is possible to write LaTeX code in some part of the document which then appears in a different part of the final document. Ideally I would like to write something like               \begin{problem} \label{someProblem}     Here is some problem.     \end{problem}     \addTextToTheSolutionsChapter{     Solution to problem \ref{someProblem}     }      which typesets the problem right in place and appends the text in the parentheses to the section in the back.


title: Negation Function for style files

text: I'm trying to read about `.bst` files from Tame the Beast. On page 38, there is this example for a negation function:               FUNCTION {not}     {   { #0 }         { #1 }       if$     }      I don't understand what `#0` and `#1` are. Also, in the definition of `if` on page 33, it requires three arguments `I F1 F2`, but in the code why are there only two?


title: How to get "XeLaTeX + unicode-math" output as close as possible to that of pdflatex?

text: I've started exploring XeTeX and the `unicode-math` package in order to use unicode in my input. Of the six math fonts described in unimath-symbols.pdf, Latin Modern Math seems to be closest to what pdflatex produces. However, I've already noticed a number of differences I don't like, such as `\varnothing` (which is the same as `\emptyset` now), `\complement` and the `\mathbb` family. I know about the `range` option of the `\setmathfont` command. Right now I use:               \setmathfont{latinmodern-math.otf}     \setmathfont[range={"2100-"214F,"2201,"2205,"1D7D8-"1D7E1,"1D538-"1D56B}]{xits-math.otf}      But I'd rather use a single command, option or package that takes all symbols as close as possible to the `pdflatex versions'. I can then explore the different fonts at my leisure, with the certainty that there are no big surprises in my existing documents. Is there a way to do this?


title: Chutes and Ladders

text: I am trying to make a Chutes and Ladders style game. I have managed to piece together a board, but I plan to change the location of squares, ladders, and slides for future boards. The ladder is a particularly ugly hack that was adjusted by trial and error. I would be grateful for any advice on building such a board. Specifically I would like to make a command that draws each ladder by specifying the beginning and ending coordinates. I haven't been able to find any decorations that would help in drawing a ladder.               \documentclass{standalone}     \usepackage{tikz}          \begin{document}          \begin{tikzpicture}[scale=1.5]     %board     \draw (0,0) grid (6,1) (5,0)grid (6,3) (0,2)grid (6,3)      (0,2) grid (1,5) (0,4) grid (6,5)(5,5) grid (6,9)      (0,8) grid (6,9) (0,6) grid (1,8) (1,6) grid (4,7);          %ladders     \draw[scale=.5,xshift=2.5cm,yshift=1.5cm,rotate=-45] (0,-.5) grid ++(1,6);     \draw[scale=.5,xshift=6.5cm,yshift=9.5cm,rotate=-45] (0,-.5) grid ++(1,6);     \draw[scale=.5,xshift=.5cm,yshift=9.5cm,rotate=0] (0,-.5) grid ++(1,4);          % slides     \draw (1.75,2.5) sin ++(1,-1) cos ++(1,-1);     \draw (1.25,2.5) sin ++(1,-1) cos ++(1,-1);     \draw (5.75,4.5) sin ++(-.5,-1) cos ++(-.5,-1);     \draw (5.25,4.5) sin ++(-.5,-1) cos ++(-.5,-1);          \draw (3.5,6.5) node{$\star$};     \end{tikzpicture}          \end{document}      ![Chutes and Ladders Board](http://i.stack.imgur.com/ecsrV.png)


title: The environ package eats a space

text: I am using the `environ` package to collect the body of an environment to be used later. It appears that the `environ`environment gobbles the trailing space. For example,               \documentclass{article}          \usepackage{environ}          \NewEnviron{myenviron}{\BODY}     \begin{document}     A \begin{myenviron}B\end{myenviron} C          X\begin{myenviron}Y\end{myenviron}Z     \end{document}      gives me `A BC` and `XYZ`, but I would like `A B C` and `XYZ`. What is the proper way to get the trailing space back? I just looked at the source code and the answer is on line 7               \environfinalcode{\ignorespacesafterend}      so I can fix the problem with `\environfinalcode{}`, but I would prefer a less global change.


title: How could I check what font size is in pt for \section, \subsection, and \subsubsection?

text: There are a lot of results for "setting" the font size, but I can't find one how to "get" them. Here's some code from What point (pt) font size are \Large etc.? I can use to check what font size for `\normalsize`, `\large`, etc.               \makeatletter          \newcommand\thefontsize[1]{{#1 The current font size is: \f@size pt\par}}          \makeatother          \begin{document}          \thefontsize\normalsize          \end{document}      But `\thefontsize\section` doesn't work... Could anyone help me how to get it?


title: MS Word font size matching visually the LaTeX default one

text: What is the most resembling font in terms of size and style to the default used in LaTeX? I write in MS Word first, then copy it to LaTeX – this seems to be faster for me if not dealing with graphics, however discussion 'why' is not part of the question. So I need to know how many pages of word document will be in LaTeX. I am using Calibri 8pt, but I would be happy to use more precise number. And of course I do realise all left and right margins being different. 80% of page count precision would satisfy me. I have seen similar questions, but I really don't want to annoy myself by downloading the LaTeX fonts and then fetching them into Word, what I want is the font and the size that definitely exists in Word and looks similar. As I will still go to mighty LaTeX realm afterwards.


title: Texstudio bibliography templates

text: When I use the `Texstudio` tools for generating bibliography commands (in the `biber` setup I guess), I get the following style of keys:               OPTmaintitleaddon = {maintitleaddon},     OPTlanguage = {language},     OPToriglanguage = {origlanguage},     OPTvolume = {volume},     OPTpart = {part},     OPTedition = {edition},     OPTvolumes = {volumes},      Does anyone know what this `OPT` thing is, and why does `Texstudio` uses it?


title: Did I misunderstand \RequirePackage? I don’t understand an option clash

text: Have a look at the following example, please.               \documentclass{article}          \usepackage{filecontents}     \begin{filecontents}{my.sty}        \RequirePackage{xcolor}     \end{filecontents}          \RequirePackage{my}     \usepackage[cmyk]{xcolor}          \begin{document}        Content     \end{document}      I expect this to compile, but it reports an option clash. I thought there could be only an option clash if I try to load a package with _different_ options and that there's no clash if the package is loaded multiple times and _one_ time with options. Is that wrong? I know that I could fix this by changing the order of `my` and `xcolor` but I can think about cases where I can’t influence the order (e.g. `my` is loaded internally by the document class). I found \RequirePackage without option clashes because of the package loading order? where Herbert gave the solution to split the package loading, which won’t work in my case. And I asked catoptions causes option clash with xcolor, which is possibly a duplicate, a few minutes ago …


title: Disable automatic indenting on description items

text: Here's the default functionality for `description` items: ![enter image description here](http://i.stack.imgur.com/7HCnY.png) With this code               \begin{description}         \item Lorem ipsum...     \end{description}      Is there any way to make this flush all along the left side with no automatic indentation?


title: glossaries and REnewglossaryentry

text: I haven't found anywhere and I wonder is there or would it be very hard to provide a command `\REnewglossaryentry[2]` for the `glossaries` package. Name for the **_desired command_** is kinda _self explanatory_ , but bellow is a wanna-be-MWE of what I am looking to achieve:               % !TEX TS-program = arara     % !TEX encoding = UTF-8 Unicode     % arara: xelatex     % arara: makeglossaries     % arara: xelatex     % arara: makeglossaries     % arara: xelatex     % arara: xelatex          \documentclass[a4paper,12pt,onecolumn,oneside,openright]{book}     \pagestyle{plain}           \usepackage[%         xindy,%         acronym,%         toc=true,%         shortcuts,%         style=altlist,         sanitize={%             name=false,%             description=false,%             symbol=false%             }%         ]{glossaries}              \makeglossaries          \newglossaryentry{somethingGloss}{         name            = {something},         description     = {some\ldots{} description},         sort            = {something}     }          \newglossaryentry{aSTH}{         type            = {\acronymtype},         name            = {aSTH{\protect\glsadd{electroencephalographyGloss}\protect\index{electroencephalography}}},         first           = {a something (STH){\protect\glsadd{electroencephalographyGloss}\protect\index{electroencephalography}}},         description     = {some\ldots{} description},         see             = [see Glossary:]{somethingGloss},         sort            = {aSTH}         }          % % % % % %      \newcommand{\REnewglossaryentry}[2]{%         some serious stuff here%         to REset the the key-val list%         for a label given!}          \begin{document}              \glsaddall              \gls{aSTH}, subsequent \gls{aSTH} is \gls{somethingGloss}               \REnewglossaryentry{label}{new key-val list}              % % % % % %          \REnewglossaryentry{aSTH}{ % % % command desired to REset the key-val list!             type            = {\acronymtype},             name            = {aSTH{\protect\index{electroencephalography}}},             first           = {a something (STH)}},             description     = {some\ldots{} NEW description},             see             = [see Glossary:]{somethingGloss},             sort            = {aSTH}             }              \printglossary              \printglossary[type=\acronymtype]              \REnewglossaryentry{somethingGloss}{new key-val list} % allow to         % change the properties for the somethingGloss to be shown         % in the new occurence of the glossary         % (sort of a test for the \REnewglossaryentry)              \printglossary          \end{document}      Using `name = {aSTH{\protect\glsadd{electroencephalographyGloss} \protect \index{electroencephalography}}},` saves a lot of typing hassle in the document body but gets me into serious trouble when typesetting the **Glossary** I have tried to produce a minimal example of that trouble, but (contrary) this little-awkward-bastard worked fine, opposite to what my document does when I introduce the `\protect\glsadd{...}` in the `name` key. In such case typically page numbers for the references inside of the **Glossary** are getting all twisted and screwed. And one doesn't really need the extra cross-reference functionality in the glossary since we have the `see=` key and the `\glshyperlink{}` available... Therefore updating at least `name=` and `first=` for an entry (label) just before printing of the **Glossaries** would alleviate problems with cross- reference-loops, etc. Also, I think that such command may provide various other usability benefits...


title: Using \tag in unnumbered versions

text: According to the `amsmath` documentation (section 3.1, page 7) > `\tag` and `\tag*` can also be used within the unnumbered versions of all > the amsmath alignment structures It provides no examples (surprise!). But my code               \documentclass[12pt,fleqn,reqno]{article}     \usepackage{amsfonts,graphics,epsfig,cite}     \usepackage{amsmath,graphicx,amssymb,amsthm}     \begin{document}     \begin{align*}         \mathbf{u}(t) &= 2\sum_{n=1}^N A_n \cos(k_n t) \mathbf{v}_n \\             &= 2\left(A_2 \cos(k_2 t)\mathbf{v}_2 + A_N \cos(k_N t)\mathbf{v}_N\right) \\             &= 2\left(A_2 \cos(k_2 t)\mathbf{v}_2 + A_2^* \cos(k_2 t)\mathbf{v}_2^*\right) \\             &= 2 \cos(k_2 t) \left(A_2 \mathbf{v}_2 + A_2^* \mathbf{v}_2^*\right) \\             &= 2 \cos(k_2 t) \big(A_2 \mathbf{v}_2 + (A_2 \mathbf{v}_2)^*\big) \\             &= 2 \cos(k_2 t) 2 \Re(A_2 \mathbf{v}_2) \\             &= 4 \cos(k_2 t) \Re(A_2 \mathbf{v}_2) \\     ... \\         \mathbf{u}(t) &= \cos(k_2 t) \mathbf{u}(0) \tag{eq:exactSolution}     .\end{align*}     The velocities at time $t$ is the derivative of \eqref{eq:exactSolution}     \begin{equation*}         \mathbf{\dot{u}}(t) = -k_2 \sin(k_2 t) \mathbf{\dot{u}}(0).     \label{eq:}     \end{equation*}     \end{document}      generates the warning > Reference 'eq:exactSolution' on page 1 undefined on input line 16 even though "eq:exactSolution" is defined 2 lines above the warning. _Please tell me how to fix this_.


title: Division by 0 when combining tikzpicture and resizebox

text: To draw a larger tree, I tried to use               \documentclass[11pt]{article}     \usepackage{tikz-qtree, tikz-qtree-compat}     \tikzset{every tree node/.style={align=center, anchor=north}}     \usetikzlibrary{positioning}          \begin{document}     \begin{tikzpicture}     \resizebox{\linewidth}{!}{%     \Tree [.CP  ]      }     \end{tikzpicture}     \end{document}      This gives a division by 0 error. However, without the `tikzpicture` environment, it works just fine.               \documentclass[11pt]{article}     \usepackage{tikz-qtree, tikz-qtree-compat}     \tikzset{every tree node/.style={align=center, anchor=north}}     \usetikzlibrary{positioning}          \begin{document}     \resizebox{\linewidth}{!}{%     \Tree [.CP  ]      }     \end{document}


title: Defining a particular environment in LaTeX

text: I need help writing an Example environment. I just want it to look like the figure below which I took from an old book I have in my library. ![enter image description here](http://i.stack.imgur.com/F40Hb.jpg) This is what I have done.                   \newtheorem{exem}{EXAMPLE}              \newenvironment{ex}{\parshape=3         0\textwidth \textwidth         0.25\textwidth 0.74\textwidth         0pt \textwidth \begin{exem} \rm \hspace{0.2cm}}{\end{exem}}              \begin{document}             \begin{ex}             Text             \end{ex}         \end{document}       However this code fails when the text is very long in the defined environment. Then I start having problems with right margin. I have no idea how to solve it. Please, can you help me to define that environment?


title: How do I typeset a table with a caption within a tabularx within another table with a caption?

text: Unfortunately, it keeps bugging me with `forgotten \endgroup`, `float(s) lost`, `not in outer par mode` and so on. In other words, why can't I do something like this (the actual table is significantly more complex with rules and stuff):               \documentclass{article}          \usepackage{blindtext}     \usepackage{tabularx}          \begin{document}          \begin{table}       \begin{tabularx}{\textwidth}{X}         \begin{table}           \begin{tabularx}{\textwidth}{X}             \blindtext           \end{tabularx}           \caption{Inner table}         \end{table}       \end{tabularx}       \caption{Outer table}     \end{table}          \end{document}


title: Help using MathTime Pro 2 fonts in Ubuntu Linux with tex-live

text: I installed the MTPro2 fonts in Ubuntu 12.04 by extracting the MTPro2 ZIP file into a directory called "mathtime" and then doing the following:               sudo mv mathtime/* /usr/local/share/texmf/     cd /usr/local/share/texmf/     sudo texhash     sudo updmap --disable mt-belleek.map --nomkmap     sudo updmap --disable belleek.map --nomkmap     sudo updmap --disable mt-yy.map --nomkmap     sudo updmap --disable mt-plus.map --nomkmap     sudo updmap --enable Map mtpro2.map     sudo chmod -R a+r+x /usr/local/share/texmf/      However, when trying to compile a LaTeX document that uses the MTPro2 fonts, I get the following:               Document Class: article 2007/10/19 v1.4h Standard LaTeX document class     (/usr/share/texmf-texlive/tex/latex/base/size10.clo)) (./mtpro2.sty     kpathsea: Running mktextfm mt2exa     mktextfm: Running mf-nowin -progname=mf \mode:=ljfour; mag:=1;     nonstopmode; input mt2exa     This is METAFONT, Version 2.718281 (TeX Live 2009/Debian)          kpathsea: Running mktexmf mt2exa     ! I can't find file `mt2exa'.     <*> ...:=ljfour; mag:=1; nonstopmode; input mt2exa      There are more messages before and after the portion shown immediately above, but I think this is the most relevant portion. Everything used to work fine under Ubuntu 11.10, but I recently installed Ubuntu 12.04 on a new machine, and now I can't get the MTPro2 fonts to work. Help! :) **[Below is a full directory-hierarchical list of the contents of the MTPro2 ZIP file.]**               .     ├── EULA.txt     ├── templates     │   ├── LaTeX Article MTPro2Lite.tex     │   ├── LaTeX Article MTPro2.tex     │   ├── MTPro2 LaTeX test.tex     │   └── Plain MTPro2.tex     └── texmf         ├── doc         │   └── fonts         │       └── mtpro2         │           ├── EULA.txt         │           ├── guide2.pdf         │           ├── mtpro2.pdf         │           ├── Test_latex.pdf         │           └── Test_latex.tex         ├── dvips         │   └── mtpro2         │       └── mtpro2.map         ├── fonts         │   ├── map         │   │   └── dvips         │   │       └── mtpro2         │   │           └── mtpro2.map         │   ├── tfm         │   │   └── pctex         │   │       └── mtpro2         │   │           ├── mt2bbdf.tfm         │   │           ├── mt2bbds.tfm         │   │           ├── mt2bbdt.tfm         │   │           ├── mt2bbf.tfm         │   │           ├── mt2bbif.tfm         │   │           ├── mt2bbis.tfm         │   │           ├── mt2bbit.tfm         │   │           ├── mt2bbs.tfm         │   │           ├── mt2bbt.tfm         │   │           ├── mt2bexa.tfm         │   │           ├── mt2bmff.tfm         │   │           ├── mt2bmfs.tfm         │   │           ├── mt2bmft.tfm         │   │           ├── mt2bmif.tfm         │   │           ├── mt2bmis.tfm         │   │           ├── mt2bmit.tfm         │   │           ├── mt2bmsf.tfm         │   │           ├── mt2bmss.tfm         │   │           ├── mt2bmst.tfm         │   │           ├── mt2bsyaf.tfm         │   │           ├── mt2bsyas.tfm         │   │           ├── mt2bsyat.tfm         │   │           ├── mt2bsyf.tfm         │   │           ├── mt2bsys.tfm         │   │           ├── mt2bsyt.tfm         │   │           ├── mt2exa.tfm         │   │           ├── mt2exe.tfm         │   │           ├── mt2exf.tfm         │   │           ├── mt2exg.tfm         │   │           ├── mt2hbif.tfm         │   │           ├── mt2hbis.tfm         │   │           ├── mt2hbit.tfm         │   │           ├── mt2hexa.tfm         │   │           ├── mt2hrbdf.tfm         │   │           ├── mt2hrbds.tfm         │   │           ├── mt2hrbdt.tfm         │   │           ├── mt2hrbf.tfm         │   │           ├── mt2hrbs.tfm         │   │           ├── mt2hrbt.tfm         │   │           ├── mt2hsyaf.tfm         │   │           ├── mt2hsyas.tfm         │   │           ├── mt2hsyat.tfm         │   │           ├── mt2hsyf.tfm         │   │           ├── mt2hsys.tfm         │   │           ├── mt2hsyt.tfm         │   │           ├── mt2mbf.tfm         │   │           ├── mt2mbs.tfm         │   │           ├── mt2mbt.tfm         │   │           ├── mt2mcf.tfm         │   │           ├── mt2mcs.tfm         │   │           ├── mt2mct.tfm         │   │           ├── mt2mff.tfm         │   │           ├── mt2mfs.tfm         │   │           ├── mt2mft.tfm         │   │           ├── mt2mif.tfm         │   │           ├── mt2mis.tfm         │   │           ├── mt2mit.tfm         │   │           ├── mt2msf.tfm         │   │           ├── mt2mss.tfm         │   │           ├── mt2mst.tfm         │   │           ├── mt2syaf.tfm         │   │           ├── mt2syas.tfm         │   │           ├── mt2syat.tfm         │   │           ├── mt2syf.tfm         │   │           ├── mt2sys.tfm         │   │           ├── mt2syt.tfm         │   │           ├── mt2xl.tfm         │   │           └── mt2xxxl.tfm         │   └── type1         │       └── pctex         │           └── mtpro2         │               ├── mt2bbdf.pfb         │               ├── mt2bbdf.pfm         │               ├── mt2bbds.pfb         │               ├── mt2bbds.pfm         │               ├── mt2bbdt.pfb         │               ├── mt2bbdt.pfm         │               ├── mt2bbf.pfb         │               ├── mt2bbf.pfm         │               ├── mt2bbif.pfb         │               ├── mt2bbif.pfm         │               ├── mt2bbis.pfb         │               ├── mt2bbis.pfm         │               ├── mt2bbit.pfb         │               ├── mt2bbit.pfm         │               ├── mt2bbs.pfb         │               ├── mt2bbs.pfm         │               ├── mt2bbt.pfb         │               ├── mt2bbt.pfm         │               ├── mt2bexa.pfb         │               ├── mt2bexa.pfm         │               ├── mt2bmff.pfb         │               ├── mt2bmff.pfm         │               ├── mt2bmfs.pfb         │               ├── mt2bmfs.pfm         │               ├── mt2bmft.pfb         │               ├── mt2bmft.pfm         │               ├── mt2bmif.pfb         │               ├── mt2bmif.pfm         │               ├── mt2bmis.pfb         │               ├── mt2bmis.pfm         │               ├── mt2bmit.pfb         │               ├── mt2bmit.pfm         │               ├── mt2bmsf.pfb         │               ├── mt2bmsf.pfm         │               ├── mt2bmss.pfb         │               ├── mt2bmss.pfm         │               ├── mt2bmst.pfb         │               ├── mt2bmst.pfm         │               ├── mt2bsyaf.pfb         │               ├── mt2bsyaf.pfm         │               ├── mt2bsyas.pfb         │               ├── mt2bsyas.pfm         │               ├── mt2bsyat.pfb         │               ├── mt2bsyat.pfm         │               ├── mt2bsyf.pfb         │               ├── mt2bsyf.pfm         │               ├── mt2bsys.pfb         │               ├── mt2bsys.pfm         │               ├── mt2bsyt.pfb         │               ├── mt2bsyt.pfm         │               ├── mt2exa.pfb         │               ├── mt2exa.pfm         │               ├── mt2exe.pfb         │               ├── mt2exe.pfm         │               ├── mt2exf.pfb         │               ├── mt2exf.pfm         │               ├── mt2exg.pfb         │               ├── mt2exg.pfm         │               ├── mt2hbif.pfb         │               ├── mt2hbif.pfm         │               ├── mt2hbis.pfb         │               ├── mt2hbis.pfm         │               ├── mt2hbit.pfb         │               ├── mt2hbit.pfm         │               ├── mt2hexa.pfb         │               ├── mt2hexa.pfm         │               ├── mt2hrbdf.pfb         │               ├── mt2hrbdf.pfm         │               ├── mt2hrbds.pfb         │               ├── mt2hrbds.pfm         │               ├── mt2hrbdt.pfb         │               ├── mt2hrbdt.pfm         │               ├── mt2hrbf.pfb         │               ├── mt2hrbf.pfm         │               ├── mt2hrbs.pfb         │               ├── mt2hrbs.pfm         │               ├── mt2hrbt.pfb         │               ├── mt2hrbt.pfm         │               ├── mt2hsyaf.pfb         │               ├── mt2hsyaf.pfm         │               ├── mt2hsyas.pfb         │               ├── mt2hsyas.pfm         │               ├── mt2hsyat.pfb         │               ├── mt2hsyat.pfm         │               ├── mt2hsyf.pfb         │               ├── mt2hsyf.pfm         │               ├── mt2hsys.pfb         │               ├── mt2hsys.pfm         │               ├── mt2hsyt.pfb         │               ├── mt2hsyt.pfm         │               ├── mt2mbf.pfb         │               ├── mt2mbf.pfm         │               ├── mt2mbs.pfb         │               ├── mt2mbs.pfm         │               ├── mt2mbt.pfb         │               ├── mt2mbt.pfm         │               ├── mt2mcf.pfb         │               ├── mt2mcf.pfm         │               ├── mt2mcs.pfb         │               ├── mt2mcs.pfm         │               ├── mt2mct.pfb         │               ├── mt2mct.pfm         │               ├── mt2mff.pfb         │               ├── mt2mff.pfm         │               ├── mt2mfs.pfb         │               ├── mt2mfs.pfm         │               ├── mt2mft.pfb         │               ├── mt2mft.pfm         │               ├── mt2mif.pfb         │               ├── mt2mif.pfm         │               ├── mt2mis.pfb         │               ├── mt2mis.pfm         │               ├── mt2mit.pfb         │               ├── mt2mit.pfm         │               ├── mt2msf.pfb         │               ├── mt2msf.pfm         │               ├── mt2mss.pfb         │               ├── mt2mss.pfm         │               ├── mt2mst.pfb         │               ├── mt2mst.pfm         │               ├── mt2syaf.pfb         │               ├── mt2syaf.pfm         │               ├── mt2syas.pfb         │               ├── mt2syas.pfm         │               ├── mt2syat.pfb         │               ├── mt2syat.pfm         │               ├── mt2syf.pfb         │               ├── mt2syf.pfm         │               ├── mt2sys.pfb         │               ├── mt2sys.pfm         │               ├── mt2syt.pfb         │               ├── mt2syt.pfm         │               ├── mt2xl.pfb         │               ├── mt2xl.pfm         │               ├── mt2xxxl.pfb         │               └── mt2xxxl.pfm         ├── source         │   └── latex         │       └── mtpro2         │           ├── mtpro2.dtx         │           └── mtpro2.ins         ├── tex         │   ├── latex         │   │   └── mtpro2         │   │       ├── mtpro2.sty         │   │       ├── omslbm.fd         │   │       ├── umt2bb.fd         │   │       ├── umt2hrb.fd         │   │       ├── umt2mf.fd         │   │       └── umt2ms.fd         │   └── plain         │       └── mtpro2         │           └── mtp2.tex         └── tpm             └── package                 └── mtp2fonts.tpm          27 directories, 226 files


title: Incorrect output while making bib file

text: Here is one of my bib entry               @InProceedings{linden,     author = {F. Van Der Linden, J. Bosch, E. Kamsties, K. K{\"a}ns{\"a}l{\"a} and Henk Obbink},     title = {Software Product Family Evaluation},     booktitle = {Software Product-Family Engineering, 5th International Workshop, PFE 2003},     address = {Siena, Italy},     month = {November},     year = {2004},     pages = {352-369}     }      and this is the output               [F. Van Der Linden and Obbink(2004)] F Van Der Linden EKKK J Bosch, Obbink H (2004)     Software product family evaluation. In: Software Product-Family Engineering, 5th International     Workshop, PFE 2003, Siena, Italy, pp 352{369      If you see it has just put EKKK JBosh etc instead of full E. Kamsties etc . Also the special chracters K{\"a} aren't read properly in bibliographies. I have tried the IEEETran and even Springer latex templates to fix it but in vain. I am using TexMaker and MikTex2.9 for making these files. Urgent Help required


title: Eledmac line numbering out of margin at top of column (memoir)

text: I'm using `eledmac` to typeset a document with two columns in memoir. The first line number at the top of the right column continues to be placed to the left of the column, as it was with the left column, rather than in the margin to the right. The same is true for the left column beginning on the second page (its first line number continues from the right column on the preceding page to be placed to the right of the column). I thought of using the `multicol` package, but I need to use `eledmac` for the line numbering / critical apparatus. I also tried `eledmac`'s `\linenummargin` command, but without success. Sure I must be missing an easy workaround. Appending a MWE:               \documentclass[letterpaper,12pt,twocolumn,landscape]{memoir}     \usepackage{polyglossia}     \usepackage[parapparatus]{eledmac}     \usepackage{lipsum}     \usepackage{verse}     \setlrmarginsandblock{.75in}{.75in}{1}      \setulmarginsandblock{.75in}{.75in}{1}      \checkandfixthelayout      \setcolsepandrule{28pt}{0pt}     \setcounter{firstlinenum}{1}     \setcounter{linenumincrement}{2}     \lineation{page}     \linenummargin{right}          \begin{document}     \chapter*{Hello World}     \beginnumbering     \pstart     \lipsum     \pend     \endnumbering     \end{document}      and images of the much improved result thanks to David Carlisle's helpful responses (now it is just the top # on most pages that is off): ![lipsum ex.](http://i.stack.imgur.com/zGgA6.png) ![my actual doc](http://i.stack.imgur.com/Gj0BP.png)


title: Custom variables defined in preamble

text: I am trying to define some variables in the preamble so they are initialized there and then printed in the text body. Here is what I tried               \documentclass[a4paper,11pt]{article}     \usepackage[utf8]{inputenc}     \usepackage[T1]{fontenc}     \usepackage[frenchb]{babel}          \newcommand{\cost}[1]{\def\@cost{#1}}     \newcommand{\refArticle}[1]{\def\@refArticle{#1}}          \cost{400}     \refArticle{TOTO01}          \begin{document}          This is a non-working test; it will cost \@cost dollars to buy \@refArticle.          \end{document}      It did not work. I got an error               ! Use of \@ doesn't match its definition.      Which buggers me, since               \documentclass[a4paper,11pt]{article}     \usepackage[utf8]{inputenc}     \usepackage[T1]{fontenc}     \usepackage[frenchb]{babel}          \newcommand{\cost}[1]{\def\@cost{#1}}     \newcommand{\refArticle}[1]{\def\@refArticle{#1}}          \cost{400}     % \refArticle{TOTO01}          \begin{document}          This is a working test; it will cost \@cost to buy what you want.          \end{document}      works. I probably missed something with variable definitions. Have you any idea of what can be wrong with my approach?


title: Font display error in windows

text: I encountered the following while trying to process my PDF document from LaTeX, MiKTeX 2.9               Trying to make PK font mathkerncmssi8 at 600DPI...          Running miktex-makemf.exe...           miktex-makemf: The mathkerncmssi source file could not be found. Running tt2pk.exe...          make-makepk: PK font mathkerncmssi8 could not be created.      Process exited with errors


title: Perfect-centering characters in a box

text: I have made in Inkscape a page layout with some boxes here and there that should contain a single Kanji character. These Kanji should be horizontally and vertically centered in the box. At the very middle of the boxes I have put a text box whit a dummy latex function name (like \MyBox), then I have exported the layout by using the pdf+latex option. Here a MWE (XeLaTeX):               \documentclass[12pt]{letter}          \usepackage[margin=0cm, a5paper]{geometry}     \usepackage{adjustbox}     \usepackage{fontspec}          \newfontfamily{\fontK}[Scale=2.00]{epkyouka.ttf}          \newcommand{\MyBox}{}%               \begin{document}          \def\svgwidth{\paperwidth}          \pagestyle{empty}     \renewcommand{\MyBox}{\fontK{一}}     %\renewcommand{\MyBox}{\fontK{日}}     \centerline{\input{layout.pdf_tex}}          \end{document}       Layout.pdf_tex:               \begingroup%       \makeatletter%       \providecommand\color[2][]{%         \errmessage{(Inkscape) Color is used for the text in Inkscape, but the package 'color.sty' is not loaded}%         \renewcommand\color[2][]{}%       }%       \providecommand\transparent[1]{%         \errmessage{(Inkscape) Transparency is used (non-zero) for the text in Inkscape, but the package 'transparent.sty' is not loaded}%         \renewcommand\transparent[1]{}%       }%       \providecommand\rotatebox[2]{#2}%       \ifx\svgwidth\undefined%         \setlength{\unitlength}{595.27558594bp}%         \ifx\svgscale\undefined%           \relax%         \else%           \setlength{\unitlength}{\unitlength * \real{\svgscale}}%         \fi%       \else%         \setlength{\unitlength}{\svgwidth}%       \fi%       \global\let\svgwidth\undefined%       \global\let\svgscale\undefined%       \makeatother%       \begin{picture}(1,1.4142857)%         \put(0,0){\includegraphics[width=\unitlength]{layout.pdf}}%         \put(0.06949339,1.29607556){\color[rgb]{0,0,0}\makebox(0,0)[lt]{\begin{minipage}{0.05495935\unitlength}\centering \MyBox\end{minipage}}}%       \end{picture}%     \endgroup%      In order to get, e.g., 日 centered, I had to shift the text box in Inkscape a little bit down, but seems that 一 needs some more down shifting to be centered. I suppose my problem is all about baseline alignment. There is a way to obtain what I need? **EDIT** So, as usual I have found a dirty workaround right after I have promoted a bounty for my question :) Long story short:               \renewcommand{\MyBox}{\fontK{一\phantom{日}}}      sounds good to me, but still a hack. What's the proper way to proceed?


title: How can I use monospaced font inside a matrix (or tabular etc)?

text: I would like to display a matrix with characters using monospaced font (as in `\tt` and `\mathtt`), but I haven't found an easy way to do it. Something like this:               \begin{center}{\tt\left(     \begin{tabular}{cccc}       A & B & C & D\\       E & F & G & H\\       I & J & K & L     \end{tabular}\right)}.     \end{center}      But this won't work, because I used `\left(` and `\right)` outside math environment.               \[     {\mathtt     \begin{pmatrix}       A & B & C & D\\       E & F & G & H\\       I & J & K & L     \end{pmatrix}     }     \]      This one won't work either:               ! Missing \endcsname inserted.      I know I can do this by using `{\mathtt A} & {\mathtt B}`, and so on, for each matrix element, but that would be really a pain (I have more matrices). Is there a simple way to do this?


title: TikZ+beamer, referencing node outside current picture, inside overprint environment

text: In `beamer`, when I try to reference a node outside the current picture but inside an `overprint`-environment, like this,               \documentclass[12pt]{beamer}     \usepackage{tikz}     \begin{document}     \begin{frame}     \begin{overprint}     \begin{tikzpicture}[remember picture]      \node<1->[draw] (xxx) at (0,0) {Spam};      \node<2->[draw] (yyy) at (1, 1) {Eggs};     \end{tikzpicture}     Some text, tra la la.     \tikz<2>[remember picture] \draw[overlay,->] (xxx.north) -- (yyy.south);     \end{overprint}     \end{frame}     \end{document}      and compiling with `pdfTeX, Version 3.1415926-2.3-1.40.12 (TeX Live 2011)`, using `beamer 2011/09/12 development version 3.12`, `tikz 2010/10/13 v2.10 (rcs-revision 1.76)`, I receive the following error message:               ! Package pgf Error: No shape named yyy is known.      My questions:   * Is it possible to refer to a node inside an `overprint`-environment?   * If yes, how?   * If no, is this a fundamental limitation, or a limitation to the current implementation?   * Why is this? Related but different questions:   * How to make beamer overlays with Tikz node   * Is it possible to create overlays in beamer inside pgfplots graphics?


title: A screenplay with two columns only in some pages. And in one page there can be a mixed number of column

text: I would like to write a screenplay like this one: http://www.dailyscript.com/scripts/sunset_bld_3_21_49.html My needs are: some pages has one column some pages has two column some pages are like this one:               more lines spanning all the page width     a first column         a second column     more lines spanning all the page width      Is there any package suitable for my needs?


title: caption in a tikz object

text: I created markov's chain using `tikz` package. Now I would add to to it caption and label but I got error.How can I add a caption and a label to a tikz object?


title: Conflict: kluwer and amsmath

text: When I try to use the document class `kluwer` together with `amsmath` there seems to be a conflict. Is is possible to avoid this conflict? I have tried to add `\let\iint\noexists` before loading `amsmath` as suggested in http://groups.google.com/group/comp.text.tex/browse_thread/thread/b57ac7fcbffa5120/9afe4da0cacfffdf but that doesn't help. Here's an example. The following               \documentclass{kluwer}          %\let\iint\noexists      \usepackage{amsmath}          \begin{document}          Bla bla bla          \end{document}      gives the following error               ERROR: LaTeX Error: Command `\iint` already defined.


title: How to renew \chapter command to include endnotes (i.e., \printnotes)

text: I'm using the `pagenote` package to put my endnotes at the end of every chapter. For example, see the accepted answer for this question: How does one get endnotes at the end of every chapter? In short:               \chapter{First Chapter}      some text     \printnotes*      How can I renew the `\chapter` command so that I don't have to include `\printnotes*` at the end of every chapter? I don't want to make the `\printnotes*` command happen before the `\chapter` command because then I'll get notes before the first chapter (which doesn't make sense).


title: How to have headers, section headings, and figures expand into the margin?

text: I am interested in the following page layout. ![](http://i.stack.imgur.com/8IOMm.png)   1. How to have headers in margins (up to margin)    2. Is it possible to start section headings from margin   3. How to set figures occupy the margins. I can make an MWE as given below                   \documentclass[12pt,a4paper]{scrbook}          \usepackage[demo]{graphicx}          \usepackage[calcwidth]{titlesec}          %\titleformat{\section}[leftmargin]     %{\normalfont     %\sffamily\bfseries\filleft}     %{}{0pt}{}     %\titlespacing{\section}     %{4pc}{1.5ex plus .1ex minus .2ex}{1pc}          \newlength\mylen     \setlength\mylen{\dimexpr\oddsidemargin+1in+\hoffset\relax}          \titleformat{\section}       {\normalfont\Large\bfseries}       {\llap{\hspace*{-\mylen}\thesection\hfill}}{0em}{}       [{\makebox[\linewidth][l]{%         \hspace*{-\mylen}\rule{\dimexpr\textwidth+\mylen\relax}{1pt}}}]          %titleps is alternate for fancyhdr     %     \usepackage{titleps}          %\newpagestyle{main}[\small\sffamily]{     \newpagestyle{main}{     \widenhead[4pc][0pt]{4pc}{0pt} %for scrbook     %\widenhead[6pc][0pt]{0pt}{6pc} %for scrbook     %\widenhead[0pt][6pc]{6pc}{0pt} %for scrartcl     \headrule     \sethead     [\textbf{\thepage}]     [\textsl{Title of the Book}]     []     {}     {\textsl{\chaptertitle}}     {\textbf{\thepage}}     }     \pagestyle{main}          \renewpagestyle{plain}[\small\sffamily]{     %\footrule     %\setfoot[\textbf{\thepage}]     \setfoot     []     []     []     {}     {}     %{\textbf{\thepage}}     {}     %     \sethead     [\textbf{\thepage}]     [\textsl{Title of the Book}]     []     {}     {}     {\textbf{\thepage}}     }                    \begin{document}          \chapter{Chapter title}          \clearpage          \section{Section title}               skjdfh jhsdf sdfk     sdfsdf skjdfh jhsdf sdfk     sdfsdf skjdfh jhsdf sdfk     sdfsdf skjdfh jhsdf sdfk     sdfsdf skjdfh jhsdf sdfk     sdfsdf skjdfh jhsdf sdfk     sdfsdf skjdfh jhsdf sdfk     sdfsdf skjdfh jhsdf sdfk     sdfsdf skjdfh jhsdf sdfk     sdfsdf skjdfh jhsdf sdfk     sdfsdf skjdfh jhsdf sdfk          sdfsdf skjdfh jhsdf sdfk     sdfsdf skjdfh jhsdf sdfk     sdfsdf skjdfh jhsdf sdfk     sdfsdf skjdfh jhsdf sdfk     sdfsdf skjdfh jhsdf sdfk     sdfsdf skjdfh jhsdf sdfk     sdfsdf skjdfh jhsdf sdfk     sdfsdf skjdfh jhsdf sdfk     sdfsdf skjdfh jhsdf sdfk     sdfsdf skjdfh jhsdf sdfk     sdfsdf skjdfh jhsdf sdfk     sdfsdf skjdfh jhsdf sdfk     sdfsdf skjdfh jhsdf sdfk     sdfsdf skjdfh jhsdf sdfk     sdfsdf          \section{ Section title}          %     \begin{figure}[hb]     %\centering     \includegraphics[width=0.2\linewidth]{}     %\label{fig:p6a}     \caption{Figure caption}     \end{figure}     %               skjdfh jhsdf sdfk     sdfsdf skjdfh jhsdf sdfk     sdfsdf skjdfh jhsdf sdfk     sdfsdf skjdfh jhsdf sdfk     sdfsdf skjdfh jhsdf sdfk     sdfsdf skjdfh jhsdf sdfk     sdfsdf skjdfh jhsdf sdfk          sdfsdf skjdfh jhsdf sdfk     sdfsdf skjdfh jhsdf sdfk     sdfsdf skjdfh jhsdf sdfk     sdfsdf skjdfh jhsdf sdfk     sdfsdf skjdfh jhsdf sdfk     sdfsdf skjdfh jhsdf sdfk     sdfsdf skjdfh jhsdf sdfk     sdfsdf skjdfh jhsdf sdfk     sdfsdf skjdfh jhsdf sdfk     sdfsdf skjdfh jhsdf sdfk     sdfsdf skjdfh jhsdf sdfk     sdfsdf skjdfh jhsdf sdfk     sdfsdf skjdfh jhsdf sdfk     sdfsdf skjdfh jhsdf sdfk     sdfsdf skjdfh jhsdf sdfk     sdfsdf skjdfh jhsdf sdfk     sdfsdf skjdfh jhsdf sdfk     sdfsdf skjdfh jhsdf sdfk     sdfsdf skjdfh jhsdf sdfk     sdfsdf skjdfh jhsdf sdfk          \clearpage          \section{title}     sdfsdf skjdfh jhsdf sdfk     sdfsdf skjdfh jhsdf sdfk     sdfsdf skjdfh jhsdf sdfk     sdfsdf skjdfh jhsdf sdfk     sdfsdf skjdfh jhsdf sdfk     sdfsdf skjdfh jhsdf sdfk     sdfsdf skjdfh jhsdf sdfk     sdfsdf skjdfh jhsdf sdfk     sdfsdf skjdfh jhsdf sdfk     sdfsdf skjdfh jhsdf sdfk     sdfsdf skjdfh jhsdf sdfk     sdfsdf skjdfh jhsdf sdfk     sdfsdf              \end{document}      The output : Even page ![enter image description here](http://i.stack.imgur.com/8ciTU.jpg) Odd page ![enter image description here](http://i.stack.imgur.com/kxwvb.jpg) > I want change the figure position to the margin... Possible Solution Place figures side by side, spill into outer margin


title: Sorting references alphabetically

text: I am trying to use a modified (German) bibstyle from the _American Economic Review_ (The original version can be downloaded from http://mirrors.ctan.org/biblio/bibtex/contrib/economic/aer.bst. I have simply replaced "and" by "und", "Vol." by "Bd.", "eds."/"ed." by "Hrsg." and normal quotes with German ones. ). The references appear in the format: " **Lastname, Firstname** " for the first author and " **Firstname Lastname** " for all others. The ordering of the references should be by the authors' last names; however if I have two papers written by three authors with the same first author Bibtex arranges them in an incorrect order: E.g. using Bibtex I get Felbermayr, Gabriel J., Julien _Prat_ und Hans-Jörg Schmerer .... Felbermayr, Gabriel J., Mario _Larch_ und Wolfgang Lechthaler .... That is given that the first author is identical, Bibtex sorts the papers by the second author's first name. However, I would like it to show up as Felbermayr, Gabriel J., Mario Larch und Wolfgang Lechthaler ....   Felbermayr, Gabriel J., Julien Prat und Hans-Jörg Schmerer .... Moreover, I get a similar problem if there is one paper written by two authors and those very same authors have written another paper together with a third author. For instance, I get: Helpman, Elhanan, Oleg Itskhoki und Stephen J. Redding... in front of Helpman, Elhanan, und Oleg Itskhoki..., which is the wrong order. Can anyone help me with this? ## MWE `Test.tex`:               \documentclass[%     fontsize=12pt,                              % Schriftgr??e (12pt, 11pt (Standard))     titlepage,                      % Titelei auf eigener Seite     headings=small,         % Überschriften etwas kleiner (smallheadings)     ]{scrartcl}               \usepackage{setspace}     \usepackage{amsmath}     \usepackage{pdfpages}          %% Deutsche Anpassungen %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     \usepackage[T1]{fontenc}     \usepackage[ansinew]{inputenc}     \usepackage[ngerman]{babel}          \usepackage{geometry}      \geometry{a4paper, top=25mm, left=40mm, right=20mm, bottom=20mm}           \usepackage{mathptmx}     \usepackage{mathspec}     \setromanfont{Times New Roman}     \addtokomafont{disposition}{\rmfamily}     \usepackage{graphicx} %%Zum Laden von Grafiken     \usepackage{color}     \makeatletter                \usepackage{titlesec}     \usepackage{hyperref}          %% Bibliographiestil %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     \usepackage{natbib}     \bibliographystyle{aer_german3}     \renewcommand*{\bibfont}{\footnotesize}     \setlength{\bibsep}{0.0pt}          \setlength{\footskip}{1cm}     \setmainfont[Mapping=tex-text]{Times New Roman}     \usepackage{unicode-math} \setmathfont{XITS Math}               \makeatother          \makeatletter     \renewcommand{\@makefntext}[1]{\setlength{\parindent}{0pt}%     \begin{list}{}{%     \setlength{\topsep}{0pt}%     \setlength{\partopsep}{0pt}%     \settowidth{\labelwidth}{00\@thefnmark}%     % ^^ Anzahl_Nullen =df. Abstand     \setlength{\labelsep}{0.7pt}%     \setlength{\leftmargin}{\labelwidth}%     \addtolength{\leftmargin}{\labelsep}%     \footnotesize}\item[\@makefnmark\hfill]#1%     \end{list}}     \makeatother               \begin{document}     TEXT \citep{Felbermayr.2011} \citep{Felbermayr.2013} \citep{HELPMAN.2010} \citep{Helpman.2010c}     \bibliography{BA2-MWE}     \end{document}      The files `aer-german3.bst` and `BA2-MWE.bib` can be found here. ## **ADDITIONAL COMMENT: Using the original English bibstyle resolves the latter problem, but not the first one.** By the way, I am using Texmaker together with MikTex


title: Fine-tuning footnote style

text: I need to get a grip on a custom footnote command that could be sum up by this couple of `xparse` commands:               \documentclass[11pt, a4paper, frenchb]{report}         \usepackage{xparse}         \newcounter{myfnCnt}              % % % % % % % % MYFOOTNOTE % % % % % % % %         % #1 footnote content         \ProvideDocumentCommand \myfootnote{ m }         {%  MARK             \stepcounter{myfnCnt}\hspace{.1cm}\myfnmark%          %  FOOTNOTE             {\let\thefootnote\relax\footnote{\myfnmark~#1}}         }              % % % % % % % % MYFNMARK % % % % % % % %         %         \ProvideDocumentCommand \myfnmark{}         {\texttrademark\textsuperscript{ \arabic{myfnCnt}}}          \begin{document}     They see me rollin\myfootnote{they hatin}     Son, they shook\footnote{Cause ain't no such things as halfway crooks}     \end{document}      The above commands do actually provide a reasonable solution meaning : the ability to tune a custom style around counters. But it's missing hyperlinks. I can do it manually but I was seeking a more elegant and robust solution, whether custom commands or "package-based". I looked into manyfoot and bigfoot but I don't think they can do it or I'm missing something (probably...). For instance the `\DeclareNewFootnote[⟨footnote style⟩]{⟨suffix⟩}[⟨enumeration style⟩]` is "fixed" customization, you can't provide your own footnote style.


title: Procedure to write questions

text: I want to write a LaTeX file in which a question appears after compilation as **Question 1** if i write `\begin{Question} \end{Question}` But then i would like to write answer for that and in that case i do not want the result after compilation to be **Solution 1** but as just solution... Please suggest something for this... EDIT : I tried               \begin{Question}          XY**          \end{Question}      after compiling I am getting the outcome as **Question 1 : XY**** But then i would like to write answer for this.. If i include the Solution the output, after compiling, in PDF file is not in exactly below the question but it is a bit right of the page.. Something like > Question 1 : XY > > gap here Solution


title: Import pdf image into LaTeX file

text: I am trying to insert some ready image-pdf files to my LaTeX code but failed. My code is               \documentclass[a4paper,12pt]{book}     \usepackage{graphicx}     \graphicspath{{/Cathay/Desktop/build/Cathay1/}{C:\Users}}     \begin{figure}     \centering     \includegraphics[height=5cm]{Cathay1.pdf}     \caption{text}     \end{figure}     \end{document}      The pic didn't show up after I put this code. Instead, the text follows this code just disappeared. Could anyone tell me the right code for inserting this pdf?


title: Command \longtable* already defined

text: When I compiling latex the following error occurred. Can any one help on this?                ! LaTeX Error: Command \longtable* already defined.                    Or name \end... illegal, see p.192 of the manual.          See the LaTeX manual or LaTeX Companion for explanation.     Type  H <return>  for immediate help.


title: Formatting crystallographic indices

text: I would like to make a command in LaTeX that can be used like this:               \zoneaxis{1 2 -3}     \zoneaxis{2 -1 -1 10}      and would produce this:               $[1\,2\,\overline{3}]$     $[2\,\overline{1}\,\overline{1}\,10]$      That is, the three or four numbers are set into brackets, any minus signs are set as overlines, and there is a little space between the numbers. It seems like I would have to get into character-by-character parsing, but I have no idea where to look for how to do that. Does something like this already exist? If not, where could I find out how to do this?


title: LaTeX3: Defining key to set boolean variable

text: I want to define a key, which, if set, sets a boolean variable to **false**. The documentation is not clear on that point. It states (source3.pdf, sect. 87, p. 134): > Defines `<key>` to set `<bool>` to `<value>` (which must be either `true` or > `false`). However, I cannot see where to put the `false` value in the key definition. `<value>` is not present in the synopsis. It seems that the default behaviour is to set `<bool>` to `true`.


title: \lstinline break at punctuation

text: I need listing package (`\usepackage{listing}`) to break at punctuation               namespace::subnamespace::class                ^             ^      at either these two locations


title: Using coordinate expressions in scope transforms

text: Coordinate computation is powerful, especially with the `positioning` library. I would like to be able to leverage this relative calculation to compute, e.g., `xshift` and `yshift` terms for a `scope` or other sub-part of a figure, but I can't see how to easily access the components of a `coordinate` or perform other general computation in the context of applying keys. For example,               …     % assume <something> has non-0 x coordinate, so offset does too - I don't want to shift horizontally at all     \coordinate[below = of <something>] (offset)     \begin{scope}[yshift = <y component of (offset)>]       \draw (0,0) rectangle (1,1);     \end{scope}      In this case, I'm using simple relative positioning `below = of <something>` to compute a vertical offset. I'd like to be able to use this vertical offset to shift the coordinate system of the sub-drawing in the defined scope. I realize it's possible to pass an unadorned `(coordinate name)` directly to the 2D `shift` key, but none of the transform keys (`shift` included) seem to parse any math, even with the `calc` library. As a result, it's difficult to express anything nontrivial in-place using these keys. What is the most straightforward way to do something like I sketched in the above code, specifying a `yshift` using the y dimension of a named `coordinate`?


title: ledmac/-par: No versesyncing but pagesyncing

text: I tried t get an answer at de.comp.text.tex, comp.text.tex [2] and golatex.de [1, in german] but without success. I hope to find help here. My friend needs to typeset a translation of a latin poem with critical notes so we (I) decide to use ledmac an ledpar. The verses should be synced pagewise but not versewise, which means that there shouldn’t be any extra vertical space between to verses. I try to show it in “ASCI-Art”:   This is how it should look like:               % left/even page (original)                right/odd page (translation)      +-------------------------------------+    +-----------------------------------+      |  1 Lorem ipsum                      |    | 1 Dies ist die Übersetzung        |      |  2 dolor sit amet, consectetuer     |    |     der ersten Zeile              |      |  3 adipiscing elit. Aenean          |    | 2 und die zweite folgt            |      |      commodo ligula eget dolor.     |    | 3 so wie die dritte, deren        |      |      Aenean massa.                  |    |     Übersetzung wieder            |      |  4 Cum sociis natoque penatibus     |    |     deutlich länger ist           |      |  5 et magnis dis parturient montes, |    |     als das Original              |      |  6 nascetur ridiculus mus.          |    | 4 kurze Übersetzung               |      |  7 Donec quam felis, ultricies      |    | 5 ebenfalls kurz                  |      |      nec, pellentesque eu,          |    | 6 und die Übersetzung der         |      |      pretium quis, sem.             |    |    sechsten wieder etwas länger   |      |                                     |    | 7 und die letzte Zeile bekommt    |      |                                     |    |    noch eine besonders lange      |      |                                     |    |    Übersetzung, um es wirklich    |      |                                     |    |    deutlich zu machen.            |      +-------------------------------------+    +-----------------------------------+       and this how it looks at the moment               % left/even page (original)                right/odd page (translation)      +-------------------------------------+    +-----------------------------------+      |  1 Lorem ipsum                      |    | 1 Dies ist die Übersetzung        |      |                                     |    |    der ersten Zeile               |      |  2 dolor sit amet, consectetuer     |    | 2 und die zweite folgt            |      |  3 adipiscing elit. Aenean          |    | 3 so wie die dritte, deren        |      |      commodo ligula eget dolor.     |    |    Übersetzung wieder             |      |      Aenean massa.                  |    |    deutlich länger ist            |      |                                     |    |    als das Original               |      |  4 Cum sociis natoque penatibus     |    | 4 kurze Übersetzung               |      |  5 et magnis dis parturient montes, |    | 5 ebenfalls kurz                  |      |  6 nascetur ridiculus mus.          |    | 6 und die Übersetzung der         |      |                                     |    |    sechsten wieder etwas länger   |      |  7 Donec quam felis, ultricies      |    | 7 und die letzte Zeile bekommt    |      |      nec, pellentesque eu,          |    |    noch eine besonders lange      |      |      pretium quis, sem.             |    |    Übersetzung, um es wirklich    |      |                                     |    |    deutlich zu machen.            |      +-------------------------------------+    +-----------------------------------+      Here is the—more or less—minimal example:               \documentclass[a5paper,pagesize,DIV=7]{scrartcl}      \usepackage{xltxtra}      \usepackage{ledmac,ledpar}      \maxchunks{500}      % Dummy      \newcommand{\BNote}[2]{#1}      \begin{document}      \begin{pages}      \begin{Leftside}          \beginnumbering% line numbers          \setstanzaindents{2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}% indents          \stanza          Non ego Caesareas \BNote{acies}{Anmerkung zum Text}, non arma virumque, &          sed chitaram plectrumque cano nec inutile numen &          totque etiam voces. \BNote{Quis}{Noch eine Anmerkung zum Text} enim laudare horaem &          et lyricam poterit, nisi centum vocibus, artem?                  et lyricam poterit, nisi centum vocibus, artem?                  et lyricam poterit, nisi centum vocibus, artem?          \&          \stanza          Doctus in Arcadiis vivebat musicus oris, &          clarus circa urbes et famae voce lyraeque. &          Illum laetus Hymen \BNote{et}{Foo} plausu iuvenumque choreis &          vicina quondam late celebratus in urbe          \&          \stanza          Doctus in Arcadiis vivebat musicus oris, &          clarus circa urbes et famae voce lyraeque. &          Illum laetus Hymen et plausu iuvenumque choreis &          vicina quondam late celebratus in urbe          \&          \stanza          Doctus in Arcadiis vivebat musicus oris, &          clarus circa urbes et famae voce lyraeque. &          Illum laetus Hymen et plausu iuvenumque choreis &          vicina quondam late celebratus in urbe          \&          \stanza          Doctus in Arcadiis vivebat musicus oris, &          clarus circa urbes et famae voce lyraeque. &          Illum laetus Hymen et plausu iuvenumque choreis &          vicina quondam late celebratus in urbe          \&          \endnumbering      \end{Leftside}      \begin{Rightside}          \beginnumbering         \setstanzaindents{2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}         \stanza          Nicht singe ich von Cäsars Heer, nicht von Waffen und einem Helden, &          sondern von Cithara und Plektrum und eine nicht unnützliche Gottheit                  sondern von Cithara und Plektrum und eine nicht unnützliche Gottheit &          rufe ich zu Hilfe: Möge mich jener bekannte und lebendige Anhelitus/ Odem, &          der gewöhnlich durch die klangvolle Tibia bläst, mit reichem          \&          \stanza          Jenen zog der fröhliche Hymen, der mit Klatschen und Reigentänzen junger Männer                  Jenen zog der fröhliche Hymen, der mit Klatschen und Reigentänzen                  junger Männer&          einst in einer benachbarten Stadt ausgiebig gefeiert wurde, &          zusammen mit anderen lyrischen Sängern zu der so großen Festlichkeit &          durch die Aussicht auf Lohn und Speise, damit er der Sitte nach          \&          \stanza          Jenen zog der fröhliche Hymen, der mit Klatschen und Reigentänzen junger Männer &          einst in einer benachbarten Stadt ausgiebig gefeiert wurde, &          zusammen mit anderen lyrischen Sängern zu der so großen Festlichkeit &          durch die Aussicht auf Lohn und Speise, damit er der Sitte nach          \&          \stanza          Jenen zog der fröhliche Hymen, der mit Klatschen und Reigentänzen junger Männer &          einst in einer benachbarten Stadt ausgiebig gefeiert wurde, &          zusammen mit anderen lyrischen Sängern zu der so großen Festlichkeit &          durch die Aussicht auf Lohn und Speise, damit er der Sitte nach          \&          \stanza          Jenen zog der fröhliche Hymen, der mit Klatschen und Reigentänzen junger Männer &          einst in einer benachbarten Stadt ausgiebig gefeiert wurde, &          zusammen mit anderen lyrischen Sängern zu der so großen Festlichkeit &          durch die Aussicht auf Lohn und Speise, damit er der Sitte nach          \&          \endnumbering      \end{Rightside}      \Pages      \end{pages}      \end{document}      We use XeLaTeX to get the PDF. Thank’s for every help!   Tobi ps: I’m sorry for my bad english, but hope you understand … O:-)   pps: Does anybody know who the maintainer is, cause Peter Wilson stopped developing in 2008 (seen on CTAN)? [1] http://www.golatex.de/ledmac-par-ein-paar-fragen-u-a-zum-parallelen- text-t6280.html   [2] http://groups.google.com/group/comp.text.tex/browse_frm/thread/39f94ec919c4c91a


title: How to change to dotted style

text: How to change the line style to line style with different line style such that people need not to have a color printer to view it? ![enter image description here](http://i.stack.imgur.com/rtqNd.png)               \pgfplotsset{mystyle/.style={mark=none}}      \begin{tikzpicture}             \begin{axis}[title=Anti-correlated Dataset,                 legend pos=outer north east,                 ytick={0,0.2,...,1},                 legend pos=outer north east,                 legend style={draw=none},                 xtick={0,50,...,300},                 scaled ticks=false,                 log ticks with fixed point={1000 sep=},                 axis x line=bottom,                 axis y line=left,                 axis line style=-,                 minor tick style={draw=none},                 ylabel = Fitness,                 xlabel = Number of Generation,                  every axis legend/.append style={xshift=-10pt}                 ] %manman              \addplot+[mystyle] plot  coordinates{(0,0.161311266527552)(0,0.161311266527552)(1,0.161311266527552)(2,0.161311266527552)(3,0.16798789896178)(4,0.16798789896178)(5,0.16798789896178)(6,0.16798789896178)(7,0.16798789896178)(8,0.16798789896178)(9,0.16798789896178)(10,0.16798789896178)(11,0.16798789896178)(12,0.16798789896178)(13,0.16798789896178)(14,0.16798789896178)(15,0.16798789896178)(16,0.16798789896178)(17,0.16798789896178)(18,0.16798789896178)(19,0.169083498355629)(20,0.169083498355629)(21,0.169083498355629)(22,0.169315321995203)(23,0.169749214923308)(24,0.169749214923308)(25,0.769036757919103)(26,0.770281394637903)(27,0.775853097779331)(28,0.775853097779331)(29,0.775853097779331)(30,0.775853097779331)(31,0.775853097779331)(32,0.775853097779331)(33,0.775853097779331)(34,0.775853097779331)(35,0.775853097779331)(36,0.775853097779331)(37,0.775853097779331)(38,0.775853097779331)(39,0.775853097779331)(40,0.775853097779331)(41,0.775853097779331)(42,0.775853097779331)(43,0.775853097779331)(44,0.775853097779331)(45,0.775853097779331)(46,0.775853097779331)(47,0.775853097779331)(48,0.775853097779331)(49,0.775853097779331)(50,0.775853097779331)(51,0.775853097779331)(52,0.775853097779331)(53,0.775853097779331)(54,0.775853097779331)(55,0.775853097779331)(56,0.775853097779331)(57,0.775853097779331)(58,0.775853097779331)(59,0.775853097779331)(60,0.775853097779331)(61,0.775853097779331)(62,0.775853097779331)(63,0.775853097779331)(64,0.775853097779331)(65,0.775853097779331)(66,0.775853097779331)(67,0.775853097779331)(68,0.775853097779331)(69,0.775853097779331)(70,0.775853097779331)(71,0.775853097779331)(72,0.775853097779331)(73,0.775853097779331)(74,0.775853097779331)(75,0.775853097779331)(76,0.775853097779331)(77,0.775853097779331)(78,0.775853097779331)(79,0.775853097779331)(80,0.775853097779331)(81,0.775853097779331)(82,0.775853097779331)(83,0.775853097779331)(84,0.775853097779331)(85,0.775853097779331)(86,0.775853097779331)(87,0.775853097779331)(88,0.775853097779331)(89,0.775853097779331)(90,0.775853097779331)(91,0.775853097779331)(92,0.775853097779331)(93,0.775853097779331)(94,0.775853097779331)(95,0.775853097779331)(96,0.775853097779331)(97,0.775853097779331)(98,0.775853097779331)(99,0.775853097779331)(100,0.775853097779331)(101,0.775853097779331)(102,0.775853097779331)(103,0.775853097779331)(104,0.782072904269963)(105,0.782072904269963)(106,0.782072904269963)(107,0.782072904269963)(108,0.782072904269963)(109,0.782072904269963)(110,0.782072904269963)(111,0.782072904269963)(112,0.782072904269963)(113,0.782072904269963)(114,0.782072904269963)(115,0.782072904269963)(116,0.782072904269963)(117,0.782072904269963)(118,0.782072904269963)(119,0.782072904269963)(120,0.782072904269963)(121,0.782072904269963)(122,0.782072904269963)(123,0.782072904269963)(124,0.782072904269963)(125,0.782072904269963)(126,0.782072904269963)(127,0.782072904269963)(128,0.782072904269963)(129,0.782072904269963)(130,0.782072904269963)(131,0.782072904269963)(132,0.782072904269963)(133,0.782072904269963)(134,0.782072904269963)(135,0.782072904269963)(136,0.782072904269963)(137,0.782072904269963)(138,0.782072904269963)(139,0.782072904269963)(140,0.782072904269963)(141,0.782072904269963)(142,0.782072904269963)(143,0.782072904269963)(144,0.782072904269963)(145,0.782072904269963)(146,0.782072904269963)(147,0.782072904269963)(148,0.782072904269963)(149,0.782072904269963)(150,0.782072904269963)(151,0.782072904269963)(152,0.782072904269963)(153,0.782072904269963)(154,0.782072904269963)(155,0.782342405129142)(156,0.782342405129142)(157,0.782342405129142)(158,0.782342405129142)(159,0.782342405129142)(160,0.782342405129142)(161,0.782342405129142)(162,0.782342405129142)(163,0.782342405129142)(164,0.782342405129142)(165,0.782342405129142)(166,0.782342405129142)(167,0.782342405129142)(168,0.782342405129142)(169,0.782342405129142)(170,0.782342405129142)(171,0.782342405129142)(172,0.782342405129142)(173,0.782342405129142)(174,0.782342405129142)(175,0.782342405129142)(176,0.782342405129142)(177,0.782342405129142)(178,0.782342405129142)(179,0.782342405129142)(180,0.782342405129142)(181,0.782342405129142)(182,0.782342405129142)(183,0.782342405129142)(184,0.782342405129142)(185,0.786596537740682)(186,0.786596537740682)(187,0.786596537740682)(188,0.786596537740682)(189,0.786596537740682)(190,0.786596537740682)(191,0.786596537740682)(192,0.786596537740682)(193,0.786596537740682)(194,0.786596537740682)(195,0.786596537740682)(196,0.786596537740682)(197,0.786596537740682)(198,0.786596537740682)(199,0.786596537740682)(200,0.786596537740682)(201,0.786596537740682)(202,0.786596537740682)(203,0.786596537740682)(204,0.786596537740682)(205,0.786596537740682)(206,0.786596537740682)(207,0.786596537740682)(208,0.786596537740682)(209,0.786596537740682)(210,0.786596537740682)(211,0.786596537740682)(212,0.786596537740682)(213,0.786596537740682)(214,0.786596537740682)(215,0.786596537740682)(216,0.786596537740682)(217,0.786596537740682)(218,0.786596537740682)(219,0.786596537740682)(220,0.786596537740682)(221,0.786596537740682)(222,0.786596537740682)(223,0.786596537740682)(224,0.786596537740682)(225,0.786596537740682)(226,0.786596537740682)(227,0.786596537740682)(228,0.786596537740682)(229,0.786596537740682)(230,0.786596537740682)(231,0.786596537740682)(232,0.786596537740682)(233,0.786596537740682)(234,0.786596537740682)(235,0.786596537740682)(236,0.786596537740682)(237,0.786596537740682)(238,0.786596537740682)(239,0.786596537740682)(240,0.786596537740682)(241,0.786596537740682)(242,0.786596537740682)(243,0.786596537740682)(244,0.786596537740682)(245,0.786596537740682)(246,0.786596537740682)(247,0.786596537740682)(248,0.786596537740682)(249,0.786596537740682)(250,0.786596537740682)(251,0.786596537740682)(252,0.786596537740682)(253,0.786596537740682)(254,0.786596537740682)(255,0.786596537740682)(256,0.786596537740682)(257,0.786596537740682)(258,0.786596537740682)(259,0.786596537740682)(260,0.786596537740682)(261,0.786767038465992)(262,0.786767038465992)(263,0.786767038465992)(264,0.786767038465992)(265,0.786767038465992)(266,0.786767038465992)(267,0.786767038465992)(268,0.786767038465992)(269,0.786767038465992)(270,0.786767038465992)(271,0.786767038465992)(272,0.786767038465992)(273,0.786767038465992)(274,0.786767038465992)(275,0.786767038465992)(276,0.786767038465992)(277,0.786767038465992)(278,0.786767038465992)(279,0.786767038465992)(280,0.786767038465992)(281,0.786767038465992)(282,0.786767038465992)(283,0.786767038465992)(284,0.786767038465992)(285,0.786767038465992)(286,0.786767038465992)(287,0.786767038465992)(288,0.786767038465992)(289,0.786767038465992)(290,0.786767038465992)(291,0.786767038465992)(292,0.786767038465992)(293,0.786767038465992)(294,0.786767038465992)(295,0.786767038465992)(296,0.786767038465992)(297,0.786767038465992)(298,0.786767038465992)(299,0.786767038465992)(300,0.787386729203908)};         \addplot+[mystyle] plot  coordinates{(0,0.810258420781954)(1,0.810596357466903)(2,0.810596357466903)(3,0.810596357466903)(4,0.810596357466903)(5,0.810596357466903)(6,0.810596357466903)(7,0.810596357466903)(8,0.810936588432913)(9,0.810936588432913)(10,0.810936588432913)(11,0.810936588432913)(12,0.810936588432913)(13,0.810936588432913)(14,0.810936588432913)(15,0.810936588432913)(16,0.810936588432913)(17,0.810936588432913)(18,0.810936588432913)(19,0.810936588432913)(20,0.810936588432913)(21,0.81113781765482)(22,0.81113781765482)(23,0.81113781765482)(24,0.81113781765482)(25,0.81113781765482)(26,0.81113781765482)(27,0.81113781765482)(28,0.81113781765482)(29,0.81113781765482)(30,0.81113781765482)(31,0.81113781765482)(32,0.81113781765482)(33,0.81113781765482)(34,0.81113781765482)(35,0.81113781765482)(36,0.81113781765482)(37,0.81113781765482)(38,0.81113781765482)(39,0.81113781765482)(40,0.81113781765482)(41,0.81113781765482)(42,0.81113781765482)(43,0.81113781765482)(44,0.81113781765482)(45,0.81113781765482)(46,0.81113781765482)(47,0.81113781765482)(48,0.81113781765482)(49,0.81113781765482)(50,0.81113781765482)(51,0.81113781765482)(52,0.81113781765482)(53,0.81113781765482)(54,0.81113781765482)(55,0.81113781765482)(56,0.81113781765482)(57,0.81113781765482)(58,0.81113781765482)(59,0.81113781765482)(60,0.81113781765482)(61,0.81113781765482)(62,0.81113781765482)(63,0.81113781765482)(64,0.81113781765482)(65,0.81113781765482)(66,0.81113781765482)(67,0.81113781765482)(68,0.81113781765482)(69,0.81113781765482)(70,0.81113781765482)(71,0.81113781765482)(72,0.81113781765482)(73,0.81113781765482)(74,0.81113781765482)(75,0.81113781765482)(76,0.81113781765482)(77,0.81113781765482)(78,0.81113781765482)(79,0.81113781765482)(80,0.81113781765482)(81,0.81113781765482)(82,0.81113781765482)(83,0.81113781765482)(84,0.81113781765482)(85,0.81113781765482)(86,0.81113781765482)(87,0.81113781765482)(88,0.81113781765482)(89,0.81113781765482)(90,0.81113781765482)(91,0.81113781765482)(92,0.81113781765482)(93,0.81113781765482)(94,0.81113781765482)(95,0.81113781765482)(96,0.813129571890871)(97,0.813129571890871)(98,0.813129571890871)(99,0.813129571890871)(100,0.813129571890871)(101,0.813129571890871)(102,0.813129571890871)(103,0.813129571890871)(104,0.813129571890871)(105,0.813129571890871)(106,0.813129571890871)(107,0.813129571890871)(108,0.813129571890871)(109,0.813129571890871)(110,0.813129571890871)(111,0.813129571890871)(112,0.813129571890871)(113,0.813129571890871)(114,0.813129571890871)(115,0.813129571890871)(116,0.813129571890871)(117,0.813129571890871)(118,0.813129571890871)(119,0.813129571890871)(120,0.813129571890871)(121,0.813129571890871)(122,0.813129571890871)(123,0.813129571890871)(124,0.813129571890871)(125,0.813129571890871)(126,0.814076631028359)(127,0.814076631028359)(128,0.814076631028359)(129,0.814076631028359)(130,0.814076631028359)(131,0.814076631028359)(132,0.814076631028359)(133,0.814076631028359)(134,0.814076631028359)(135,0.814076631028359)(136,0.814076631028359)(137,0.814076631028359)(138,0.814076631028359)(139,0.814076631028359)(140,0.814076631028359)(141,0.814076631028359)(142,0.814076631028359)(143,0.814076631028359)(144,0.814076631028359)(145,0.814076631028359)(146,0.814076631028359)(147,0.814076631028359)(148,0.814076631028359)(149,0.814076631028359)(150,0.814076631028359)(151,0.814076631028359)(152,0.814076631028359)(153,0.814076631028359)(154,0.814076631028359)(155,0.814076631028359)(156,0.814076631028359)(157,0.814076631028359)(158,0.814076631028359)(159,0.814076631028359)(160,0.814076631028359)(161,0.814076631028359)(162,0.814076631028359)(163,0.814076631028359)(164,0.814076631028359)(165,0.814076631028359)(166,0.814076631028359)(167,0.814076631028359)(168,0.814076631028359)(169,0.814076631028359)(170,0.814076631028359)(171,0.814076631028359)(172,0.814076631028359)(173,0.814076631028359)(174,0.814076631028359)(175,0.814076631028359)(176,0.814076631028359)(177,0.814076631028359)(178,0.814076631028359)(179,0.814076631028359)(180,0.814076631028359)(181,0.814076631028359)(182,0.814076631028359)(183,0.814076631028359)(184,0.814076631028359)(185,0.814076631028359)(186,0.814076631028359)(187,0.814076631028359)(188,0.814076631028359)(189,0.814076631028359)(190,0.814076631028359)(191,0.814076631028359)(192,0.814076631028359)(193,0.814076631028359)(194,0.814076631028359)(195,0.814076631028359)(196,0.814076631028359)(197,0.814076631028359)(198,0.814787843897563)(199,0.814787843897563)(200,0.814787843897563)(201,0.814787843897563)(202,0.814787843897563)(203,0.814787843897563)(204,0.814787843897563)(205,0.814787843897563)(206,0.814787843897563)(207,0.814787843897563)(208,0.814787843897563)(209,0.814787843897563)(210,0.814787843897563)(211,0.814787843897563)(212,0.814787843897563)(213,0.814787843897563)(214,0.814787843897563)(215,0.814787843897563)(216,0.814787843897563)(217,0.814787843897563)(218,0.814787843897563)(219,0.814787843897563)(220,0.814787843897563)(221,0.814787843897563)(222,0.814787843897563)(223,0.814787843897563)(224,0.814787843897563)(225,0.814787843897563)(226,0.814787843897563)(227,0.814787843897563)(228,0.814787843897563)(229,0.814787843897563)(230,0.814787843897563)(231,0.814787843897563)(232,0.814787843897563)(233,0.814787843897563)(234,0.814787843897563)(235,0.814787843897563)(236,0.814787843897563)(237,0.814787843897563)(238,0.814787843897563)(239,0.814787843897563)(240,0.814787843897563)(241,0.814787843897563)(242,0.814787843897563)(243,0.814787843897563)(244,0.814787843897563)(245,0.814787843897563)(246,0.814787843897563)(247,0.814787843897563)(248,0.814787843897563)(249,0.814787843897563)(250,0.814787843897563)(251,0.814787843897563)(252,0.814787843897563)(253,0.814787843897563)(254,0.814787843897563)(255,0.814787843897563)(256,0.814787843897563)(257,0.814787843897563)(258,0.814787843897563)(259,0.814787843897563)(260,0.814787843897563)(261,0.814787843897563)(262,0.814787843897563)(263,0.814787843897563)(264,0.814787843897563)(265,0.814787843897563)(266,0.814787843897563)(267,0.814787843897563)(268,0.814787843897563)(269,0.814787843897563)(270,0.814787843897563)(271,0.814787843897563)(272,0.814787843897563)(273,0.814787843897563)(274,0.814787843897563)(275,0.814787843897563)(276,0.814787843897563)(277,0.814787843897563)(278,0.814787843897563)(279,0.814787843897563)(280,0.814787843897563)(281,0.814787843897563)(282,0.814787843897563)(283,0.814787843897563)(284,0.814787843897563)(285,0.814787843897563)(286,0.814787843897563)(287,0.814787843897563)(288,0.814787843897563)(289,0.814787843897563)(290,0.814787843897563)(291,0.814787843897563)(292,0.814787843897563)(293,0.814787843897563)(294,0.814787843897563)(295,0.814787843897563)(296,0.814787843897563)(297,0.814787843897563)(298,0.814787843897563)(299,0.814787843897563)(300,0.814787843897563)};         \addplot+[mystyle] plot coordinates{(0,0.806705530671747)(1,0.808268683991414)(2,0.809317724691312)(3,0.809317724691312)(4,0.809317724691312)(5,0.809317724691312)(6,0.809317724691312)(7,0.809317724691312)(8,0.809317724691312)(9,0.809544018805765)(10,0.809544018805765)(11,0.809544018805765)(12,0.809544018805765)(13,0.809544018805765)(14,0.809544018805765)(15,0.809544018805765)(16,0.809544018805765)(17,0.809544018805765)(18,0.809544018805765)(19,0.809544018805765)(20,0.809544018805765)(21,0.809544018805765)(22,0.809544018805765)(23,0.809544018805765)(24,0.809544018805765)(25,0.809544018805765)(26,0.809544018805765)(27,0.809544018805765)(28,0.809544018805765)(29,0.809544018805765)(30,0.809544018805765)(31,0.809544018805765)(32,0.809544018805765)(33,0.809544018805765)(34,0.809544018805765)(35,0.809544018805765)(36,0.809544018805765)(37,0.809544018805765)(38,0.809544018805765)(39,0.809544018805765)(40,0.809544018805765)(41,0.809544018805765)(42,0.809544018805765)(43,0.809544018805765)(44,0.809544018805765)(45,0.809544018805765)(46,0.809544018805765)(47,0.809544018805765)(48,0.809544018805765)(49,0.809544018805765)(50,0.809544018805765)(51,0.809544018805765)(52,0.809544018805765)(53,0.809544018805765)(54,0.809544018805765)(55,0.809544018805765)(56,0.809544018805765)(57,0.809544018805765)(58,0.809544018805765)(59,0.809544018805765)(60,0.809544018805765)(61,0.809544018805765)(62,0.809544018805765)(63,0.809544018805765)(64,0.809544018805765)(65,0.809544018805765)(66,0.809544018805765)(67,0.809544018805765)(68,0.809544018805765)(69,0.809544018805765)(70,0.809544018805765)(71,0.809544018805765)(72,0.809544018805765)(73,0.809544018805765)(74,0.809544018805765)(75,0.809544018805765)(76,0.809544018805765)(77,0.809544018805765)(78,0.809544018805765)(79,0.809544018805765)(80,0.809544018805765)(81,0.810589349081366)(82,0.810589349081366)(83,0.810589349081366)(84,0.810589349081366)(85,0.811537005362234)(86,0.811537005362234)(87,0.811537005362234)(88,0.811537005362234)(89,0.811537005362234)(90,0.811537005362234)(91,0.811537005362234)(92,0.811537005362234)(93,0.811537005362234)(94,0.811537005362234)(95,0.811537005362234)(96,0.811537005362234)(97,0.811537005362234)(98,0.811537005362234)(99,0.811537005362234)(100,0.811537005362234)(101,0.811537005362234)(102,0.811537005362234)(103,0.811537005362234)(104,0.811537005362234)(105,0.811537005362234)(106,0.811537005362234)(107,0.811537005362234)(108,0.811537005362234)(109,0.811537005362234)(110,0.811537005362234)(111,0.811537005362234)(112,0.811537005362234)(113,0.811537005362234)(114,0.811537005362234)(115,0.811537005362234)(116,0.811537005362234)(117,0.811537005362234)(118,0.811537005362234)(119,0.811537005362234)(120,0.811537005362234)(121,0.811537005362234)(122,0.811537005362234)(123,0.811537005362234)(124,0.811537005362234)(125,0.811537005362234)(126,0.811537005362234)(127,0.811537005362234)(128,0.811537005362234)(129,0.811537005362234)(130,0.811537005362234)(131,0.811537005362234)(132,0.811537005362234)(133,0.811537005362234)(134,0.811537005362234)(135,0.811537005362234)(136,0.811537005362234)(137,0.811537005362234)(138,0.811537005362234)(139,0.811537005362234)(140,0.811537005362234)(141,0.811537005362234)(142,0.811537005362234)(143,0.811537005362234)(144,0.811537005362234)(145,0.811537005362234)(146,0.811537005362234)(147,0.811537005362234)(148,0.811537005362234)(149,0.811537005362234)(150,0.811537005362234)(151,0.811537005362234)(152,0.811537005362234)(153,0.811693041016901)(154,0.811693041016901)(155,0.811693041016901)(156,0.811693041016901)(157,0.811693041016901)(158,0.811693041016901)(159,0.811693041016901)(160,0.811693041016901)(161,0.811693041016901)(162,0.811693041016901)(163,0.811693041016901)(164,0.811693041016901)(165,0.811693041016901)(166,0.811693041016901)(167,0.811693041016901)(168,0.811693041016901)(169,0.811693041016901)(170,0.811693041016901)(171,0.811693041016901)(172,0.811693041016901)(173,0.811693041016901)(174,0.811693041016901)(175,0.811693041016901)(176,0.811693041016901)(177,0.811693041016901)(178,0.811693041016901)(179,0.811693041016901)(180,0.811693041016901)(181,0.811693041016901)(182,0.811693041016901)(183,0.811693041016901)(184,0.811693041016901)(185,0.811693041016901)(186,0.811693041016901)(187,0.811693041016901)(188,0.811693041016901)(189,0.811693041016901)(190,0.811693041016901)(191,0.811693041016901)(192,0.811693041016901)(193,0.811693041016901)(194,0.811693041016901)(195,0.811693041016901)(196,0.811693041016901)(197,0.811693041016901)(198,0.811693041016901)(199,0.811693041016901)(200,0.811693041016901)(201,0.811693041016901)(202,0.811693041016901)(203,0.811693041016901)(204,0.811693041016901)(205,0.811693041016901)(206,0.811693041016901)(207,0.811693041016901)(208,0.811693041016901)(209,0.811693041016901)(210,0.811693041016901)(211,0.811693041016901)(212,0.811693041016901)(213,0.811693041016901)(214,0.811693041016901)(215,0.811693041016901)(216,0.811693041016901)(217,0.811693041016901)(218,0.811693041016901)(219,0.811693041016901)(220,0.811693041016901)(221,0.811693041016901)(222,0.811693041016901)(223,0.811693041016901)(224,0.811693041016901)(225,0.811693041016901)(226,0.811693041016901)(227,0.811693041016901)(228,0.811693041016901)(229,0.811693041016901)(230,0.811693041016901)(231,0.811693041016901)(232,0.811693041016901)(233,0.811693041016901)(234,0.811693041016901)(235,0.811693041016901)(236,0.811693041016901)(237,0.811693041016901)(238,0.811693041016901)(239,0.811693041016901)(240,0.811693041016901)(241,0.811693041016901)(242,0.811693041016901)(243,0.811693041016901)(244,0.811693041016901)(245,0.811693041016901)(246,0.811693041016901)(247,0.811693041016901)(248,0.811693041016901)(249,0.811693041016901)(250,0.811693041016901)(251,0.811693041016901)(252,0.811693041016901)(253,0.811693041016901)(254,0.811693041016901)(255,0.811693041016901)(256,0.811693041016901)(257,0.811693041016901)(258,0.811693041016901)(259,0.811693041016901)(260,0.811693041016901)(261,0.811693041016901)(262,0.811693041016901)(263,0.811693041016901)(264,0.811693041016901)(265,0.811693041016901)(266,0.811693041016901)(267,0.811693041016901)(268,0.811693041016901)(269,0.811693041016901)(270,0.811693041016901)(271,0.811693041016901)(272,0.811693041016901)(273,0.811693041016901)(274,0.811693041016901)(275,0.811693041016901)(276,0.811693041016901)(277,0.811693041016901)(278,0.811693041016901)(279,0.811693041016901)(280,0.811693041016901)(281,0.811693041016901)(282,0.811693041016901)(283,0.811693041016901)(284,0.811693041016901)(285,0.811693041016901)(286,0.811693041016901)(287,0.811693041016901)(288,0.811693041016901)(289,0.811693041016901)(290,0.811693041016901)(291,0.811693041016901)(292,0.811693041016901)(293,0.811693041016901)(294,0.811693041016901)(295,0.811693041016901)(296,0.811693041016901)(297,0.811693041016901)(298,0.811693041016901)(299,0.811693041016901)(300,0.811693041016901)};         \legend{$\GA$,$\DROO$,$\DROSkyline$}             \end{axis}         \end{tikzpicture}


title: individual tick label style with pgfplots

text: given the following code, I want to modify the tick labels in such a way, that for negative values of x, the labels are located above the x-axis. How can I realize this?               \documentclass{report}     \usepackage{pgf}     \usepackage{pgfplots}     \pgfplotsset{compat=newest}     \pgfplotsset{plot coordinates/math parser=false}     \begin{document}     \begin{tikzpicture}     \begin{axis}[%     axis x line=middle,     axis y line=middle,     width=10cm,     height=10cm,     scale only axis,     xmin=-5,     xmax=5,     xtick={-4, -2, 0,  2,  4},     xticklabels={$-4\pi$, $-2\pi$, $0$, $2\pi$, $4\pi$},     extra x ticks={-4, -2},     ymin=-1.4,     ymax=1.4,     ytick={-1,  0,  1}]     \end{axis}     \end{tikzpicture}%     \end{document}


title: Write pseudo code in latex

text: I am trying to write pseudo code in my paper. Here is the snippet and image like what I want. Can some one please help me to format it.               \begin{algorithm}     \caption{Euclid’s algorithm}\label{euclid}     \begin{algorithmic}[1]     \Procedure{Euclid}{$a,b$}\Comment{The g.c.d. of a and b}          \State $stringlen\gets length of string$     \State $i\gets patlen$          top:      \eIf{i > stringlen}{        return false\;        }        {        \State $j\gets patlen$       }          loop:      \eIf{ j == 0}{        return j+1\;        }        {              \eIf{string(i) > pat(j)}{                 \State $j\gets $j -1$                 \State $i\gets $i -1$                 \State goto loop                 \State Close.                }                {                \State $j\gets patlen$               }       }          \EndWhile\label{euclidendwhile}     \EndProcedure     \end{algorithmic}     \end{algorithm}      it should look like this: ![Image](http://i.stack.imgur.com/vuB4F.png) Currently it looks messed up. Any help is appreciable ..


title: Is there a working solution to produce PDF/A-1b with MiKTeK

text: I have read a lot of interesting questions and answers on PDF/A-1b production with LaTeX and pdfTeX. I still can't produce validating PDF/A-1b files. I used either:   * the standard up-to-date `pdfx` package    * or the "improved" pdfx-ext version,    * or the edited `pdfx.sty` by Vincent Immler two years ago, (see here and the attached sample). I encountered no compiling errors, and validation with jhove always works However file validation fails by :   * Acrobat X Pro preflight,    * online validation provided by 3-Height pdf-tools   * online validation provided by Solid PDF Tools As I was not able to patch `pdftex` as suggested by Vincent Immler, I managed to repair de EOL problems reported in several posts on `tex.stackexchange.com` by using binary replacements of `x32` or `x0a` with the `gsar` utility, in order to mimic the changes made in the patch. However the error messages :               The separator before 'endstream' must be an EOL.      is still present, with further error messages looking as overvall failure conclusion.   * Has someone succeeded to patch MiKTeX's pdftex ?      * Does this patch fix the all the `EOL` problems (including the `endstream` one)?      * Is there a 'package only' solution ?    _I use MiKTeX v 2.9 (pdftex Version 3.1415926-2.5-1.40.14) on both Windows XP Pro x32 (SP3) and Windows Seven Family Premium x64 (SP1)_


title: Abstract with heading to the left: abstract package broken?

text: I try to get the abstract heading set to the left and the package `abstract` seems to provide this functionality. But the pdf contains the characters "centerflushleft" and the abstract title is centered. Is the package broken? I use texlive 2012. Is there another way to achieve the desired result?               \documentclass{scrartcl}          \usepackage{abstract}          \begin{document}          \absnamepos{flushleft}     %\abstitlestyle{\abstractname}     \setlength{\absleftindent}{0pt}     \setlength{\absrightindent}{0pt}                    \begin{abstract}     \noindent     This paper provides an overview of the most important grammatical properties of German. A large part     of the paper is concerend with the basic clause types of German. I start with the Topological Fields Model,     which is very useful as a descriptive tool, but -- as will be shown -- not sufficient for a thorough     account of German clausal structure. I therefore explain additional theoretical assumptions that     were made in order to assign structure to the observable linear sequences. After a sketch of an     analysis of the basic sentence patterns, I     give an account of passive, case assignment, and subject-verb agreement.     \end{abstract}          \end{document}


title: The caption package and letterspacing

text: # Problem Statement I adjusted the caption format for my figures and tables using the `caption` package, such that the words "Figure" and "Table" are typeset using small caps. Now I want to obtain correct letterspacing for these words using the `microtype` package and the command `\textls`, but adding `labelfont = ls` in the caption setup doesn't work. # Minimal working example               \documentclass{scrartcl}     \pagestyle{empty}     \usepackage{tikz}     \usepackage{microtype}     \usepackage{caption}     \captionsetup{         format = plain,         font = footnotesize,         labelfont = sc     }     \begin{document}     \begin{figure}[!htb]         \centering         \begin{tikzpicture}             \draw (0,0) circle[radius=1];         \end{tikzpicture}         \caption{A circle.}         \label{fig:sine}     \end{figure}     \end{document}      # Sample output > ![caption](http://i.stack.imgur.com/SuxEM.png) Note the non-letterspaced small caps here.


title: Can we use functions to compute coordinate X and Y in a tikzpicture?

text: I would like to compute coords X and Y to build a figure :               \documentclass[a4paper,12pt]{book}     \usepackage[utf8]{inputenc}     \usepackage{graphicx}          \usepackage{tikz} % pour dessins     \usetikzlibrary{shapes, calc, arrows} % pour complement tikz          \begin{document}          \begin{tikzpicture}     \def\focale{3}       \def\angleg{32}      \def\angled{90-\angleg}           \coordinate (P1) at (\tan(\angleg)*\focale,1.5cm);         ...     \end{tikzpicture}%<<<== must use well balanced curly-braces          \end{document}      but i have got an error :               Missing \endcsname inserted \coordinate (P1) at (\tan(32)      I tried to include the compute within `$` but :               Paragraph ended before \tikz@cc@parse@factor was complete


title: Can LaTeX perform calculation like Excel formula table?

text: I wonder if this feature is available in TeX system? For example, given a formula within a table, it can apply the formula and display data after the calculation.


title: Align Numeric Values from knitr command \Sexpr{} by Decimal in Table

text: How can I align numeric values brought in from the `knitr` command `\Sexpr{}` by decimal in a table?


title: make summation sign big without affecting the size of lower bound of summation

text: This is a follow up question related to this post making a big summation sign I am trying to rescale the sum sign in the same way as in the above post. The problem is that the lower bound of the sum also becomes bigger which I don't want.                \documentclass[11pt,a4paper,oneside]{report}       \usepackage[pdftex]{graphicx}       \usepackage[T1]{fontenc}       \usepackage{fouriernc}      \usepackage{mathtools}      \usepackage{amsfonts,amsmath,amssymb,amsthm}       \usepackage[a4paper, hmargin={3.5cm,3cm}, vmargin={2.5cm,2.5cm}]{geometry}       \usepackage{relsize}           \begin{document}           \begin{equation}      c_{ij}=\sum_{i^{\prime}<i^{''},j^{\prime}<j^{''}}\begin{pmatrix*}[c]      i&i^{\prime}&i^{''}\\1&2&3      \end{pmatrix*}      \begin{pmatrix*}[c]      i&i^{\prime}&i^{''}\\1&2&3      \end{pmatrix*}      \end{equation}           \begin{equation}      c_{ij}=\mathlarger{\mathlarger{\sum}}_{i^{\prime}<i^{''},j^{\prime}<j^{''}}      \begin{pmatrix*}[c]      i&i^{\prime}&i^{''}\\1&2&3      \end{pmatrix*}      \begin{pmatrix*}[c]      i&i^{\prime}&i^{''}\\1&2&3      \end{pmatrix*}      \end{equation}           \begin{equation}      c_{ij}=\mathlarger{\mathlarger{\mathlarger{\sum}}}_{i^{\prime} <i^{''},j^{\prime}<j^{''}}      \begin{pmatrix*}[c]      i&i^{\prime}&i^{''}\\1&2&3      \end{pmatrix*}      \begin{pmatrix*}[c]      i&i^{\prime}&i^{''}\\1&2&3      \end{pmatrix*}      \end{equation}           \end{document}      output ![enter image description here](http://i.stack.imgur.com/QsqRL.jpg) I think the second version looks best, unfortunately the lower bound is clearly enlarged as well. What can be done to prevent it? Also, why the delimiters of the matrices are not adjusted to the content they surround? Thank you.


title: Tracking with XeTeX via LetterSpace

text: When I use PDFLaTeX I have a setup using `microtype` and a font available in small caps (eg \usepackage{lmodern}),               \usepackage[     protrusion=true,     expansion=true,     kerning=true,     spacing=true,     tracking=true,     factor=1100,     stretch=40,     shrink=10     ]{microtype}     \SetTracking{encoding={*}, family= *, shape=fsc}{16}      I would like the same set-up for XeLaTeX (as much as possible). I know that XeLaTeX only allows protusion with microtype but I have a lot of `\rmfamily\bfseries\scshape` in my commands (for sections and so on) and I want to enable the tracking globally just as microtype does it with PDFLaTeX. I know I can use `LetterSpace` to do it locally, but is there a way to do it only once and for all?


title: Stroke with variable thickness

text: Can you create lines with variable thickness (line width) in Tikz? ![enter image description here](http://i.stack.imgur.com/vG02L.png)


title: How to test if the value of a token is not a specific value

text: I have a bunch of tokens with default values. I need to test each of these and print a message in case they are still the default value. I am able to do this manually as shown below. Now when I attempt to write a macro for this I run into problems. I want to be able to report the name of the token that was not set so attempted to pass in the name of the token and use `\the\\#1` to get the value. I am thinking there is someting basic I am missing and have tried a bunch of things but still am not able to make this work. Any ideas?               \documentclass[12pt]{article}     \usepackage{ifthen}          \newtoks{\MyParameter}     \MyParameter={X}         % Set default value          \newcommand{\TestIfGivenValue}[2]{%     \ifthenelse{\equal{\the\#1}{#2}}{%     \warningbox{B: Please set the value of $backslash$#1}%     }{%         B: Yes, the \textbackslash MyParameter has a non default value.      }}               \begin{document}          % Manual method: works great     \ifthenelse{\equal{\the\MyParameter}{X}}{%         A: Please set the value of \textbackslash MyParameter \\%     }{         A: Yes, the \textbackslash MyParameter has a non default value.      }          % Now attempt to wrap this in a new command     \TestIfGivenValue{MyParameter}{X}          \end{document}


title: Left-hand vertical rule applied to flalign environment with automatic pagebreak

text: I am referring to the `coderule` environment (see Override \centering to left justify an image) presented earlier by @TH as answer to the following question: Override \centering to left justify an image I use the defined `coderule` environment for equations (i.e., `flalign`, `amsmath` package). Since my equations are quite long, I allow automatic page breaking for them (`\allowdisplaybreaks[1]`). If I apply the `coderule` around the `flalign`, the equations do not break anymore and leave a lot of unused white space. Is it possible to change the `coderule` environment in such a way that it adapts to the automatic page break?


title: How to get a colored box as the header?

text: I want to produce this particular template in LaTeX. With no page numbering, and rectangles in colours in a a4paper. ![sample made with Word](http://i.stack.imgur.com/8sVwy.png)


title: How to prevent two column text to overlay with minipage of entire pagewidth?

text: I have a two column latex document and at the beginning of each chapter, I want to manually insert a minipage which spans the two columns. Unfortunately, the text in the right column will always overlay with the minipage. How can I prevent that from happening?               \documentclass[twocolumn]{memoir}     \usepackage{lipsum}           \begin{document}          \chapter{test}          % minipage spanning entire width.     % how do I prevent the text below from overlaying into the minipage?     \begin{minipage}[t]{\textwidth}     STARTMINIPAGE \lipsum[1] ENDMINIPAGE     \end{minipage}          % text across two columns. the right column wraps into the minipage.     \lipsum[1-20]          \end{document}


title: Identifying styles in PDF

text: It happens many times that I take a look at an interestingly typeset document in LaTeX, but to which I don't have the source-code to inspect the style. One such example is this one: http://philosophy.unimelb.edu.au/ajl/2011/2011_5.pdf I know there are free services online that identify the fonts. They may be useful for simple text, but, for example, mathematics, it becomes very hard to identify the correct style. So, my question is, what could one use to help reproducing a specific style when only having access to the final PDF?


title: Which is the best editor for LuaTeX?

text: Many (La)TeX editors support the LuaTeX engine. However, which one offers the best support for writing LuaTeX? Which editor or plugin supports features such as syntax highlighting and auto-completion for both Lua and (La)TeX? Common useful features of LaTeX focused IDEs such as integrated viewer, forward and inverse search, structure browser and spell checking are still important, though supplemented by some Lua syntax support.