title: Texample "map projections" not working

text: I can compile the "Example: Stereographic and cylindrical map projections" but it doesn't look like the one given there. (Neither the dashed meridians, nor the cylinder) The file: http://www.directupload.net/file/d/3700/5ltd8ve9_pdf.htm Is it related to the "Missing character: There is no . in font nullfont!" Messages? How can I get the same picture as in the example? I'm using the 2.02 release of TeXnicCenter with MikTex 2.9 64 Bit


title: Counting points from csv file pgfplots

text: I am importing data from a .csv file to obtain a scatter plot, here's the MWE:               \documentclass{article}     \usepackage{pgfplots}          \pgfplotsset{         jitter/.style={             x filter/.code={\pgfmathparse{\pgfmathresult+rnd*#1}},             y filter/.code={\pgfmathparse{\pgfmathresult+rnd*#1*0.1}}         },         jitter/.default=0.1     }          \begin{document}          %%% Victory Opening vs Victory Race     \begin{figure}         \begin{tikzpicture}             \begin{axis}[width=15cm,                         axis background/.style={fill=blue!10},                         xlabel={Victory Opening},                         ylabel={Victory Race},                         legend entries={Winners, Losers},                         legend style={nodes=right},                         legend pos= north east,                         ]              \addplot +[only marks,mark=o] table [col sep=comma,x=VictoryOpening,y=VictoryRace]{MapsFullNumerical.csv};             \addplot +[only marks,red,mark=x] table [col sep=comma,x=LossOpening,y=LossRace]{MapsFullNumerical.csv};             \end{axis}          \end{tikzpicture}         \caption{Victory Opening vs Victory Race}     \end{figure}     \end{document}      what I would like to do is count the number of points for each cluster. Here the first two lines of the .csv file:               NomeRep,VictoryOpening,VictoryRace,LossOpening,LossRace,numRegioni,numBasi,numStart,hopMedio,numChoke,numArchi,FlussoMedio,FlussoMedioBasi,FlussoMedioStarting,percPosStratReg,percPosStratBas,percPosStratStart,perimetroMedio,perimetroMedioBasi,perimetroMedioStarting,areaMedia,areaMediaBasi,areaMediaStarting,chokeMedio,chokeMedioBasi,chokeMedioStarting,perc chokePerimetro,perc chokePerimetroBasi,perc chokePerimetroStarting,mediaMinBasi,mediaMinStart,mediaGasBasi,mediaGasStart,blocchiMinBase,blocchiMinStarting,distanzaRegTerra,percraggRegTerra,distanzaRegTerra95,distanzaBasiTerra,percraggBasiTerra,distanzaBasiTerra95,distanzaStartTerra,percraggStartTerra,distanzaAriaBasi,distanzaAriaStartPoints,numRegNonRaggiungibili,gradoMedio,HR Start-Reg,HR Start-Base,HR Base-Reg,Min/Gas Ratio Basi,Min/Gas Ratio Start          1,5,3,8,1,21,16,8,3.3,23,22,315,323,299,28,30,50,3689,3300,3756,552668,442894,557594,1938,1259,924,52,43,24,4615,5000,12923,12000,8,8,2988,81,2855,3156,100,3024,4352,100,2263,2808,0,2,1.72,1.61,1.03,0.36,0.42       And here's the image obtained so far: ![enter image description here](http://i.stack.imgur.com/lKcTZ.png)


title: How to write two functions horizontally?

text: If I want to write two functions _`f`_ and _`g`_ vertically in the center of the page I will write like this:               \begin{align*}     \f(x)=\left\{\begin{array}{lll}                     1 & \textnormal{if} & x\in A \\                     2 & \textnormal{} & \textnormal{otherwise}                 \end{array}\right.     \end{align*}          \begin{align*}     \g(x)=\left\{\begin{array}{lll}                     1 & \textnormal{if} & x\in B \\                     2 & \textnormal{} & \textnormal{otherwise}                 \end{array}\right.     \end{align*}      How I write this two functions horizontally, one in the left end another one in the right end ?


title: Bug with texdef (currfile) in frozen TexLive 2011

text: To keep in line with the Q&A format: I am on Ubuntu Lucid, with the frozen TexLive 2011, from where I installed `texdef`. Unfortunately, when I ran one of the examples from the help (and I installed `xspace`) specifically for this, I got:               $ texdef -t latex -l -p xspace     :     Compile error: Undefined control sequence.      What is the problem? * * * EDIT: Versions discussed here:               $ texdef --version     texdef: Version 1.6 -- 2012/05/02          $ grep -A3 'ProvidesPackage' `kpsewhich currfile.sty`     \ProvidesPackage{currfile}[%         2012/05/06         v0.6         Provides the file path elements of the current input file]


title: Latex Warning:Citation undefined

text: I was trapped by this citation for a long time. All my citations in bib suddendly didn't work and tex make told me there are not found in my bib. My main tex file is as following:               \documentclass[GBK, colorlinks, notocbibind]{pkuthss}     \usepackage[backend = biber, style = caspervector, gbk]{biblatex}     \usepackage{lmodern}     \usepackage{amssymb}     \usepackage{fancyvrb}     \usepackage{hologo}             \newcommand{\myemph}[1]{\emph{\textcolor{red}{#1}}}             \newcommand{\docversion}{v1.4 beta1}               \addbibresource{pkuthss.bib}     \begin{document}         \frontmatter              \maketitle              \include{chap/copyright}              \include{chap/abstract}              \tableofcontents              \mainmatter              \include{chap/introduction}              \include{chap/chap1}         \include{chap/chap2}         \include{chap/chap3}              \include{chap/conclusion}              \appendix              \printbibliography[heading = bibintoc]              \backmatter              \include{chap/acknowledge}              \include{chap/originauth}     \end{document}      And my bib is here:               @online{biber,         author = {Kime, Philip and Charette, Fran\c{c}ois},         title = {Biber: A backend bibliography processor for biblatex (Version 0.9.9)},         type = {M/OL},         date = {2012-03-29},         url = {http://biblatex-biber.sourceforge.net},     }          @online{biblatex,         author = {Lehman, Philipp},         title = {The biblatex Package: Programmable Bibliographies and Citations (Version 1.7)},         type = {M/OL},         date = {2011-11-13},         url = {http://sourceforge.net/projects/biblatex/},     }          @online{biblatex-caspervector,         author = {Vector, Casper Ti.},         title = {biblatex 参考文献和引用样式：caspervector v0.1.3},         type = {M/OL},         date = {2012-05-31},         url = {http://caspervector.googlecode.com/files/biblatex-caspervector-0.1.3.zip},         userf = {zh},     }          @online{ctex,         author = {{ctex.org}},         title = {ctex 宏包说明（v1.02c）},         type = {M/OL},         date = {2011-03-11},         url = {http://www.ctex.org/PackageCTeX/files.xml?action=download&file=ctex.pdf},         userf = {zh},     }      What is wrong with my tex, could any one give me some advice? Thanks a lot.


title: save table on a separate file

text: I'm new to LaTeX. I have a table in the LaTeX format that I want to include in my document. Since it is a large table, I would like to save it in a different file and then just load it in my main document. How can I do this?


title: Has a dmath environment (breqn package) a maximum size?

text: I have the problem, that I need some quite long formulas and therefore I use `breqn`. Up till now, there was no problem doing so. But now I have a formula that seems to be too long for `breqn`. I get some error messages like               ! Extra \else.     \eq@trial@b ...e }\eq@trial@succeed \fi \fi \else        \eq@trial@save \EQ@last@tr...     l.55 \end{dmath}      These messages are coming several times in the log. The output in the PDF file is correct, but the messages are not pretty. Also I will have to set some even longer formulas and then the output will be even worse. So my question: Why are there these messages and what can I do against them? PS: A minimal example. If you disable the `landscape` environment you will see the error:               \documentclass[a5paper,10pt]{article}     \usepackage{amsmath}     \usepackage{pdflscape}     \usepackage{breqn}          \begin{document}          \begin{landscape}     \begin{dmath}     \stackrel{(4)}{y}_1 = -b_1\,v_1\,\cos x_3 \,\sin x_5 \,x_6^2-c_1\,v_1\,\cos x_3 \,\cos x_5     \,x_6^2+2\,c_1\,v_1\,\sin x_3 \,x_4\,\sin x_5 \,x_6-2\,c_1\,\dot v_1 \,\cos x_3 \,\sin x_5      \,x_6+c_1\,d_3\,v_1\,\cos x_3 \,\sin x_5 \,x_6+c_1\,d_1\,v_1\,\cos x_3 \,\sin x_5 \,x_6-2\,b_1\,v_1\,     \sin x_3 \,x_4\,\cos x_5 \,x_6+2\,b_1\,\dot v_1 \,\cos x_3 \,\cos x_5 \,x_6-b_1\,d_3\,v_1\,\cos x_3      \,\cos x_5 \,x_6-b_1\,d_1\,v_1\,\cos x_3 \,\cos x_5 \,x_6-b_1\,c_2\,{v_1}^{2}\,\sin x_3 \,\sin^2 x_5 -     a_3\,c_1\,v_1\,\cos^2 x_3 \,\sin^2 x_5 -c_1\,c_2\,v_1^2\,\sin x_3 \,\cos x_5 \,\sin x_5 b_1\,b_2\,v_1^2\,\sin x_3 \,\cos x_5 \,\sin x_5 +a_3\,b_1\,v_1\,\cos^2 x_3 \,\cos x_5 \,\sin x_5 -     b_1\,v_1\,\cos x_3 \,x_4^2\,\sin x_5 -2\,b_1\,\dot v_1 \,\sin x_3 \,x_4\,\sin x_5 +b_1\,d_2\,v_1\,     \sin x_3 \,x_4\,\sin x_5 +b_1\,d_1\,v_1\,\sin x_3 \,x_4\,\sin x_5 -a_1\,b_1\,v_1\,\sin^2 x_3 \,\sin      x_5 -a_2\,b_1\,v_1\,\cos x_3 \,\sin x_3 \,\sin x_5 -b_3\,c_1\,v_1\,v_2\,\cos x_3 \,\sin x_5 +b_1\,     \ddot v_1  \,\cos x_3 \,\sin x_5 -b_1\,d_1\,\dot v_1 \,\cos x_3 \,\sin x_5 +b_1\,d_1^2\,v_1\,\cos x_3      \,\sin x_5 -b_2\,c_1\,v_1^2\,\sin x_3 \,\cos^2 x_5 -c_1\,v_1\,\cos x_3 \,x_4^2\,\cos x_5 -2\,c_1\,     \dot v_1 \,\sin x_3 \,x_4\,\cos x_5 +c_1\,d_2\,v_1\,\sin x_3 \,x_4\,\cos x_5 +c_1\,d_1\,v_1\,\sin x_3      \,x_4\,\cos x_5 -a_1\,c_1\,v_1\,\sin^2 x_3 \,\cos x_5 -a_2\,c_1\,v_1\,\cos x_3 \,\sin x_3 \,\cos x_5      +b_1\,b_3\,v_1\,v_2\,\cos x_3 \,\cos x_5 +c_1\,\ddot v_1  \,\cos x_3 \,\cos x_5 -c_1\,d_1\,\dot v_1      \,\cos x_3 \,\cos x_5 +c_1\,d_1^2\,v_1\,\cos x_3 \,\cos x_5 -d_1^3\,x_2     \end{dmath}     \end{landscape}          \end{document}


title: Accessing IPA characters when using Charis SIL

text: When using Charis SIL, how do I access IPA characters? Are there handy macros, as with `tipa.sty`? If I have to set up my own encoding using unicode numbers, how is this best done? (Code from those who have done this already?) * * * Here’s how I’m getting Charis SIL:               \documentclass[12pt]{article}     \usepackage{fontspec}     \setmainfont{Charis SIL}     \begin{document}     Blowzy DJ frumps vex a knight QC          \it      Blowzy DJ frumps vex a knight QC      \end{document}      And here’s the result: ![enter image description here](http://i.stack.imgur.com/hMNxO.png) * * * This question arises from a response to another question of mine.


title: Picture environment: line length does not match its coordinates

text: Well I have a problem matching line end with its coordinate. Here's the code:               \documentclass{article}     \begin{document}          \begin{figure}[h]     \centering     \begin{picture}(260,210)          \put(0,32){\line(1,0){260}}%     \put(0,32){\circle{2} }%     \put(260,32){ \circle{2} }%          \end{picture}     \label{fig:01}     \end{figure}          \end{document}      As you can see the second circle isn't placed at the end of a line despite their coordinates should match. Code is pretty simple yet I can't find the reason why the circle and the line are shifted.


title: Open a MacOS application using the hyperref run command without Terminal showing up

text: I want to open the MacOSX application Photo Booth (starting the iSight camera) from a link in a presentation pdf file. I use the `hyperref` command               \href{run:photoscript}{Link text}      to call 'photoscript', which contains a single line:               open -a Photo\ Booth      The application opens alright, but the undesired effect is that a Terminal window appears with               /Users/me/photoscript ; exit;     logout          [Process completed]      How can I prevent this Terminal window from showing up?


title: How to make an observation numbering in bold?

text: I'm writing a paper in LIPIcs template.               \newtheorem{observation}[theorem]{\textbf{Observation}}          \newcommand{\robs}[1]{Observation~\ref{#1}}     \newcommand{\rfig}[1]{Fig.~\ref{#1}}      \newcommand{\rlem}[1]{Lemma~\ref{#1}}     \newcommand{\rdef}[1]{Definition~\ref{#1}}     \newcommand{\rthm}[1]{Theorem~\ref{#1}}     \newcommand{\rpro}[1]{Proposition~\ref{#1}}     \newcommand{\rcor}[1]{Corollary~\ref{#1}}      \newcommand{\rse}[1]{Section~\ref{#1}}      However the observation number is not in bold. I want to make the observation number bold. How can I do this?


title: Convert pstricks animation to SVG(+SMIL)

text: Inspired by these questions—   * How to convert pstricks animation to GIF file?   * PSTricks to SVG —how can one convert a PSTricks animation to an animated SVG image? SVG animation would be nicer than GIF because SVG is a vector format that supports smooth animations and arbitrary colors.


title: Most concise way to make list items from each line break

text: How can I convert every line to a list item automatically? for example I want following become a list (without adding more characters):               \begin{foo}     Persian     French      Arabic     Urdu     \end{foo}        * Persian   * French    * Arabic   * Urdu


title: Displaying images with Hevea (Latex)

text: What is the correct way to include images so that Hevea will produce correct html output? I tried the following: Latex code (test.tex):               \documentclass[12pt]{article}          \usepackage{hevea}     \usepackage{graphicx}          \begin{document}          \section{Introduction}     An image.     \includegraphics{python.jpg}          \end{document}      Compilation               $ hevea test.tex      In the html produced, the image is broken (0 bytes). Does Hevea not support jpg images? Do they need to be converted to say, eps? I looked at the Hevea documentation, but I found it hard to understand, especially on how imagen should be used. When I try the same with pdflatex, I am able to get a PDF that shows the image. I am using this on OS X 10.8.1 with the latest Hevea/MacTeX packages.


title: Citation without printing references at the end of document

text: How I can use the ".bib" file in such a way that it does not print References at the end..


title: Different column widths when using multicolumn in tabular enviroment

text: I'm trying to recreate this table in latex ![table in word](http://i.stack.imgur.com/RslCx.png) So far I've managed to get this ![enter image description here](http://i.stack.imgur.com/rdz5X.png) Using this:               \begin{table}[h]     \begin{table}[h]     \begin{tabular}{|l|l|p{10cm}|}     \hline     \multicolumn{3}{|c|}{\textbf{Daily Log}}\\ \hline     \multicolumn{2}{|l|}{Student Name: My Name} & Student Number: 9999999 \\ \hline     \multicolumn{3}{|l|}{Company Name: A Company Name - Some more text} \\ \hline     Day                     & Date                     & Activities   \\ \hline     1                       & 11/11/13                 & A few sentences of text need to go here for every row from now on\\ \hline     2                       &                          &     \\ \hline     \end{tabular}     \end{table}      But I can't get the Student Number cell to move across without affecting the size of the activities cell. Similarly I want the date cells to be as small as possible but I can't do that because of the size of the student name cell. So really what I guess I'm really asking is, is there a way to change the width of a column on a per row basis?


title: Automatically arrange citations in increasing number using biblatex

text: I have similar problem to this question The question is essentially the same, but I use `biblatex`. I have `\autocite{b,c,a,d}` which generates `[2, 3, 1, 4]`. Is it possible to automatically make them in increasing order without manually changing `\autocite{b,c,a,d}` to `\autocite{a,b,c,d}`? My code right now is:               \usepackage[autostyle]{csquotes}     \usepackage[         maxbibnames=9,         backend=biber,         style=numeric,%authoryear-icomp,         sortlocale=de_DE,         natbib=true,         url=false,          doi=true,         eprint=false     ]{biblatex}      Any help and suggestions will be much appreciated.


title: How to make formula look professional

text: I write the formulae using belowing latex, however, it looks some kind of messy especially the Equation 1. Any suggestions on how to make it professional?               \documentclass{minimal}     \usepackage{etex}     \usepackage{amsmath, amssymb, proof} % mathabx,     \begin{document}     \begin{equation}\label{utilityv}     \begin{array}{rcl}     U(a)& =& w_1*\frac{Ur_{Max}(s)-a.r}{Ur_{Max}(s)-Ur_{Min}(s)}\\     &+& w_2*\frac{A{a} * AvgA(s')-Ua_{Min}(s)}{Ua_{Max}(s)-Ua_{Min}(s)}\\     &+& w_3*\frac{Uc_{Max}(s)-(C{a}+AvgC(s'))}{Uc_{Max}(s)-Uc_{Min}(s)}     \end{array}     \end{equation}     with     \begin{equation}\label{utilityruti}     \begin{array}{rcl}     Ur_{Max}(s)& = &\max\limits_{a\in MAct(s)}(a.r)\\     Ur_{Min}(s) &=& \min\limits_{a\in MAct(s)}(a.r)\\     Ua_{Max}(s)& = &\max\limits_{a\in MAct(s)}(A(a) * AvgA(s'))\\     Ua_{Min}(s) &=& \min\limits_{a\in MAct(s)}(A(a) * AvgA(s'))\\     Uc_{Max}(s) &=& \max\limits_{a\in MAct(s)}(C(a)+AvgC(s'))\\     Uc_{Min} (s) &=& \min\limits_{a\in MAct(s)}(C{a}+AvgC(s'))          \end{array}     \end{equation}     \end{document}      ![enter image description here](http://i.stack.imgur.com/vUbGb.png)


title: Check if non-empty subsection exists under another section

text: I'd like to try to make a LaTeX class which enforces a number of (non-empty) sections to exist-- if the user doesn't define them manually, then some default section content will be created.               \begin{document}          \section{Section which requires subsections ``African swallow'' and ``European swallow''}          \subsection{African swallow}          The unladen airspeed is \ldots  % The section is defined and has content, so it is okay          % subsection ``European swallow'' doesn't exist (and therefore is also missing content, of course), so here the compiler adds:     % \subsection{European swallow}     %     % The unladen airspeed is \ldots, although when carrying a coconut it is much less.          \end{document}      It would be even cooler if I could also specify that certain sections **must** be defined (and are not empty), otherwise the compiler exits with an error. I hope my question is understandable... I'd be grateful for any tips.


title: Math slides looking like notes

text: I have seen some slides that look close to notes. For example,this one. I wonder what templates they are created? Not seem like by beamer, as there are more contents in each slide and not fancy at all.


title: Latex returns exit code 1 when I try this very simple code, why?

text: \documentclass[a4paper,10pt]{article}     \usepackage[utf8]{inputenc}     \usepackage[english,hebrew]{babel}     \begin{document}     \end{document}      This is the .log file, the .aux just says "\relax"               This is pdfTeX, Version 3.1415926-2.5-1.40.14 (TeX Live 2013/Debian) (format=pdflatex 2013.12.2)  2 DEC 2013 10:38     entering extended mode      restricted \write18 enabled.      %&-line parsing enabled.     **Throwme.tex     (./Throwme.tex     LaTeX2e <2011/06/27>     Babel <3.9f> and hyphenation patterns for 78 languages loaded.     (/usr/share/texlive/texmf-dist/tex/latex/base/article.cls     Document Class: article 2007/10/19 v1.4h Standard LaTeX document class     (/usr/share/texlive/texmf-dist/tex/latex/base/size10.clo     File: size10.clo 2007/10/19 v1.4h Standard LaTeX file (size option)     )     \c@part=\count79     \c@section=\count80     \c@subsection=\count81     \c@subsubsection=\count82     \c@paragraph=\count83     \c@subparagraph=\count84     \c@figure=\count85     \c@table=\count86     \abovecaptionskip=\skip41     \belowcaptionskip=\skip42     \bibindent=\dimen102     )     (/usr/share/texlive/texmf-dist/tex/latex/base/inputenc.sty     Package: inputenc 2008/03/30 v1.1d Input encoding file     \inpenc@prehook=\toks14     \inpenc@posthook=\toks15          (/usr/share/texlive/texmf-dist/tex/latex/base/utf8.def     File: utf8.def 2008/04/05 v1.1m UTF-8 support for inputenc     Now handling font encoding OML ...     ... no UTF-8 mapping file for font encoding OML     Now handling font encoding T1 ...     ... processing UTF-8 mapping file for font encoding T1          (/usr/share/texlive/texmf-dist/tex/latex/base/t1enc.dfu     File: t1enc.dfu 2008/04/05 v1.1m UTF-8 support for inputenc        defining Unicode char U+00A1 (decimal 161)        defining Unicode char U+00A3 (decimal 163)        defining Unicode char U+00AB (decimal 171)        defining Unicode char U+00BB (decimal 187)        defining Unicode char U+00BF (decimal 191)        defining Unicode char U+00C0 (decimal 192)        defining Unicode char U+00C1 (decimal 193)        defining Unicode char U+00C2 (decimal 194)        defining Unicode char U+00C3 (decimal 195)        defining Unicode char U+00C4 (decimal 196)        defining Unicode char U+00C5 (decimal 197)        defining Unicode char U+00C6 (decimal 198)        defining Unicode char U+00C7 (decimal 199)        defining Unicode char U+00C8 (decimal 200)        defining Unicode char U+00C9 (decimal 201)        defining Unicode char U+00CA (decimal 202)        defining Unicode char U+00CB (decimal 203)        defining Unicode char U+00CC (decimal 204)        defining Unicode char U+00CD (decimal 205)        defining Unicode char U+00CE (decimal 206)        defining Unicode char U+00CF (decimal 207)        defining Unicode char U+00D0 (decimal 208)        defining Unicode char U+00D1 (decimal 209)        defining Unicode char U+00D2 (decimal 210)        defining Unicode char U+00D3 (decimal 211)        defining Unicode char U+00D4 (decimal 212)        defining Unicode char U+00D5 (decimal 213)        defining Unicode char U+00D6 (decimal 214)        defining Unicode char U+00D8 (decimal 216)        defining Unicode char U+00D9 (decimal 217)        defining Unicode char U+00DA (decimal 218)        defining Unicode char U+00DB (decimal 219)        defining Unicode char U+00DC (decimal 220)        defining Unicode char U+00DD (decimal 221)        defining Unicode char U+00DE (decimal 222)        defining Unicode char U+00DF (decimal 223)        defining Unicode char U+00E0 (decimal 224)        defining Unicode char U+00E1 (decimal 225)        defining Unicode char U+00E2 (decimal 226)        defining Unicode char U+00E3 (decimal 227)        defining Unicode char U+00E4 (decimal 228)        defining Unicode char U+00E5 (decimal 229)        defining Unicode char U+00E6 (decimal 230)        defining Unicode char U+00E7 (decimal 231)        defining Unicode char U+00E8 (decimal 232)        defining Unicode char U+00E9 (decimal 233)        defining Unicode char U+00EA (decimal 234)        defining Unicode char U+00EB (decimal 235)        defining Unicode char U+00EC (decimal 236)        defining Unicode char U+00ED (decimal 237)        defining Unicode char U+00EE (decimal 238)        defining Unicode char U+00EF (decimal 239)        defining Unicode char U+00F0 (decimal 240)        defining Unicode char U+00F1 (decimal 241)        defining Unicode char U+00F2 (decimal 242)        defining Unicode char U+00F3 (decimal 243)        defining Unicode char U+00F4 (decimal 244)        defining Unicode char U+00F5 (decimal 245)        defining Unicode char U+00F6 (decimal 246)        defining Unicode char U+00F8 (decimal 248)        defining Unicode char U+00F9 (decimal 249)        defining Unicode char U+00FA (decimal 250)        defining Unicode char U+00FB (decimal 251)        defining Unicode char U+00FC (decimal 252)        defining Unicode char U+00FD (decimal 253)        defining Unicode char U+00FE (decimal 254)        defining Unicode char U+00FF (decimal 255)        defining Unicode char U+0102 (decimal 258)        defining Unicode char U+0103 (decimal 259)        defining Unicode char U+0104 (decimal 260)        defining Unicode char U+0105 (decimal 261)        defining Unicode char U+0106 (decimal 262)        defining Unicode char U+0107 (decimal 263)        defining Unicode char U+010C (decimal 268)        defining Unicode char U+010D (decimal 269)        defining Unicode char U+010E (decimal 270)        defining Unicode char U+010F (decimal 271)        defining Unicode char U+0110 (decimal 272)        defining Unicode char U+0111 (decimal 273)        defining Unicode char U+0118 (decimal 280)        defining Unicode char U+0119 (decimal 281)        defining Unicode char U+011A (decimal 282)        defining Unicode char U+011B (decimal 283)        defining Unicode char U+011E (decimal 286)        defining Unicode char U+011F (decimal 287)        defining Unicode char U+0130 (decimal 304)        defining Unicode char U+0131 (decimal 305)        defining Unicode char U+0132 (decimal 306)        defining Unicode char U+0133 (decimal 307)        defining Unicode char U+0139 (decimal 313)        defining Unicode char U+013A (decimal 314)        defining Unicode char U+013D (decimal 317)        defining Unicode char U+013E (decimal 318)        defining Unicode char U+0141 (decimal 321)        defining Unicode char U+0142 (decimal 322)        defining Unicode char U+0143 (decimal 323)        defining Unicode char U+0144 (decimal 324)        defining Unicode char U+0147 (decimal 327)        defining Unicode char U+0148 (decimal 328)        defining Unicode char U+014A (decimal 330)        defining Unicode char U+014B (decimal 331)        defining Unicode char U+0150 (decimal 336)        defining Unicode char U+0151 (decimal 337)        defining Unicode char U+0152 (decimal 338)        defining Unicode char U+0153 (decimal 339)        defining Unicode char U+0154 (decimal 340)        defining Unicode char U+0155 (decimal 341)        defining Unicode char U+0158 (decimal 344)        defining Unicode char U+0159 (decimal 345)        defining Unicode char U+015A (decimal 346)        defining Unicode char U+015B (decimal 347)        defining Unicode char U+015E (decimal 350)        defining Unicode char U+015F (decimal 351)        defining Unicode char U+0160 (decimal 352)        defining Unicode char U+0161 (decimal 353)        defining Unicode char U+0162 (decimal 354)        defining Unicode char U+0163 (decimal 355)        defining Unicode char U+0164 (decimal 356)        defining Unicode char U+0165 (decimal 357)        defining Unicode char U+016E (decimal 366)        defining Unicode char U+016F (decimal 367)        defining Unicode char U+0170 (decimal 368)        defining Unicode char U+0171 (decimal 369)        defining Unicode char U+0178 (decimal 376)        defining Unicode char U+0179 (decimal 377)        defining Unicode char U+017A (decimal 378)        defining Unicode char U+017B (decimal 379)        defining Unicode char U+017C (decimal 380)        defining Unicode char U+017D (decimal 381)        defining Unicode char U+017E (decimal 382)        defining Unicode char U+200C (decimal 8204)        defining Unicode char U+2013 (decimal 8211)        defining Unicode char U+2014 (decimal 8212)        defining Unicode char U+2018 (decimal 8216)        defining Unicode char U+2019 (decimal 8217)        defining Unicode char U+201A (decimal 8218)        defining Unicode char U+201C (decimal 8220)        defining Unicode char U+201D (decimal 8221)        defining Unicode char U+201E (decimal 8222)        defining Unicode char U+2030 (decimal 8240)        defining Unicode char U+2031 (decimal 8241)        defining Unicode char U+2039 (decimal 8249)        defining Unicode char U+203A (decimal 8250)        defining Unicode char U+2423 (decimal 9251)     )     Now handling font encoding OT1 ...     ... processing UTF-8 mapping file for font encoding OT1          (/usr/share/texlive/texmf-dist/tex/latex/base/ot1enc.dfu     File: ot1enc.dfu 2008/04/05 v1.1m UTF-8 support for inputenc        defining Unicode char U+00A1 (decimal 161)        defining Unicode char U+00A3 (decimal 163)        defining Unicode char U+00B8 (decimal 184)        defining Unicode char U+00BF (decimal 191)        defining Unicode char U+00C5 (decimal 197)        defining Unicode char U+00C6 (decimal 198)        defining Unicode char U+00D8 (decimal 216)        defining Unicode char U+00DF (decimal 223)        defining Unicode char U+00E6 (decimal 230)        defining Unicode char U+00EC (decimal 236)        defining Unicode char U+00ED (decimal 237)        defining Unicode char U+00EE (decimal 238)        defining Unicode char U+00EF (decimal 239)        defining Unicode char U+00F8 (decimal 248)        defining Unicode char U+0131 (decimal 305)        defining Unicode char U+0141 (decimal 321)        defining Unicode char U+0142 (decimal 322)        defining Unicode char U+0152 (decimal 338)        defining Unicode char U+0153 (decimal 339)        defining Unicode char U+2013 (decimal 8211)        defining Unicode char U+2014 (decimal 8212)        defining Unicode char U+2018 (decimal 8216)        defining Unicode char U+2019 (decimal 8217)        defining Unicode char U+201C (decimal 8220)        defining Unicode char U+201D (decimal 8221)     )     Now handling font encoding OMS ...     ... processing UTF-8 mapping file for font encoding OMS          (/usr/share/texlive/texmf-dist/tex/latex/base/omsenc.dfu     File: omsenc.dfu 2008/04/05 v1.1m UTF-8 support for inputenc        defining Unicode char U+00A7 (decimal 167)        defining Unicode char U+00B6 (decimal 182)        defining Unicode char U+00B7 (decimal 183)        defining Unicode char U+2020 (decimal 8224)        defining Unicode char U+2021 (decimal 8225)        defining Unicode char U+2022 (decimal 8226)     )     Now handling font encoding OMX ...     ... no UTF-8 mapping file for font encoding OMX     Now handling font encoding U ...     ... no UTF-8 mapping file for font encoding U        defining Unicode char U+00A9 (decimal 169)        defining Unicode char U+00AA (decimal 170)        defining Unicode char U+00AE (decimal 174)        defining Unicode char U+00BA (decimal 186)        defining Unicode char U+02C6 (decimal 710)        defining Unicode char U+02DC (decimal 732)        defining Unicode char U+200C (decimal 8204)        defining Unicode char U+2026 (decimal 8230)        defining Unicode char U+2122 (decimal 8482)        defining Unicode char U+2423 (decimal 9251)     ))     (/usr/share/texlive/texmf-dist/tex/generic/babel/babel.sty     Package: babel 2013/05/16 v3.9f The Babel package          (/usr/share/texlive/texmf-dist/tex/generic/babel-english/english.ldf     Language: english 2012/08/20 v3.3p English support from the babel system          (/usr/share/texlive/texmf-dist/tex/generic/babel/babel.def     File: babel.def 2013/05/16 v3.9f Babel common definitions     \babel@savecnt=\count87     \U@D=\dimen103     )     \l@canadian = a dialect from \language\l@american      \l@australian = a dialect from \language\l@british      \l@newzealand = a dialect from \language\l@british      )     (/usr/share/texlive/texmf-dist/tex/generic/babel-hebrew/rlbabel.def     File: rlbabel.def 2005/03/30 v2.3h Right-to-Left support from the babel system      Hebrew language support from the babel system     )     (/usr/share/texlive/texmf-dist/tex/generic/babel-hebrew/hebrew.ldf     File: hebrew.ldf 2005/03/30 v2.3h Hebrew language definition from the babel sys     tem Hebrew language support from the babel system               Package babel Warning: No hyphenation patterns were preloaded for     (babel)                the language `Hebrew' into the format.     (babel)                Please, configure your TeX system to add them and     (babel)                rebuild the format. Now I will use the patterns     (babel)                preloaded for english instead on input line 57.          \l@hebrew = a dialect from \language0     )) (/usr/share/texlive/texmf-dist/tex/generic/babel-hebrew/lheenc.def     File: lheenc.def 2005/05/20 v1.2c 7-bit Hebrew font encoding (test version: sti     ll liable to change)     Now handling font encoding LHE ...     ... no UTF-8 mapping file for font encoding LHE     )     No file Throwme.aux.     \openout1 = `Throwme.aux'.          LaTeX Font Info:    Checking defaults for OML/cmm/m/it on input line 4.     LaTeX Font Info:    ... okay on input line 4.     LaTeX Font Info:    Checking defaults for T1/cmr/m/n on input line 4.     LaTeX Font Info:    ... okay on input line 4.     LaTeX Font Info:    Checking defaults for OT1/cmr/m/n on input line 4.     LaTeX Font Info:    ... okay on input line 4.     LaTeX Font Info:    Checking defaults for OMS/cmsy/m/n on input line 4.     LaTeX Font Info:    ... okay on input line 4.     LaTeX Font Info:    Checking defaults for OMX/cmex/m/n on input line 4.     LaTeX Font Info:    ... okay on input line 4.     LaTeX Font Info:    Checking defaults for U/cmr/m/n on input line 4.     LaTeX Font Info:    ... okay on input line 4.     LaTeX Font Info:    Checking defaults for LHE/cmr/m/n on input line 4.     LaTeX Font Info:    Try loading font information for LHE+cmr on input line 4.     (/usr/share/texlive/texmf-dist/tex/generic/babel-hebrew/lhecmr.fd     File: lhecmr.fd 2005/05/20 v1.2c Hebrew default font (test version: still liabl     e to change)     )     LaTeX Font Info:    ... okay on input line 4.          ! Font LHE/cmr/m/n/10=jerus10 at 10.0pt not loadable: Metric (TFM) file not fou     nd.     <to be read again>                         relax      l.4 \begin{document}          I wasn't able to read the size data for this font,     so I will ignore the font specification.     [Wizards can fix TFM files using TFtoPL/PLtoTF.]     You might try inserting a different font spec;     e.g., type `I\font<same font id>=<substitute font name>'.          (./Throwme.aux) )      Here is how much of TeX's memory you used:      1042 strings out of 493307      11870 string characters out of 6139905      68160 words of memory out of 5000000      4545 multiletter control sequences out of 15000+600000      3640 words of font info for 14 fonts, out of 8000000 for 9000      957 hyphenation exceptions out of 8191      24i,1n,23p,169b,43s stack positions out of 5000i,500n,10000p,200000b,80000s          No pages of output.     PDF statistics:      0 PDF objects out of 1000 (max. 8388607)      0 named destinations out of 1000 (max. 500000)      1 words of extra memory for PDF output out of 10000 (max. 10000000)


title: What are some quick ways to turn an article into presentation slides?

text: My article is like               \documentclass[10pt,a4paper]{article}     \usepackage[latin1]{inputenc}     \usepackage{amsmath}     \usepackage{amsfonts}     \usepackage{amssymb}     \begin{document}          \section*{...}     ...          \section*{...}     ...          \end{document}      I wonder what are some quick ways to turn it into slides? Or is it viewable if projecting the article directly on a screen hanging from a wall in a classroom using general equipments?


title: How to adjust brace size for nested braces?

text: How can I adjust the size of the outer braces to make the following equation neater?               \documentclass[a4paper]{scrreprt}     \usepackage{amsmath}     \begin{document}     \[         M = \left\{ x \in X :             \begin{cases} p(x) > 0 \\ q(x) > 0 \end{cases}         \right\}     \]     \end{document}      ![enter image description here](http://i.stack.imgur.com/fztXu.png)


title: Long Hyperlinks in Tex

text: I am having again a problem with too long hyperlinks. The code will be generated automatically. Thats why it is almost impossible to correct it manually, as the document will be too long. Basically the problem is the jusitification of hyperlink in second line in attached picture. Is there a way out to this problem? Thanks alot!!!               \documentclass[obeyspaces,spaces,a4paper,fleqn]{report}      \usepackage{hyperref}      \hypersetup{plainpages = false, colorlinks, linkcolor = blue, urlcolor = blue, hypertexnames = false, bookmarksopen = true, bookmarksopenlevel = 0, bookmarksdepth = 10}      \begin{document}           \begin{figure}[H]      \setlength{\unitlength}{1cm}      \begin{picture}(7,22.7456)      \put(0,0){\includegraphics[scale=0.1666]{can_PDFs/00000000002_CANScalings.pdf}}      \end{picture}      \caption{\protect\path{can/CAN_Scalings}}      \label{can/CANScalings}      \end{figure}           {\large Children:}     \hyperref[can/CANScalings/SkalierungACLNXCOGACLNLNRWDTRWDTACLNVEHLNZwei]{\protect\path {Skalierung_ACLNX_COG__ACLN_LN_RWDT__RWDT_ACLN_VEH_LN2}};     \hyperref[can/CANScalings/SkalierungACLNYCOG]{\protect\path{Skalierung_ACLNY_COG}};      \hyperref[can/CANScalings/SkalierungAVLBRTORQSUMAVLBRTORQSUMDVCH]{\protect\path{Skalierung_AVL_BRTORQ_SUM__AVL_BRTORQ_SUM_DVCH}};      \hyperref[can/CANScalings/SkalierungAVLFORCBRKFA]{\protect\path{Skalierung_AVL_FORC_BRKFA}};      \hyperref[can/CANScalings/SkalierungAVLHVEKKAVLULINK]{\protect\path{Skalierung_AVL_HV_EKK__AVL_U_LINK}};           \hyperref[can/CANScalings/SkalierungAVLLOGRRW]{\protect\path{Skalierung_AVL_LOGR_RW}};      \hyperref[can/CANScalings/SkalierungAVLSTEAFTAXWHL]{\protect\path{Skalierung_AVL_STEA_FTAX_WHL}};      \hyperref[can/CANScalings/SkalierungDISPHR]{\protect\path{Skalierung_DISP_HR}};           \hyperref[can/CANScalings/SkalierungAVLRPMWHLFLHAVLRPMWHLFRHAVLRPMWHLRLHAVLRPMWHLRRHNRadZwei]{\protect\path{Skalierung_AVL_RPM_WHL_FLH__AVL_RPM_WHL_FRH__AVL_RPM_WHL_RLH__AVL_RPM_WHL_RRH__N_Rad2}};           \hyperref[can/CANScalings/SkalierungCHGNGENBEins]{\protect\path{Skalierung_CHGNG_ENB1}};      \hyperref[can/CANScalings/SkalierungDISPDATEDAY]{\protect\path{Skalierung_DISP_DATE_DAY}};      \hyperref[can/CANScalings/SkalierungDISPDATEWDAY]{\protect\path{Skalierung_DISP_DATE_WDAY}};           \hyperref[can/CANScalings/SkalierungDISPMN]{\protect\path{Skalierung_DISP_MN}};      \hyperref[can/CANScalings/SkalierungDISPSEC]{\protect\path{Skalierung_DISP_SEC}};      \hyperref[can/CANScalings/SkalierungFLLVFUTA]{\protect\path{Skalierung_FLLV_FUTA}};      \hyperref[can/CANScalings/SkalierungIDZwei]{\protect\path{Skalierung_ID2}};           \hyperref[can/CANScalings/SkalierungDISPPOGRBTARPOGRBTRGGPOGRB]{\protect\path{Skalierung_DISP_PO_GRB__TAR_PO_GRB__TRGG_PO_GRB}};           \hyperref[can/CANScalings/SkalierungDVCOVEHSTVEHDVCODRVDIRVEHUCNFRDRVDIRVEHCFD]{\protect\path{Skalierung_DVCO_VEH__ST_VEH_DVCO__DRVDIR_VEH_UCNFR__DRVDIR_VEH_CFD}};           \hyperref[can/CANScalings/SkalierungFLLVFUTALH]{\protect\path{Skalierung_FLLV_FUTA_LH}};      \hyperref[can/CANScalings/SkalierungFLLVFUTARH]{\protect\path{Skalierung_FLLV_FUTA_RH}};      \hyperref[can/CANScalings/SkalierungMASSVEH]{\protect\path{Skalierung_MASS_VEH}};           \hyperref[can/CANScalings/SkalierungGangSTGRSELGRBSTGRSELGRBSBWSTGRSELDRVSTGRSELGRBVRFDSTGRDTKickout]{\protect\path{Skalierung_Gang__ST_GRSEL_GRB__ST_GRSEL_GRB_SBW__ST_GRSEL_DRV__ST_GRSEL_GRB_VRFD__ST_GRDT_Kickout}};           \hyperref[can/CANScalings/SkalierungIDOBDSENERROBDSENEinsERROBDSENZweiRWDTOBDSENEinsRWDTOBDSENZwei]{\protect\path{Skalierung_ID_OBD_SEN__ERR_OBD_SEN_1__ERR_OBD_SEN_2__RWDT_OBD_SEN_1__RWDT_OBD_SEN_2}};           \hyperref[can/CANScalings/SkalierungMDMOTEFF]{\protect\path{Skalierung_MD_MOT_EFF}};      \hyperref[can/CANScalings/SkalierungMILEKM]{\protect\path{Skalierung_MILE_KM}};      \hyperref[can/CANScalings/SkalierungRELLUFTMASSE]{\protect\path{Skalierung_REL_LUFTMASSE}};           \hyperref[can/CANScalings/SkalierungQUTARWMOMPTSUMRECUP]{\protect\path{Skalierung_QU_TAR_WMOM_PT_SUM_RECUP}};      \hyperref[can/CANScalings/SkalierungRQCOOLGRB]{\protect\path{Skalierung_RQ_COOL_GRB}};           \hyperref[can/CANScalings/SkalierungRQHTFLAIC]{\protect\path{Skalierung_RQ_HTFL_AIC}};      \hyperref[can/CANScalings/SkalierungRWDTBLS]{\protect\path{Skalierung_RWDT_BLS}};      \hyperref[can/CANScalings/SkalierungSTCCLTGRB]{\protect\path{Skalierung_ST_CCLT_GRB}};           \hyperref[can/CANScalings/SkalierungSLIPRELFTAXBAX]{\protect\path{Skalierung_SLIP_REL_FTAX_BAX}};      \hyperref[can/CANScalings/SkalierungSTGRBECUKickoutZwei]{\protect\path{Skalierung_ST_GRB_ECU_Kickout2}};           \end{document}      ![enter image description here](http://i.stack.imgur.com/4a9xr.png)


title: Alignment of multi-columns and line breaks within cells

text: I am failing to set up a complex APA table once again. Actually, I need a table like shown below: ![The Monster](http://i.stack.imgur.com/2kvdX.jpg) My current MWE:               \documentclass[12pt,ngerman]{article}     \usepackage[utf8]{inputenc}      \usepackage{tabularx}      \usepackage{booktabs}          \begin{document}              \begin{table}[!htb]         \begin{tabularx}{\textwidth}{Xcccccccccccc}  \toprule          & Dropout yes/no &  & & & & & & & & & \\         & No dropout & & & dropout & & & $MW_{dif}$ & $95\% CI for MW_{dif}$  & $t$ & $df$ & $d$ \\ \hline         & $MW$ & $SD$ & $N$ & $MW$ & $SD$ & $N$ & & & & & \\          General self-efficacy & $10$ & $2$ & $7$ & $29$ & $2$ & $7$ & $8$ & $23.50, 51.00$ & $2.12*$ & $12$ & $0.55$ \\          \bottomrule         \end{tabularx}     \end{table}          \end{document}      Problem 1: How do I align the upper part (Dropout yes/no) middle to both main areas no dropout and dropout? Vice versa, how do I align the second line to the MW-SD-N? Problem 2: How do I achieve a line in the main areas which is just including MW/SD and N each?


title: Different format styles for section and appendix titles

text: I'm using the `appendix` and `titlesec` packages to control section titles and formatting. I would like to redefine the appearance of appendix section titles: How can I define the appendix title style to be (1) flush right, (2) centered vertically, and, (3) appear on one page by itself?. How do I accomplish this without redefining the appearance of the section titles in the body of the document? Here is the MWE:               \documentclass{article}     \usepackage[title,toc,titletoc]{appendix}     \usepackage{titlesec}     \newcommand{\sectionbreak}{\clearpage} % To make each section start on a new page     \usepackage{lipsum}          \begin{document}          \section{Section title}     \lipsum[4]          \begin{appendices}     \section{Appendix title}     \lipsum[4]     \end{appendices}          \end{document}


title: Beamer: Increase square enumerate size when using 14pt font

text: I'm using beamer with 14pt and when I use enumerate or itemize it doesn't look just right: ![itemize example](http://i.imgur.com/hBfKn1Y.png) I'd like to have:   * The squares slightly larger   * The squares centered vertically I have tried to play around with:               \setbeamertemplate{enumerate item}     {%       \hbox{%         \usebeamerfont*{item projected}%         \usebeamercolor[bg]{item projected}%         \vrule width3.25ex height3.85ex depth.4ex%         \hskip-3.25ex%         \hbox to3.25ex{%           \hfil%           \color{fg}\insertenumlabel%           \hfil}%       }%     }      which does make the bullet larger but how could I make the `\insertnumlabel` larger? And how would I center it?


title: Basic Document Set up and use of fuzz

text: I am very new to using Latex and am using TexStudio. I am trying to answer my latest university assignment about Z notation formal specification but am getting a couple of errors: 1) I get the error `"Illegal unit of measure (pt inserted) \ProcessOptionsKV[p]{Gm} on line 994"`. I don't get There are only 133 lines so I don't understand what is wrong. The document does successfully compile. 2) I also have a problem when running the file through FUZZ. Fuzz gives me the error `""Q1_4.tex", line 16: Syntax error at symbol"`. Line 16 is as below:               \begin{schema}{NAME}          my declaration            \where          my predicate          \end{schema}      I suspect that both these problems reside in the document header/set up which is as below. I copied this from some sample documents and most of it doesn't mean much to me.               \documentclass [fuzz]{article}          \usepackage{amsmath}          \usepackage{hyperref}          \usepackage{color,graphicx}          \usepackage[top=20,left=10mm,right=10mm,bottom=20]{geometry}          \usepackage{zed-csp}          \def\fuzz{{\large\it f\kern0.1em}{\normalsize\sc fuzz}}          \let\Fuzz=\fuzz          \def\ZRM{{\rm ZRM}}      I would be grateful for some help to fix these issues. Chris


title: Underlining an equation in an align block

text: I'm trying to set up a system of equations and want to underline the last equation, but can't figure it out. Here's what I have:               \begin{alignat*}{4}     &F_n &- mg &- F_a\sin 32^\circ &= 0\\     -&\mu F_n & &+ F_a\cos 32^\circ &= 0\\     \end{alignat*}      After this I want line, and then the answer. I tried `\underline`, but that gave me errors. I also tried using `\line`, but that would give errors in the block or be too far away from the equations outside of the block. Any help would be greatly appreciated!


title: Drawing chamber or container in tikz

text: I want to make the following diagram. I know the basics of tikz but here I'm struggling. Can you advise me how to make the container with seedlings? Thanks for your help. ![enter image description here](http://i.stack.imgur.com/SySfg.png)


title: openright sections in article class

text: Is there a way to achieve something like `openright`, but for sections in the article class? The MWE would be somthing like this, real simple:               \documentclass{article}     \begin{document}          \tableofcontents          \section{Number 1}     Some text...     \section{Number 2}     Some text...     \section{Number 3}     Some text...     \section{Number 4}     Some text...          \end{document}      But every section should start on the right page.


title: Context Project Seems to Ignore Products

text: When I typeset the following project, it seems that the products aren't being found. I can typeset the product itself without any trouble, but typsetting the project as a whole doesn't generate a PDF because , I assume, it can't find the products.               % Sam.tex     \environment Style     \startproject Sam         \product Introduction     \stopproject          % Introduction.tex     \environment Style     \project Sam     \startproduct Introduction         \component Section1     \stopproduct          % Section1.tex     \environment Style     \project Sam     \product Introduction     \startcomponent Section1         Some content...     \stopcomponent      All files are, for simplicity, in the same directory. I have tried other directory structures, making the appropriate changes in the environment file. I recently updated my context version and now none of my projects typeset. Any suggestions?


title: Undefined control sequence when adding math comment to \WHILE

text: I'm pretty new to (La)TeX so please forgive me if this question is stupid :) I have an algorithm that is typeset with the `algorithm` and `algorithmic` packages. Then I have this in the algorithm:               \WHILE[growingPhase returns $topK \eq \emptyset$ \OR $\sum_{u_i^-} > k^{th}score$]     {$\exists S_i$ such that $S_i \neq \emptyset$ \AND $growingPhase()$}      Which gives me an undefined control sequence error. The same line without the comment works fine:               \WHILE{$\exists S_i$ such that $S_i \neq \emptyset$ \AND $growingPhase()$}      Also another while works fine with comments:               \WHILE[latice.maxUpperBound is the largest upper bound among the objects in the latice when fullUpdate() or lightUpdate() was last called]     {$\exists S_i$ such that $S_i \neq \emptyset$ \AND $latice.maxUpperBound > k^{th}score$}      So I'm pretty sure it's not the comment, rather the math or the `\OR` in the comment that makes the trouble... A minimum (non)working example is:               \documentclass[twoside,11pt,openright]{report}          \usepackage[utf8]{inputenc}     \usepackage[danish]{babel}     \usepackage{a4}     \usepackage{latexsym}     \usepackage{amssymb}     \usepackage{amsmath}     \usepackage{epsfig}     \usepackage[T1]{fontenc}     \usepackage{lmodern}     \usepackage[labeled]{multibib}     \usepackage{color}     \usepackage{datetime}     \usepackage{epstopdf}     \usepackage{subfig}     \usepackage{algorithm}     \usepackage{algorithmic}          \renewcommand{\algorithmicrequire}{\textbf{Input:}}     \renewcommand{\algorithmicensure}{\textbf{Output:}}     \renewcommand{\algorithmicforall}{\textbf{for each}}     \renewcommand{\algorithmiccomment}[1]{\hfill// \textit{#1}}          \algsetup{linenosize=\tiny}     \captionsetup[algorithm]{font={scriptsize}}          \begin{document}          \begin{algorithm}     \begin{algorithmic}[1]     \WHILE[growingPhase returns $topK \eq \emptyset$ \OR $\sum_{u_i^-} > k^{th}score$]{$\exists S_i$ such that $S_i \neq \emptyset$ \AND $growingPhase()$}     \ENDWHILE     \end{algorithmic}     \end{algorithm}     \end{document}      (also the comment gives the same error when used in a `\COMMENT{}` macro.)


title: Crop entire document around figure

text: Have you ever submitted a LaTeX paper to a journal that wants _separate_ figures? When you want to include a figure composed of a table of images, you must build it separately. When I run `latexpdf`, I get an entire 8.5 x 11 page, even when I remove the page number. Is there a way to "autocrop" my built pdf as I compile it from LaTeX? I suppose I could open it in inkscape and crop and save it, but I'd really like to learn how to do this the _right way_.


title: Latin Modern Roman for TTF

text: I can not find **TTF** version of popular LaTeX font family: **Latin Modern Roman**. I have found only **OTF** version. Is there any restrictions about **TTF** implementation or I am bad in searching?


title: How to remove month from bibliography using biber?

text: > **Possible Duplicate:**   >  Disable month in biblatex bibliography?   >  How to print only year (no day/month) with Biblatex I use _(Author Year)_ as citation style and want to create a bibliography with _Author (Year): Title_. However when I use the following command, I get _Author (Year, Month)_ in my bibliography:               \usepackage[backend=biber,style=authoryear,isbn=false,dashed=true]{biblatex}      How can I make biber generate the bibliography style I want, i.e. withouth the months (and maybe even days)?


title: How to print only year (no day/month) with Biblatex

text: I would like to have Biblatex print **only the year** of a publication in the bibliography. Currently it shows the year, month and day. The "date" option (e.g. date=iso8601) can't do that.


title: Generating smartphone-readable pdf

text: Often my students want to look at my lecture notes on their phones. Obviously no one wants to do that routinely, but it is often convenient if you do not have a paper copy to hand and you just want to look up an isolated fact. I have A4 size pdfs on the web, which one can just about read on a phone, but it is quite awkward. Does anyone have a good set of options that they have tested for generating phone-readable pdfs from LaTeX? UPDATE: In case anyone is interested, after following silex's suggestions I produced this: http://neil- strickland.staff.shef.ac.uk/courses/MAS201/MAS201_phone.pdf


title: Using skip (glue) with pgfmath (truncating plus/minus parts from a glue length)?

text: Consider the following MWE:               \documentclass{article}          \usepackage{tikz}     \newlength{\tlen}     \newlength{\tlenB}          \begin{document}          \setlength{\tlen}{2cm}     \typeout{check 1, tlen is: \the\tlen}     \pgfmathsetlength{\tlenB}{2cm}     \typeout{check 1, tlenB is: \the\tlenB}          \setlength{\tlen}{2cm plus 2pt minus 1pt}     \typeout{check 2, tlen is: \the\tlen}     \pgfmathsetlength{\tlenB}{2cm plus 2pt minus 1pt}     \typeout{check 2, tlenB is: \the\tlenB}          \end{document}      It results with this output:               This is pdfTeX, Version 3.1415926-2.3-1.40.12 (TeX Live 2011)     ...     check 1, tlen is: 56.9055pt     check 1, tlenB is: 56.9055pt     check 2, tlen is: 56.9055pt plus 2.0pt minus 1.0pt          ! Package PGF Math Error: Unknown operator `p' or `pl' (in '2cm plus 2pt minus      1pt').          See the PGF Math package documentation for explanation.     Type  H <return>  for immediate help.      ...                                                        l.15 ...hsetlength{\tlenB}{2cm plus 2pt minus 1pt}      So, apparently `\pgfmathsetlength` (or `pgfmath` in general?) cannot handle glue-type lengths, in particular the `plus` and `minus` parts. What option do I have in using ~~glue-type length~~ skip with `pgfmath`? If nothing better is possible, then I'd settle for the fixed part only (i.e. I could live with the `plus`/`minus` stretchable/shrinkable parts being truncated)... (Note to self: good intro on glues here: What is glue stretching?)


title: What is the proper way to format syntax within ConTeXt?

text: For some time, I have thought, perhaps mistakenly, that the precise placement or spacing around ConTeXt syntax was unimportant, e.g., under this assumption, all of these should produce the same results:               \setupbodyfont[stsong,12pt]          \setupbodyfont[stsong, 12 pt]          \setupbodyfont    [stsong, 12 pt]          \setupbodyfont[         stsong, 12 pt     ]          \setupbodyfont         [             stsong, 12 pt         ]      I have, however, found some small problems appeared in my document, because I was improperly placing the syntax, e.g., this will not work:               \setuplayout[         grid=yes,         margin=10cm     ]      This suggests that placement is perhaps important. I have also discovered some additional spaces appearing in my document, e.g., between `)` and `,`, and it is likely the result of improper syntax formatting.   * Are there limits to the customization one can apply in placing ConTeXt syntax? Is there a proper way to format the syntax?   * Are the rules for placing `%`'s at the end of lines exactly the same as that used in LaTeX, as described in Where are the necessary places to be appended with % to remove unwanted spaces?? How does this apply to ConTeXt's use of square brackets?


title: How can I easily display the dimensions of the text body?

text: I want to design an image filling the whole page using Illustrator, with the right dpi and dimensions. To accomplish this, I need to know the precise dimensions of the text body (Numbers 7 and 8 in the image below). How can I easily accomplish this? I could of course just subtract the borders from the page dimensions, but is there another way, e. g. a package which does that? Thanks a lot. ![enter image description here](http://i.stack.imgur.com/mvd9C.png)


title: Tufte-LaTeX clobbers my list of theorems

text: when using the "article" document class I can make a "List of Theorems" like so:               \documentclass{article}     %\documentclass{tufte-book}     \usepackage{thmtools}     \newtheorem{theorem}{Theorem}          \begin{document}     \listoftheorems          \begin{theorem}     A deep theorem.     \end{theorem}          \end{document}      However, if I switch to "tufte-book" document class, my list of theorems is no longer generated. How do I get it back? Thanks!


title: Drawing spherical harmonics with pst-3dplot

text: For my lecture notes in theoretical physics (namely quantum mechanics) I'm trying to visualize the spherical harmonics. I got Mathematica to plot them an this is what I did:               SphericalPlot3D[(Sqrt[3/(4*Pi)]*Sin[theta]*Cos[phi])^2,       {theta, 0, Pi}, {phi, 0, 2*Pi}, PlotRange -> All, PlotPoints -> 50]      That gives me this picture: ![Spherical Harmonic](http://i.stack.imgur.com/jyxNa.png) Now I want to plot it using `pst-3dplot` (or `pst-solides3d`) but I don't know how since there is no option like `SphericalPlot3D`. I tried using `\parametricplotThreeD` but this doesn't output anything useful. Here is my MWE for this               \documentclass{minimal}     \usepackage{pst-3dplot}     \begin{document}          \centering     \psset{algebraic=true}     \begin{pspicture}(-2,-3.5)(4,0)       \parametricplotThreeD[SphericalCoor=true](0,\psPi)(0,\psPiTwo)%         {t | u | (sqrt(3/(4*\psPi))*sin(t)*cos(u))^2}     \end{pspicture}          \end{document}      This is the output ![Useless image](http://i.stack.imgur.com/vB5LM.png) Thanks in advance.


title: \setstretch is reset in \begin{figure}

text: I use `\setstretch{1.3}` to increase line spacing. It does increase line spacing in `tabular` environments as well, which is what I want. But if the `tabular` is in a `figure` environment, line spacing is back down to 1. This acrticle: baselinestretch vs. setspace suggests setting `\renewcommand{\arraystretch}{1.2}`, but it will affect all my `tabular`s, regardless of `figure` environments. Is there a way to force `\setstretch` for `figure` environments as well? **EDIT:** Here is a MWE:               \documentclass{article}     \usepackage{lipsum}     \usepackage{setspace}          \begin{document}     \setstretch{1.3}          \lipsum[1]          \bigskip     \begin{tabular}{ r | r | r }              7168 &       1623040  &  28.30    \\             14336 &       3228672  &  28.15    \\             28160 &       6439936  &  28.59    \\             56320 &      12862464  &  28.55    \\            110592 &      25707520  &  29.06    \\     \end{tabular}          \begin{figure}[h]     \begin{tabular}{ r | r | r }              7168 &       1623040  &  28.30    \\             14336 &       3228672  &  28.15    \\             28160 &       6439936  &  28.59    \\             56320 &      12862464  &  28.55    \\            110592 &      25707520  &  29.06    \\     \end{tabular}     \end{figure}          \end{document}


title: Wrong (hyper-)references after resetting chapter counter

text: The following MWE produces a PDF whose TOC has two entries: “Foo” and “Bar” with correct page numbers. So far, so good. However, upon clicking on the link to “Bar”, I am taken to the page for “Foo” instead.               \documentclass{report}     \usepackage{hyperref}     \newcommand*\backmatter{\setcounter{chapter}{0}}          \begin{document}     \tableofcontents     \chapter{Foo}     \backmatter     \chapter{Bar}     \end{document}      (Produced with `pdflatex`, run twice.) This MWE is whittled down from a ( _much_!) more complex document but the above does seem to reproduce the error reliably. Re-setting the chapter count seems to confuse hyperref, even though the page references are still accurate. Notice that in my real document, `\backmatter` does other things, including setting the numbering style to alphabetical so there’s no chance of confusion even though both chapters are ostensibly labelled as “Chapter 1”. **How do I fix this?** Is this a bug? Are there workarounds?


title: Use three chapter title definitions

text: my chapter titles are rather long, which is not a problem on text pages, but for the ToC. Hence, I use this command to provide two versions:               \chapter[Category\\ This is my long title]{Category -- This is my long title}      This works well, of course :-) Now my problem is that I'm using the `memoir` package, which places the chapter title on every odd page. For this, it uses the the chapter title provided for the ToC, but I want to use the other one to avoid line breaks in my header bar. Maybe I could provide three chapter titles, one for the text page, one for the ToC, and one for the header bar?! Following my MWE. The resulting PDF illustrates on pages 3 and 4 a line break in the head row of the page I would like to avoid. Thank you!               \documentclass[12pt,twoside,openright,a4paper,oldfontcommands]{memoir}     \usepackage{lipsum}     \usepackage{soul}     \usepackage{tikz}          \renewcommand*{\cftchapterfont}{\bfseries}     \renewcommand*{\cftchapterleader}{\bfseries\cftdotfill{\cftchapterdotsep}}     \renewcommand*{\cftchapterpagefont}{\bfseries}     \renewcommand*{\cftchaptername}{Chapter }     \renewcommand{\cftchapteraftersnum}{~|~}          \chapterstyle{madsen}     \pagestyle{companion}          \makeindex          \begin{document}          \tableofcontents*          \chapter[Category\\ This is my very long title]{Category -- This is my very long title}     \lipsum[1-2]     \section{Test ABC}     \lipsum[1-2]     \section{Test ABC}     \lipsum[1-2]     \section{Test ABC}     \lipsum[1-2]     \end{document}


title: Bug with xelatex and -recorder option?

text: I try using xelatex to produce a record of all opened files:               \documentclass{minimal}     \begin{document} X \end{document}      But the output is the following:               PWD /home/jcdubacq/Documents/activites/compile-latex/tests     INPUT /etc/texmf/web2c/texmf.cnf     INPUT /usr/share/texlive/texmf/web2c/texmf.cnf     INPUT /var/lib/texmf/web2c/xetex/xelatex.fmt     INPUT a.tex     OUTPUT a.log     INPUT /usr/share/texlive/texmf-dist/tex/latex/base/minimal.cls     INPUT /usr/share/texlive/texmf-dist/tex/latex/base/minimal.cls     INPUT a.aux     INPUT a.aux     OUTPUT a.aux     INPUT a.aux      See? No a.pdf OUTPUT. And if I try using fonts, nothing either about these fonts (using the wikipedia example for xetex, no match for anything related to fonts appears, even though I expect the program to read something about Libertine fonts). In xdv mode, the OUTPUT a.xdv line is present, but that does not help (I want to know all files used by the pdf production, and strace is available only for Linux ; I am targetting OSX, too). Is that a bug? A feature? Am I alone in the universe (to experience this)? Thanks,


title: Aligning items inside a list

text: I'm trying to recreate a list in some work I'm doing and struggling to get all of the component parts to align. ![Image of what I'm trying to get](http://imgur.com/ibMomiN.png) The list in the middle there is what I'm trying to replicate. Does anyone have any insight as to what commands I could use?


title: Put a beamerbox at the top of the frame, even if the frame is vertically centered

text: How can I put a beamerbox at the top of the frame, even if the frame is vertically centered? I know \frametitle just does this! So you can reformulate my question: how frametitle does this? Here is my MWE playing with \vfill... Problem: Top text is not at the top.   (Center text looks fine)               \documentclass[10pt]{beamer}     \usepackage[T1]{fontenc}\usepackage[utf8]{inputenc}          \begin{document}     \begin{frame}         \begin{beamercolorbox}{frametitle}             top text         \end{beamercolorbox}         \vfill         center text         \end{frame}     \end{document}enter code here


title: Redefine the style of acronyms (glossaries)

text: In a paper I'm writing I would like to enter a list of acronyms used, and I'm trying to do with the use of `glossaries` package. The problem is the style in which they appear acronyms. A compilable code is this:               % arara: pdflatex: {synctex: yes}     % arara: makeglossaries     % arara: pdflatex: {synctex: yes}          \documentclass{article}          \usepackage{glossaries}     \usepackage{etoolbox}          \DeclareRobustCommand*{\acronimo}[1]{%       \mbox{\sffamily\scshape\MakeLowercase{#1}}}          \makeglossaries     \newacronym{AAA}{AAA}{Abcde Abcde Abcde}          \begin{document}          \gls{AAA}          \printglossaries          \end{document}      I would like to get all the acronyms in the short form (the acronym in fact, and without parentheses), also the first use of `\gls.` Also I wish this acronym was with the style that is defined by the command `\acronym`. Of course, the list of acronyms, next to each of them, it must appear to his description (in my example "Abcde Abcde Abcde"). You can do this? Is there anyone who can give me a hand?


title: Strange page numbers in PDF

text: I generate my pdfs using MikTex 2.9 on Windows 7. On W7 everything looks good. On my other computer where I have CentOS release 5.2 (Final) installed I experience strange display on page numbers. On that computer I use Adobe Reader ver 9.4.2 02/11/2011. Images below are examples of how it looks like on Page Navigation toolbar:   ![](http://i.stack.imgur.com/1d2zE.jpg) (this should be page A)   ![](http://i.stack.imgur.com/IQWp2.jpg) (this should be page 3) In my document I include 2-page pdf at a beginning (pages A and B). Next, there are tex-generated pages (pages 1 to 17). My input tex document is saved using Unicode encoding. I know this might not be latex issue, but can I do something in it, so I don't get those glitches on CentOS version of Adobe Reader?


title: BiBTeX in WinEdt

text: I have a problem. Using WinEdt try to make my bibliography with the bibtex file. But get the following message               This is BibTeX, Version 0.99c (MiKTeX 2.8)     The top-level auxiliary file: report_q_cdc11.aux     The style file: unsrt.bst     I couldn't open database file biblio/1755988.bib     ---line 62 of file report_q_cdc11.aux     : \bibdata{biblio/1755988     :                        }     I'm skipping whatever remains of this command     I found no database files---while reading file report_q_cdc11.aux     (There were 2 error messages) Could you please tell me, what can be wrong? This bibtex file I just downloaded from web.


title: Emulate TeX's grouping

text: In TeX, various kinds of groups must match properly, for instance, the following is wrong:               $ \begingroup $ \endgroup      I would like macros which allow such mismatched grouping. They would keep certain marked assignments "local" to their grouping. For instance,               % Define \openA, \openB, \localA, \localB.     \def\foo{}     \def\baz{}     \openA     \localA\def\foo{Hello}     \openB     \localB\def\baz{Hello}     \message{\foo,\baz} % "Hello,Hello"     \closeA     \message{\foo,\baz} % ",Hello"     \closeB     \message{\foo,\baz} % ","      I am open to variations on the precise syntax, and to a solution in any engine with any package. Try be as close as possible to supporting all assignments. EDIT: What I really want is a way of keeping some assignments local to groups which are independent of TeX's own. It just seemed easier to phrase the question in this way, and I think that solutions to both questions are identical. To make things concrete, imagine that I want to convert `(*-abc*+def(*?gh(i*-jk)lm)no)` into `a-b-c-d+e+f+g?h?i?j-k-l?m?n+o+`. The rule would be that `*` defines the next character as the "current character", locally to parenthesized groups, and that the "current character" should be inserted after each other normal character. The easiest way to do that is to use TeX's grouping to keep the value of the "current character" local. For instance,               \def\convert#1{%       \def\storage{}%       \def\currentchar{}%       \readone#1\relax     }     \def\readone#1{%       \global\let\next\readone       \ifx#1\relax \global\let\next\relax       \else         \ifx#1(\begingroup         \else           \ifx#1)\endgroup           \else             \ifx#1*\let\next\star             \else \xdef\storage{\storage #1\currentchar}%             \fi           \fi         \fi       \fi       \next     }      The problem with that approach is that `\storage` must be modified globally, since the assignments happen within TeX's groups. In that particular application, it is not a problem. In my application (to the construction of an automaton for regular expression matching), I would end up doing global assignments to arbitrary token registers, which is _very_ bad. Two solutions: either carry the value of `\storage` (all token registers) past each `\endgroup`, or restore the `\currentchar` at each `\endgroup`. In my true application, that second option is probably better, hence my question.


title: How to get the algorithm2e package?

text: I am trying to compile a document I built on another computer using `algorithm2e`. I keep getting errors when I try to build it with TeXworks. I suspect I get those errors because it cannot find the `algorithm2e` package. However I don't know how to get this package on my MiKTeX.


title: Linespread in titlepage with \huge

text: What is the right way to increase the line height or spacing between lines in the `titlepage` environment when you have `\huge` titles? I tried to increase it using the `\linespread` command but whatever value I give it, the two lines of the title remain too tight with each other, with a couple of letters `g` and `f` that happened to be underneath each other ending up touching each other. **Update** Here is a sample of what I have in my `titlepage`:               \documentclass[10pt,a4paper]{report}     \usepackage[utf8]{inputenc}     \usepackage{amsmath}     \usepackage{amsfonts}     \usepackage{amssymb}     \usepackage{times}               \begin{document}     \begin{titlepage}     \begin{center}          \newcommand{\HRule}{\rule{\linewidth}{0.5mm}} % Defines a new command for the horizontal lines, change thickness here          \center % Center everything on the page         \HRule \\[0.4cm]         { \huge \bfseries \linespread{2.0} This is a sample of a long title which I wish to get a little more line spacing for but linespread doesn't seem to work.}\\[0.4cm]          \HRule \\[1.5cm]           \vfill % Fill the rest of the page with whitespace          \end{center}     \end{titlepage}          \end{document}


title: Size of Sweave Output

text: I am very new to LaTeX and Sweave, and I am just playing around with getting some output. That said, the "output" I am getting is very large in size (physcially on the page). For example, one output from a 2x3 crosstab takes up a whole 8.5x11 page. If I try to use the same output in a beamer presentation, maybe 30% of the output fits on 1 slide. Simply, when pushing output from R using Sweave, how can I control the size of the output? Thanks in advance! EDIT: Below is a code snipped within my .Rnw file (before Sweave processing)               <<echo=FALSE>>=     cat("Education by Induced")     cat("\n")     CrossTable(infert$education, infert$induced, expected = TRUE, format="SPSS")     @


title: How to write a parameter-driven macro?

text: An specific question is as follows: > I hope that I can define a macro that can switch to different typefaces. We > assume that this macro is named `\myfonts`, so, if I type `{\myfonts > throughout his life, Einstein published hundreds of books and articles.}`, > the typeface will be the default `Minion Pro`. But if I pass a parameter to > that macro, for example, `{\myfonts{palatino} ...}`, it will become the > `Palatino` typeface. I have no idea to this question now. In LaTeX, if you say `\documentclass{article}`, it will take `a4paper` and `10pt` as the default, but if you type `\documentclass[b5paper,11pt]{article}`, it will be changed into `b5paper` and `11pt`. I am curious about this: How can I achieve that?


title: Make bibliography not part of previous chapter

text: I'm writing my thesis and I have a problem with references: The references span across two pages. On the top of the second page there is a header (that appears on every page where a new chapter does not begin). The header informs a reader about the current chapter he/she is reading. But in the references it says "Conclusion", which is my last chapter. I would like this not to appear in the references (or say "References"). There are some other chapters after References, that I would like to keep their headers (`\appendix`). This is the code to create references (bibtex):               \bibliographystyle{plain}      \bibliography{thesisrefs}      This makes the headers:               \def\ps@thesisheadings{%     \def\chaptermark##1{%     \markright{%     \ifnum\c@secnumdepth >\m@ne     \thechapter.\ %     \fi ##1}}     \let\@oddfoot\@empty     \let\@oddhead\@empty     \def\@oddhead{\vbox{\hbox to \textwidth{%     \hfil{\sc\rightmark}}\vskip 4pt\hrule}}     \if@twoside      \def\@evenhead{\vbox{\hbox to \textwidth{%      {\sc\rightmark}\hfil}\vskip 4pt\hrule}}     \else      \let\@evenhead\@oddhead     \fi     \def\@oddfoot{\hfil\PageFont\thepage}     \if@twoside      \def\@evenfoot{\PageFont\thepage\hfil}%     \else      \let\@evenfoot\@oddfoot     \fi     }


title: BibTeX generator for webpages

text: Is there any site/tool that get a web page URL and generate a BibTeX entry for it automatically. Zotero will do this after some steps, but I just use Opera and Zotero has not not an Opera-Extension (yet). I am looking for a web site like ottobib.com. It is given an ISBN an returns citation instantly. I need a site that simply get URL and return web citation.


title: How can I draw a TikZ picture in the top left corner of an A4 page disregarding printing limitations?

text: I'm after a way to draw an oval that is in the centre of my page and touches all sides of the A4 page. I need it to happen many times as I'm drawing a complicated graphic. So far I have been hindered by TikZ picture drawing things with default left hand margins and odd positioning offsets and the documentclass apparently putting in pargins "left, right, and centre". I've been at this for 12 hours and gotten nowhere so I thought I'd ask for help. A second question worth answering is when I type in Texmakerx (remembering I'm using pdfLaTeX) something like `\documentclass{}` <- when I type these curly brackets, how can I select from a drop down, all appropriate entries -- or at least find out what the limitations to them are? The following code draws a circle (in a box) with a border I don't want inside that box, adjusted from the left by a distance I don't want. I haven't even begun to investigate what happens near the other borders.               \documentclass[11pt]{article}     \pagestyle{empty}     \usepackage{tikz}     \usepackage{color}     \usepackage[top=0cm,right=0cm,bottom=0cm,left=0cm]{geometry}          \title{Practice}          \begin{document}              \fbox{             \begin{tikzpicture}[node distance=0cm, auto, >=stealth]                 \filldraw [gray] (0,0) circle (2pt);             \end{tikzpicture}         }          \end{document}


title: Strange behavior by \qedhere in align environment without alignment mark (&)

text: I noticed some strange behavior in the `align*` (or just `align`) environment. The code               \begin{proof}       \begin{align*}         C=1 \qedhere       \end{align*}     \end{proof}`      puts overlaps the tombstone with the equation, whereas               \begin{proof}       \begin{align*}         C &=1 \qedhere       \end{align*}     \end{proof}`      properly puts the tombstone to the right. What is causing this strange behavior? What exactly is the ampersand doing here?


title: Understanding \@ifnextchar

text: I understand the definitions of the `\makeatletter` and `\makeatother` commands and also `\def` and `\newcommand` somewhat. But, explained in a simple way, what is happening in the following line?               \@ifnextchar[ \@myitem{\@noitemargtrue\@myitem[\@itemlabel]}}      Of Gonzalo Medina's answer at: Forcing new line after item number in enumerate environment


title: How to make \mid longer?

text: I have the following expression               $$\left\{\varphi\in\text{End}\left({\widetilde{E}/\overline{\F}_{\Pf}}\right)\mid \varphi\text{Frob}_{\Pf}=\text{Frob}_{\Pf}\varphi\right\}$$      and would like to know how to match the length of `\mid` to the length of `\left\\{` and `\right\\}`. Thanks!


title: How can I make a long pipe in mathmode for sets?

text: > **Possible Duplicate:**   >  variable-sized "such that" pipe I currently have this LaTeX code:               \text{Aff}(M) := \left \{ \sum_{i=1}^k \lambda_i p_i | p_i \in M, \lambda_i \in \mathbb{K}, \sum_{i=1}^k \lambda_i = 1\right \}      Which produces this: ![enter image description here](http://i.stack.imgur.com/QBaJZ.png) But I would like to get a long pipe for my set, not this "|" short one. How can I make it long?


title: Sideways figures only are 50 % on the page

text: I am using the Springer Monography class and am trying to include sideway graphics. What always happens is that with rotating the Graphs end up about 50 % to the right of the page. They were fine on landscape, but on landscape the text doesn't float. On Sideways the text floats fine, but now the graphs don't show. See attached screenshot ![Screenshot](http://i.stack.imgur.com/Wmg1a.png)               \begin{sidewaysfigure}          %\begin{landscape}     %\begin{figure}[!htbp]         \centering             \includegraphics[scale=0.9]{C:/Dropbox/Publication/Graphs/CreditMatrix-bw.png}         \caption{Best practices for organization of credit management}         \label{fig:CreditMatrix}         \caption*{Own Diagram}     %\end{figure}     %\end{landscape}     \end{sidewaysfigure}          \documentclass[12pt]{svmono1}     % [graybox,envcountchap,sectrefs]     % choose options for [] as required from the list     % in the Reference Guide          \usepackage{mathptmx}     \usepackage{helvet}     \usepackage{courier}     %     \usepackage{type1cm}      % Mein Teil          \usepackage{setspace}     \usepackage{lscape}     \usepackage{longtable}     \usepackage{booktabs}     \usepackage{fancyhdr}     %\usepackage{harvard}     \usepackage[longnamesfirst]{natbib}     %\usepackage[authoryear]{biblatex}     \usepackage{pdfpages}     \usepackage[ansinew]{inputenc}     %\usepackage[pdftex]{hyperref}     \usepackage{threeparttable}     \usepackage{caption}     \usepackage{acronym}     \usepackage{rotating}


title: latex tab issue spacing

text: I have a table of two rows, the second one consists of 32 columns, each containing its column number (from 0 to 31). I want each column to use as little space as possible (no inter column space), since there are quite a lot of columns. I have done this using `@{}c@{}`. However, I don't like the fact that the columns are not all of the same size (due to the fact that some numbers have 2 digits, and others have only one). Hence I have manually added `@{\hspace{0.7 mm}}c@{\hspace{0.7 mm}}` to each of the columns whose contents in the second row have only 1 digit (the first 10). I am quite pleased with the result. My problem now is with the first row: the first row contains 4 columns, containing 0,1,2,3. Each column in the first row spans 8 columns of the second row. My problem is that the delimiters in the first row aren't aligned with the second row (in the sample below, notice that the delimiter between 7 and 8 is not aligned with the one above). Is there an easier solution to my problem as a whole, or am I in the right direction and I just need to fix this alignment issue ? Sample:               \begin{tabular}{|     % numbers with 1 digit     @{\hspace{0.7 mm}}c@{\hspace{0.7 mm}}|     @{\hspace{0.7 mm}}c@{\hspace{0.7 mm}}|     @{\hspace{0.7 mm}}c@{\hspace{0.7 mm}}|     @{\hspace{0.7 mm}}c@{\hspace{0.7 mm}}|     @{\hspace{0.7 mm}}c@{\hspace{0.7 mm}}|     @{\hspace{0.7 mm}}c@{\hspace{0.7 mm}}|     @{\hspace{0.7 mm}}c@{\hspace{0.7 mm}}|     @{\hspace{0.7 mm}}c@{\hspace{0.7 mm}}|     @{\hspace{0.7 mm}}c@{\hspace{0.7 mm}}|     @{\hspace{0.7 mm}}c@{\hspace{0.7 mm}}|     % numbers with 2 digits     @{}c@{}|@{}c@{}|@{}c@{}|@{}c@{}|@{}c@{}|@{}c@{}|@{}c@{}|@{}c@{}|@{}c@{}|@{}c@{}|@{}c@{}|@{}c@{}|@{}c@{}|@{}c@{}|@{}c@{}|@{}c@{}|@{}c@{}|@{}c@{}|@{}c@{}|@{}c@{}|@{}c@{}|@{}c@{}|}     \hline     \multicolumn{8}{c|}{0}      &\multicolumn{8}{c|}{1}     &\multicolumn{8}{c|}{2}     &\multicolumn{8}{c|}{3}\\     \hline     0&1&2&3&4&5&6&7&8&9&10&11&12&13&14&15&16&17&18&19&20&21&22&23&24&25&26&27&28&29&30&31     \end{tabular}


title: Organizing tables and figures with captions horizontally and vertically

text: I need to organize my tables and figures (with a separate caption for each one) in the following manner:               --------    --------     |      |    |      |     |      |    --------     |      |      Fig 7     |      |    --------     |      |    |      |     --------    --------      Tab 1        Tab 2      **EDIT:** Seems like I miscopied one of the lines in the manual. For future reference, the way to do it using `floatrow` is in page 97 of the documentation: http://mirrors.ibiblio.org/CTAN/macros/latex/contrib/floatrow/floatrow.pdf


title: How can I force a compile error if a ref does not exist?

text: I was curious if there was a way to force the compile to fail if a ref was not already defined. I do not want the ref to actually output anything into the document, but rather just check the existence condition. For example, I want to be able to do something like:               \begin{definition} \label{def C} \requires{def A} \requires{def B}         A \underline{C} is an A and a B such that...  etc etc etc.     \end{definition}       and I do not want the `\requires{def A}` to actually produce output but just enforce that there was somewhere above a `\label{def A}`. Ideally, you could use this for theorems and definitions. This way I can just add any dependencies in my theorems/definitions and not have to worry about whether or not I already defined everything above, the compiler will tell me. Does `cleveref` provide this? If not, how hard would it be to add it? I looked very briefly at the source code but I am not too familiar with the language so it would take me a while.


title: Trimming a vertical line

text: I'm a new user here and was wondering if it is possible to trim a vertical line in a way similar to trimming `\cmidrule`. I would like to apply it to the following:               \documentclass[12pt]{article}     \usepackage{array}     \usepackage{tabu}     \usepackage{booktabs}     \begin{document}     \begin{minipage}[t]{0.45\textwidth}     \[     \arraycolsep=0.1mm     \begin{array}{rrrrrrrrrrrr}      & x^5 && &-& 3x^3 & +& 2x^2&-&x &+&1\\     -&x^5& +& x^4&-& 2x^3\\     \cmidrule(l{3mm}r){1-6}     &&&x^4&-&5x^3&+&2x^2&-&x&+&1\\     &&-&x^4&+&x^3&-&2x^2\\     \cmidrule{4-8}     &&&&-&4x^3&&&-&x&+&1\\     &&&&&4x^3&-&4x^2&+&8x\\     \cmidrule{6-10}     &&&&&&-&4x^2&+&7x&+&1\\     &&&&&&&4x^2&-&4x&+&8\\     \cmidrule{8-12}     &&&&&&&&&3x&+&9     \end{array}     \]     \end{minipage}     \hspace{-8mm}      \vrule height -5mm     \begin{minipage}[t]{0.20\textwidth}      \[     \arraycolsep=0.1mm     \begin{array}{llllllll}     & x^2 & - & x & + & 2\\     \cmidrule(l{-0.75mm}){1-8}     & x^3 & + & x^2 & - & 4x & - & 4\\     \end{array}     \]     \end{minipage}     \end{document}      which looks like in the picture below: ![enter image description here](http://i.stack.imgur.com/xHfDy.jpg) But I would like to have it as shown in the next snapshot: ![enter image description here](http://i.stack.imgur.com/jYg9y.jpg) This was done using Adobe framemaker. All tips & tricks are welcome. Thanks.


title: Using a/b differentiation from authoryear in biblatex-dw

text: I am using the `biblatex-dw` bibliography style for my thesis. As a requirement, I have to distinguish between two publications from the same author and year by adding a and b to the years. I already have a custom footnote citation command (`\fzit`, for a pre- and postnote). Using it (or a new one), I would like to write `\fzit[see also][66]{A}` and get (in the footnote) »see also Author 2001a, 66«. The bibliography should show > Author, Alex: Alpha. In: Journal of Journals, 11.08.2001a. > http://www.url.org visited 12.04.2013. MWE:               \documentclass{scrartcl}     \usepackage[style=authortitle-dw,idembib=false,backend=biber,sorting=nyt,isbn=false]{biblatex}          \DeclareCiteCommand{\fzit}[\mkbibfootnote]     {\usebibmacro{prenote}}     {     \setunit{\addnbspace}     \unspace\printnames{labelname}%     \space     \printfield{year}     }     {\addsemicolon\space}     {\addcomma\space #2\isdot}          \usepackage{filecontents}          \begin{filecontents}{\jobname.bib}     @article{A,     author = {Author, Alex},     journaltitle = {Journal of Journals},     date = {2001-08-11},     title = {Alpha},     url = {http://www.url.org},     urldate = {2013-04-12}     }     @article{B,     author = {Author, Alex},     journaltitle = {Journal of Journals},     date = {2001-09-17},     title = {Beta},     url = {http://www.url.org},     urldate = {2013-04-12}     }     \end{filecontents}          \addbibresource{\jobname.bib}


title: biblatex - removing the journal number field

text: I have items like               @article{Bertrand2004,     author = {Bertrand, Marianne and Duflo, E and Mullainathan, S},     journal = {The Quarterly Journal of Economics},     number = {February},     title = {{How much should we trust differences-in-differences estimates?}},     year = {2004}     }      and I would like to suppress the field number (in that case "February") in my bibliography. So far I use biblatex with biber and the following options:               \usepackage[backend=biber,citestyle=authoryear,isbn=false,backref=false,maxcitenames=3,maxbibnames=99,doi=false,url=false,uniquename=false,firstinits=true,bibstyle=authoryear]{biblatex}       Do you have an idea? Many thanks!


title: Plotting data from set of files in pgfplots

text: I have a large number of files containing xy-data that I would like to plot in one plot. I know I can do that manually and bit by bit which is ok for only several files, but not for larger numbers.               \documentclass[crop]{standalone}     \usepackage{pgfplots}     \pgfplotsset{compat=1.10}     \usepackage{filecontents}          \begin{document}     \begin{filecontents}{data01.dat}     0   0     1   1     2   2     \end{filecontents}     \begin{filecontents}{data02.dat}     0   1     1   2     2   0     \end{filecontents}     \begin{tikzpicture}         \begin{axis}         \addplot table [x index=0,y index=1] {data01.dat};         \addplot table [x index=0,y index=1] {data02.dat};         \end{axis}     \end{tikzpicture}     \end{document}      Is there a way to plot a set of numbered files or even all files in a certain folder autimatically in pgfplots?


title: How to align text within an algorithm environment?

text: I wish to duplicate an effect I've seen elsewhere (image below) in which text not necessarily at the beginning of a line is aligned with text elsewhere. ![aligned algorithm example](http://i.stack.imgur.com/CQY7P.png) I don't know which environment is suitable, but I assume one of the various algorithm environments fits the bill (w.r.t. structure). I have tried with the apparently popular `algorithm2e` package, but could not see a way to do it.               \documentclass[11pt]{article}     \usepackage{algorithm2e}          \begin{document}     \begin{algorithm}     \caption{Algorithm}         Let  \quad $ X $ be the set of $ n $ training patterns $ x_{1}, x_{2}, \dots x_{n} $\;          \qquad $ W $ be a $ p \times q $ grid of units $ w_{ij} $ where $ i $ and $ j $ are their coordinates on that grid\;         \qquad $ \alpha $ be the learning rate, assuming values in $ [0,1] $, initialized to a given initial learning rate\;         \qquad $ r $ be the radius of the neighborhood function $ h(w_{ij},w_{mn},r $), initialized to a given initial radius\;        \Repeat{$ \alpha $ reaches 0}{          \For{$ k=1 $ to $  n $}{            For all $ w_{ij} \in W $, calculate $ d_{ij} = || x_{k} - w_{ij} || $\;            Select the unit that minimizes $d_{ij}$ as the winner $ w_{winner} $\;            Update each unit $ w_{ij} \in W: w_{ij} = w_{ij} +  \alpha  h(w_{winner}, w_{ij}, r) || x_{k} - w_{ij} || $\;          Decrease the value of $ \alpha $ and $ r $         }        }     \end{algorithm}     \end{document}      which produces... ![enter image description here](http://i.stack.imgur.com/BLZd7.png) This shows two problems: 1) the alignment doesn't exist, and 2) when a line wraps, it doesn't have an indent. How can I do this?


title: How to change position of symbols that are moved by transposition sign in equation?

text: I have equation               \begin{align}     \textbf{P}(k+1|k) = \textbf{F}(k)\textbf{P}(k|k)\textbf{F}^T(k) + \textbf{Q}(k)     \end{align}      where the sign of transposition `\textbf{F}^T` makes second the time symbol `(k)` goes much more from matrix `\textbf{F}`. How to make it closer? Ideally `\textbf{F}` and `(k)` should be in same distance in case of `\textbf{F}(k)` and `\textbf{F}^T(k)`.


title: Passing text containing linebreaks as command or environment parameter?

text: I just tried to write some commands which used its argument to check whether they were empty (`isempty{...}` from package `ifthen`) or not. The problem was that the text to check contained a linebreak, and that screwed up the whole system and caused it to produce very strange error messages. Is there a way to work around this and make it safe to pass text containing linebreaks as parameter to a command or environment?


title: TeXshop and autocompletion

text: I have a question on TeXshop and autocompletion. In an OSX text editor (Textedit for instance) when you start writing a word and hit the esc key the uppermost words in the list proposed for autocompletion are the ones most recently typed. In TeXshop the same operation yields and alphabetical list, something quite useless. So, here is my question: is there a way to force TeXshop to use the OSX autocompletion i.e. to remember the recently typed words and propose them first when the esc key is hit?


title: In TeXnic center, is there a command can I use to point to exactly the place in the article where I made a LaTeX error?

text: I know this probably could be a very elementary question, but I am a very beginner in LaTeX. I am using LaTeX in windows on a PC. I am using teXniC center and MikTeX for writing a laTeX article. When I selected " Build and View " option in order to compile, it shows me the errors. I have some elementary questions : 1) It always shows the signs for " go to previous error / next error ", but is there a sign for " first error, second error" etc according to the order in which they occurred in the article ? 2) Also, for the errors, it is showing : 1.67, 1.44 etx...what numbers are they ? 3) Also, is there a pointer that would go to the place in the article where exactly I made the error and point it right there ? I know these are very elementary questions, but I would be grateful if you could tell me the answers ! Have a great day !


title: How can I have a smaller indentation in description with IEEEtran?

text: I'd like to use a `description` environment together with the `IEEEtran` document class. One of the labels is actually quite long (three words) so I need to use `\IEEEsetlabelwidth` to avoid having the text and the label overlap. As apparently it determines the indentation of the whole text and not just the text on the first line, I get a skinny column that spans over a large number of lines.               \begin{description}[\IEEEsetlabelwidth{Very long label}\IEEEusemathlabelsep]       \item[Very long label] this text is spanning over multiple lines.  Since the label was very long and the label determined the indent of the text it really covers a large number of lines.     \end{description}      The result is something like               Very long label   this text is spanning over                       multiple lines. Since the                        label was very long and                       the label determined the                       indent of the text it                       really covers a large                        number of lines.      While I would like something like               Very long label   this text is spanning over         multiple lines. Since the label was very         long and the label determined the indent         of the text it really covers a large          number of lines.      I don't have specific requirements for the body of the text, but it'd be nice if it was consistent across the several descriptions of the document (it is not the case at the moment). I have tried to read the documentation of IEEEtran, but I'm quite confused.


title: Centering a group of equations and the usepackage, environments etc?

text: I am running into trouble for nicely centering a group of equations in a Mathematics paper written in LaTeX. Say, I want to get the following group of equations 1) written one below another, 2) in the middle of the page to make things look better, 3) with the equality signs one right below the other. For example , say I want to type `x^2 - 4 = 0`, `( x+2) ( x-2) = 0`, `x = 2, -2` satisfying the properties 1),2), 3). a) What packages, and document class should I use ? b) I need to define any environment before `\begin{document}`? c) What are the exact commands that would do the job nicely ? d) Should I use `$$` or just `$` ? e) Also, for the above, can I nicely insert the implication symbol => ? I tried `\\\\[...]\\\`, it didn't work for some reason, also tried to include `amsmath` as a package, and then tried `\\\begin{align*}....\\\end{align*}`, didn't work. Also I think I tried `$$...$$` and that centered the equation, but not keeping the equality symbols one right below the other, and also changed the output for the equations to a smaller font compared to the rest of the paper. What exactly should I use that would do the job nicely ? Thanks a lot in advance !


title: Horizontal lines are showing up as low-resolution images

text: I'm trying to prepare a print-ready pdf file for a book. The publisher is complaining that horizontal lines (in particular, the lines separating headers and footers from the body, but I think it also happens for fraction bars) are showing up as low-resolution images (less than 72 dpi). I think that the following should be the relevant part of the preamble:               \documentclass[11pt]{book}          \usepackage{ifthen}          \usepackage[paper height=9.21in, paperwidth=6.14in, top=.95in, bottom=.95in,      inner=.75in, outer=.75in, head height=.6in, =.4in]{geometry}      I am compiling the document to a dvi file, and then converting it to a postscript file using               dvips -R -Poutline  -o filename.ps filename.dvi      The postscript file is then converted to a pdf file using Adobe Acrobat on the PDF/X-1a:2001 setting. I should also note that the document does contain a large number of actual images, all of which are included as eps files and have sufficiently high resolution. > How can I make the horizontal lines come out as having resolution at least > 72 dpi? (At least 300 dpi would be ideal.) Speculation: I can imagine that the -D option in dvips might be relevant, but I don't actually know, and I don't have an easy way to detect the results if I start playing around with it.


title: Stackrel and footnote inside the math environment

text: In my document I have on first page an inequality               \begin{eqnarray*}      a &\stackrel{*}{\leq}& b     \end{eqnarray*}      and also on few other pages I have the same inequality. On each page I want to make a footnote to this stackrel, but I want to have this footnote marked always by the same symbol `*`. I was trying to make               \begin{eqnarray*}      a &\stackrel{\footnotemark}{\leq}& b     \end{eqnarray*}               \footnotetext{foo}      but every time I have a different symbol corresponding to the footnote. How can I fix that?


title: ~\cite adds space between citation and text

text: I am trying to add citations to a technical report using `~\cite`, so that the result would be `text[1]`. But instead I get `text [1]` with a space between the citation and the text. I am using `\usepackage{cite}`. How do I remove the space?


title: Sideways label for table with alternating row colours

text: I have a multirow column in a longtable with alternating coloured rows. The alternating colour overflows into the multirow. Colouring the first column white wipes out the specialrule but doesn't seem to make a difference to the row colour. I am not sure how to deal with this. Would you have any pointers? Here is my MWE:               \documentclass[10pt]{article}     \usepackage{longtable, booktabs, rotating, multirow}     \usepackage[table]{xcolor}     \definecolor{tblue}{HTML}{F1F5FA}     \definecolor{tgrey}{HTML}{dddddd}     \renewcommand{\arraystretch}{1.6}     \usepackage{arydshln}     \arrayrulecolor{tgrey}     \begin{document}     \rowcolors{1}{tblue}{white}\centering     \begin{longtable}{>{\columncolor{white}}l !{\color{white}\vrule width 4pt}>{\raggedright}p{3in} p{2.4in}}     \hiderowcolors     &\textbf{Selected representative vars}&\textbf{Correlated vars ($\rho \ge$ 0.8)}\\     \specialrule{0.01em}{0.02em}{0.02em}     \endhead     \specialrule{0.01em}{0.0em}{0em}     \endfoot     \specialrule{0.01em}{0.0em}{0em}     &\multicolumn{2}{l}{\textbf{Subheading}}\\     \specialrule{0.01em}{0.0em}{0em}     \showrowcolors     & Something & Something else     \\     & Something & Something else     \\     & Something & Something else     \\     \hiderowcolors     \specialrule{0.01em}{0.0em}{0em}     &\multicolumn{2}{l}{\textbf{Subheading}}\\     \specialrule{0.01em}{0.0em}{0em}     \showrowcolors     & Something & Something else     \\     & Something & Something else     \\     & Something & Something else     \\     \multirow{-9}{*}{\begin{sideways}\centering \textbf{A long line of sideways text}\end{sideways}}     \end {longtable}     \end{document}      Here is what the table looks like currently: ![enter image description here](http://i.stack.imgur.com/DaGfL.png)


title: Printing/typesetting two A4 pages from a single-page A3 document in TikZ

text: I'm currently working on a huge graph using a A3 format, with the `landscape` option. I don't usually work on A3 pages, but this is not a mistake. I purposefully chose this format because it's made of two A4 pages. When my document is ready, I'd like TikZ to know what I want to do, which basically is to print and/or typeset the document so that **two pages** come out of it. It should work this way: ![A3 to A4 page](http://i.stack.imgur.com/iI6cu.png) The margin would be 0 in every side, so if I put the two pages next to each other, the content would still be readable even if — technically — it's cut in the middle.


title: set domain in pgfplots

text: I created this graph. The graph is shown correctly but I need the range on the y-axis to be from 10e-8 to 1. I would also like a grid. I'm a newbie with the `pgfplots` package.               \begin{figure}[htp]     \centering     \begin{tikzpicture}     \begin{semilogyaxis}[xlabel=distanza]     \addplot [domain=0.0000001:1,               thick,blue]         file {./MATLAB/file.txt};     \end{semilogyaxis}     \end{tikzpicture}     \end{figure}


title: Why do I need Lua or LaTeX3 in a plain old technical document?

text: I wrote and maintain a couple hundred page computer related technical spec in XeLaTeX. I use tables, figures, bitfields, algorithms and other typical trappings. I'm intrigued by LuaTeX and LaTeX3, but honestly, I don't know what benefit these will bring to a document like mine. Am I going to do more with less? Replace inelegant documentation strategies? Does anyone have examples of LaTeX3 benefits to a plain-Jane technical document? I already know and respect Lua from past programming work. It's the day-to-day applicability to documentation that I'm missing.