title: Why am I having such problems getting latex notation in my gnu plots?

text: I have tried setting the terminal to just about everything under the sun. I got it to read my latex notation for a brief compile and then it decided it didn't want to anymore again. The error that I am getting now is > Package pdftex.def Error: File `npn-eps-converted-to.pdf' not found Though it is there and in the same directory. but I am calling the file like this               \begin{figure}[t]     \includegraphics[scale=0.45]{npn.eps}          \caption{\small blblb}     \end{figure}      If I call it like this               \begin{figure}[H]     \input{npn}          \caption{\small blblbl}     \end{figure}      Them I get an error like this > LaTeX Error: File `npn.pdf' not found.               #!/bin/bash          gnuplot << TOEND     # Set the output file     set terminal epslatex enhanced      set output 'nfn.tex'      unset key          set border 3     set xtics nomirror     set ytics nomirror          set format $g$     set format x "%2.0f"      set format y "%2.0f"           u(x)=m*x+b     fit u(x) "nfn.dat" using 1:2 via m,b          set xzeroaxis linestyle 2 lt 2 lc 9     set xlabel "Applied Current mA"           set ylabel "Voltage {$mV$}" offset -3.0           set xrange [ -15.00 : 15.00 ]     set yrange [ -3.0 : 3.0 ]          plot  u(x), 'nfn.dat' using 1:2:3:4 with xyerrorbars          TOEND      Yes the file exists. these are the packages I have added:               \documentclass[11pt]{article}}     \usepackage{a4wide}     \usepackage[pdftex]{graphicx}     \usepackage[T1]{fontenc} % Use 8-bit encoding that has 256 glyphs     \usepackage[utf8]{inputenc}     \usepackage[usenames,dvipsnames]{xcolor}     \usepackage[super,comma,sort&compress,square]{natbib}     \usepackage[english]{babel} % English language/hyphenation     \usepackage{amsmath,amsfonts,amsthm} % Math packages     \usepackage[justification=justified,indention=40pt]{caption}     \usepackage{sectsty} % Allows customizing section commands     \usepackage[usenames,dvipsnames]{pstricks}     \usepackage{epsfig}     \usepackage{pst-grad} % For gradients     \usepackage{pst-plot} % For axes     \usepackage{framed}     \usepackage{csquotes}     \usepackage{todonotes}     \usepackage{float}     \usepackage{epstopdf}     \numberwithin{equation}{section}      Some of them are not really relevant but I don't know if there is a conflict causing it. I reinstalled all my packages and that didn't help either. It works fine until I try to use latex fonts and then come the problems.


title: compilation error in creation of new command

text: I'm trying to manipulate a bit an environment that I've found in internet, in GUIT forum. This is the minimal example               \documentclass[a4paper,10pt,twoside,openright,titlepage,fleqn,headinclude,footinclude,BCOR5mm,numbers=noenddot,cleardoublepage=empty,captions=tableheading]{scrreprt}     \usepackage[T1]{fontenc}     \usepackage[utf8]{inputenc}     \usepackage[italian]{babel}     \usepackage{amsmath,amsfonts}     \usepackage{framed,color,lipsum}     \usepackage{listings}          \newlength\sidebar      \newlength\envrule      \newlength\envborder      \setlength\sidebar{1.5mm}      \setlength\envrule{0.4pt}      \setlength\envborder{2.5mm}          \makeatletter      \long\def\fboxs#1{%        \leavevmode        \setbox\@tempboxa\hbox{%          \color@begingroup            \kern\fboxsep{#1}\kern\fboxsep          \color@endgroup}%        \@frames@x\relax}      \def\frameboxs{%        \@ifnextchar(%)          \@framepicbox{\@ifnextchar[\@frameboxs\fboxs}}      \def\@frameboxs[#1]{%        \@ifnextchar[%]          {\@iframeboxs[#1]}%          {\@iframeboxs[#1][c]}}      \long\def\@iframeboxs[#1][#2]#3{%        \leavevmode        \@begin@tempboxa\hbox{#3}%          \setlength\@tempdima{#1}%          \setbox\@tempboxa\hb@xt@\@tempdima               {\kern\fboxsep\csname bm@#2\endcsname\kern\fboxsep}%          \@frames@x{\kern-\fboxrule}%        \@end@tempboxa}      \def\@frames@x#1{%        \@tempdima\fboxrule        \advance\@tempdima\fboxsep        \advance\@tempdima\dp\@tempboxa        \hbox{%          \lower\@tempdima\hbox{%            \vbox{%              %\hrule\@height\fboxrule              \hbox{%               \vrule\@width\fboxrule                #1%                \vbox{%                  \vskip\fboxsep                  \box\@tempboxa                  \vskip\fboxsep}%                #1%                }%\vrule\@width\fboxrule}%              }%\hrule\@height\fboxrule}%                                }%              }%      }      \def\esefcolorbox#1#{\esecolor@fbox{#1}}      \def\esecolor@fbox#1#2#3{%        \color@b@x{\fboxsep\z@\color#1{#2}\fboxs}{\color#1{#3}}}      \makeatother                \definecolor{exampleborder}{rgb}{0,0,.7}      \definecolor{examplebg}{rgb}{.9,.9,1}      \definecolor{statementborder}{rgb}{.9,0,0}      \definecolor{statementbg}{rgb}{1,.9,.9}           \newenvironment{eseframed}{%        \def\FrameCommand{\fboxrule=\the\sidebar  \fboxsep=\the\envborder%        \esefcolorbox{exampleborder}{examplebg}}%        \MakeFramed{\FrameRestore}}%       {\endMakeFramed}           \newcounter{codeblock}      \numberwithin{codeblock}{section}      \renewcommand{\thecodeblock}{\thesection.\arabic{codeblock}}           %%% CODE ENVIRONMENT. PUT TEXT INTO COLORED FRAME %%%      \newenvironment{codeblock}      {\par\medskip\refstepcounter{codeblock}%      \hbox{%      \fboxsep=\the\sidebar\hspace{-\envborder}\hspace{-.5\sidebar}%      \colorbox{exampleborder}{%      \hspace{\envborder}\footnotesize\sffamily\bfseries%      \textcolor{white}{Code\enspace\thecodeblock\hspace{\envborder}}      }      }      \nointerlineskip\vspace{-\topsep}%      \begin{eseframed}\noindent\ignorespaces%      }      {\end{eseframed}\vspace{-\baselineskip}\medskip}                    \begin{document}     \begin{codeblock}       \lipsum[2]     \end{codeblock}     \end{document}      Now, I want to create a command, that take a .cpp file and insert it into this block using the listing package. I modify this environment to have an optional argument that will be the name of the file (to have it as caption), and then use the modified environment in a new command. This is my new minimal code:               \documentclass[a4paper,10pt,twoside,openright,titlepage,fleqn,headinclude,footinclude,BCOR5mm,numbers=noenddot,cleardoublepage=empty,captions=tableheading]{scrreprt}     \usepackage[T1]{fontenc}     \usepackage[utf8]{inputenc}     \usepackage[italian]{babel}     \usepackage{amsmath,amsfonts}     \usepackage{framed,color,lipsum}     \usepackage{listings}          \newlength\sidebar      \newlength\envrule      \newlength\envborder      \setlength\sidebar{1.5mm}      \setlength\envrule{0.4pt}      \setlength\envborder{2.5mm}          \makeatletter      \long\def\fboxs#1{%        \leavevmode        \setbox\@tempboxa\hbox{%          \color@begingroup            \kern\fboxsep{#1}\kern\fboxsep          \color@endgroup}%        \@frames@x\relax}      \def\frameboxs{%        \@ifnextchar(%)          \@framepicbox{\@ifnextchar[\@frameboxs\fboxs}}      \def\@frameboxs[#1]{%        \@ifnextchar[%]          {\@iframeboxs[#1]}%          {\@iframeboxs[#1][c]}}      \long\def\@iframeboxs[#1][#2]#3{%        \leavevmode        \@begin@tempboxa\hbox{#3}%          \setlength\@tempdima{#1}%          \setbox\@tempboxa\hb@xt@\@tempdima               {\kern\fboxsep\csname bm@#2\endcsname\kern\fboxsep}%          \@frames@x{\kern-\fboxrule}%        \@end@tempboxa}      \def\@frames@x#1{%        \@tempdima\fboxrule        \advance\@tempdima\fboxsep        \advance\@tempdima\dp\@tempboxa        \hbox{%          \lower\@tempdima\hbox{%            \vbox{%              %\hrule\@height\fboxrule              \hbox{%               \vrule\@width\fboxrule                #1%                \vbox{%                  \vskip\fboxsep                  \box\@tempboxa                  \vskip\fboxsep}%                #1%                }%\vrule\@width\fboxrule}%              }%\hrule\@height\fboxrule}%                                }%              }%      }      \def\esefcolorbox#1#{\esecolor@fbox{#1}}      \def\esecolor@fbox#1#2#3{%        \color@b@x{\fboxsep\z@\color#1{#2}\fboxs}{\color#1{#3}}}      \makeatother                \definecolor{exampleborder}{rgb}{0,0,.7}      \definecolor{examplebg}{rgb}{.9,.9,1}      \definecolor{statementborder}{rgb}{.9,0,0}      \definecolor{statementbg}{rgb}{1,.9,.9}           \newenvironment{eseframed}{%        \def\FrameCommand{\fboxrule=\the\sidebar  \fboxsep=\the\envborder%        \esefcolorbox{exampleborder}{examplebg}}%        \MakeFramed{\FrameRestore}}%       {\endMakeFramed}           \newcounter{codeblock}      \numberwithin{codeblock}{section}      \renewcommand{\thecodeblock}{\thesection.\arabic{codeblock}}           %%% MODIFIED ENVIRONMENT WITH ARGUMENT %%%      \newenvironment{codeblock}[1]      {\par\medskip\refstepcounter{codeblock}%      \hbox{%      \fboxsep=\the\sidebar\hspace{-\envborder}\hspace{-.5\sidebar}%      \colorbox{exampleborder}{%      \hspace{\envborder}\footnotesize\sffamily\bfseries%      \textcolor{white}{#1\enspace\thecodeblock\hspace{\envborder}}      }      }      \nointerlineskip\vspace{-\topsep}%      \begin{eseframed}\noindent\ignorespaces%      }      {\end{eseframed}\vspace{-\baselineskip}\medskip}                %%% COMMAND THAT USE PREVIOUS ENVIRONMENT AND LISTING ENVIRONMENT %%%      \newcommand{\sourcecode}[1]{\begin{codeblock}[#1]%      \begin{lstlisting}%      \input{#1}%      \end{lstlisting}%      \end{codeblock}}                    \begin{document}     \sourcecode{code/hello_world.cpp}     \end{document}      The command \sourcecode take the filename as input, and then include its text into the codeblock/lstlisting environment. When I try to compile it, anyway, I obtain the following error:               ! Missing $ inserted.     <inserted text>                      $     l.106     \sourcecode{code/hello_world.cpp}          ?      ! Emergency stop.     <inserted text>                      $     l.106     \sourcecode{code/hello_world.cpp}      I don't know what I'm doing wrong. Any help to create the right command is appreciated. Please help me. Thanks in advance for your replies.


title: Redefine cite commands after first citation in biber

text: I am using biber as a backend for biblatex with the alphabetic style. I want to work the textcite and citeauthor commands to work as follows: If I use one of the above commands the first time for a certain reference, I want it to print all the author names. Then on further citations, I want it to only display the first authors name + "et al.". The way I did it until now is as follows:                   \DeclareCiteCommand*{\textcite*}{%         \defcounter{maxnames}{99}%         \defcounter{minnames}{99}%         \defcounter{uniquename}{0}%         \booltrue{citetracker}%         \boolfalse{pagetracker}%         \usebibmacro{prenote}         }{\ifciteindex{\indexnames{labelname}}{}%           \ifciteseen{\printnames[][1-1]{labelname}}{\printnames[][1-99]{labelname}}         }{\multicitedelim}{\usebibmacro{postnote}}      The problem with this is that for one thing I need to call \textcite* instead of \textcite and the other is that \textcite and \citeauthor are handled seperately here, i.e. if I call \textcite it works, but when I call \citeauthor for the first time it starts again with citing all names. I would be very glad if somebody knew how to fix this. Thank you. * * * Well, I noticed that the citation after the author's name(s) were ommitted if I called \textcite. Hence, I modified the command a bit like this:                   \DeclareCiteCommand{\textcite}{%         \defcounter{maxnames}{99}%         \defcounter{minnames}{99}%         \defcounter{uniquename}{0}%         \booltrue{citetracker}%         \boolfalse{pagetracker}%         \usebibmacro{prenote}         }{\ifciteindex{\indexnames{labelname}}{}%           \ifciteseen{         {\printnames[][1-1]{labelname}\space\bibopenbracket}%        \ifnumequal{\value{citecount}}{1}{\usebibmacro{prenote}}{}%        \usebibmacro{cite}\bibclosebracket         }{           {\printnames[][1-99]{labelname}\space\bibopenbracket}%        \ifnumequal{\value{citecount}}{1}{\usebibmacro{prenote}}{}%        \usebibmacro{cite}\bibclosebracket          }         }{\multicitedelim}{\usebibmacro{postnote}}      But using this code, I would get a citation that includes name and citation, but it also adds a space after the citation which does not look very nice. Does anybody know how to correct that? Thank you? @Seamus: I could not find any such feature in biblatex. If you know about something like this this would be gladly appreciated.


title: Vertical line & list environment

text: I would like to make a good looking environment for my proofs. Some are spread on two pages so i thought of the list environment.               \documentclass{article}     \usepackage[francais]{babel}     \usepackage{lipsum}          \begin{document}          \lipsum[1]          \begin{list}{\underline{Proof} :}{\leftmargin=0.6cm \setlength{\labelwidth}{10pt}}     \item \lipsum     \end{list}          \lipsum[2]          \end{document}      What i want is a vertical line starting approximatively under the 'r' of proof and that continue on the second page. In fact It is quite similar to this question Vertical line enclosing items in itemize wich unfortunately didn't find no answer.


title: xparse and key value arguments

text: I'm trying to learn how to do macros. I want to use `xparse` as it seems the most powerful tool. I also want named arguments, as numbered arguments make me, as a programmer, uncomfortable. I had some ideas like:               \DeclareDocumentCommand{\myMacro} {o o}     {        \DeclareDocumentCommand{\foo} {} {#1}        \DeclareDocumentCommand{\bar} {} {#2}        The foo argument was \foo and the bar argument was \bar          }      But this wouldn't work, because of nesting and wouldn't extend to DocumentEnviroments, I guess since different scoping for beginning and end sections. My goal is to have some sections of a document that are highly structured. For example I might have a list of movies, which have parameters like title, date, director etc. and I might manipulate them in complex ways (perhaps building them into a paragraph), and I don't want to have to remember which order the parameters were in when defining this. Perhaps I am thinking wrong for a LaTeX user, I guess in many programming languages you need to know the order when invoking a function (though in this case, I would like to use the name of arguments when invoking - for clarity)


title: How to improve the creation of repeating patterns with TikZ?

text: I am a beginner in LaTex, trying to use TikZ to draw a series of RF cables for industrial documents. On the MWE below, I cannot find a way to prevent overlapping the threads of the braid while preserving the alignment of the threaded strands. Also I wonder if the code can be improved, as I have lots of different wires to handle, some with dual braids, etc....               \documentclass{article}      \usepackage{tikz}     \usetikzlibrary{positioning, calc, arrows,backgrounds}     \begin{document}     \begin{tikzpicture}[ >=latex',auto,inner sep=2mm,node distance=4cm and 6cm]     \tikzset{box1/.style={draw,minimum width=2cm,rectangle, rounded corners =1 pt,  line width=2pt}}          \node[box1, text width = 2 cm,text height= 1 cm] (jacket) {};     \node[box1,  text width = 2cm,text height= 0.8 cm, right=- 2pt of jacket] (braid)  {};     \node[box1, text width = 1.5cm,text height= 0.5 cm, right=-2pt of braid] (insul)  {};          \node[anchor=center] (A) at (0, -0.9) {};     \node[anchor=center] (B) at (0.2,  0.9) {};     \draw[anchor=center] (A) .. controls (-0.2, -0.2) and (0.2, 0.2) .. (B);     \node[anchor=center] (C) at (0.1, -0.9) {};     \node[anchor=center] (D) at (0.3,  0.9) {};     \draw[anchor=center] (C) .. controls (-0.1, -0.2) and (0.3, 0.2) .. (D);          \clip (1.2, -0.6) rectangle (3.6,0.6); %clipping braided area          \foreach \x in {1,2,...,8} %starting drawing patterns for braid      \draw [anchor=center, xshift=1.5cm, yshift =0.8 mm, rotate=45] (\x/19,0) -- (\x/19,0.6);     \foreach \x in {1,2,...,8}     \draw  [anchor=center,  xshift=2.1cm,  yshift =0.8 mm, rotate=45] (\x/19,0) -- (\x/19,0.6);     \foreach \x in {1,2,...,8}       \draw [anchor=center, xshift=2.7cm,  yshift =0.8 mm, rotate=45] (\x/19,0) -- (\x/19,0.6);     \foreach \x in {1,2,...,8}       \draw [anchor=center, xshift=3.3cm, yshift =0.8 mm, rotate=45] (\x/19,0) -- (\x/19,0.6);     \foreach \x in {1,2,...,8}       \draw [anchor=center, xshift=3.9cm,  yshift =0.8 mm, rotate=45] (\x/19,0) -- (\x/19,0.6);          \foreach \x in {1,2,...,8}       \draw [anchor=center, xshift= 0.9cm, yshift=1.5 mm, rotate=-45,] (\x/19,0) -- (\x/19,0.4);     \foreach \x in {1,2,...,8}       \draw [anchor=center, xshift= 1.5cm, yshift=1.5 mm, rotate=-45,] (\x/19,0) -- (\x/19,0.4);     \foreach \x in {1,2,...,8}       \draw [anchor=center, xshift= 2.1cm, yshift=1.5 mm, rotate=-45,] (\x/19,0) -- (\x/19,0.4);     \foreach \x in {1,2,...,8}       \draw [anchor=center, xshift= 2.7cm, yshift=1.5 mm, rotate=-45,] (\x/19,0) -- (\x/19,0.4);     \foreach \x in {1,2,...,8}       \draw [anchor=center, xshift= 3.3cm, yshift=1.5 mm, rotate=-45,] (\x/19,0) -- (\x/19,0.4);          \foreach \x in {1,2,...,8}       \draw [anchor=center, xshift=1.6cm, yshift =-6 mm, rotate=45] (\x/19,0) -- (\x/19,0.6);     \foreach \x in {1,2,...,8}     \draw  [anchor=center,  xshift=2.2cm,  yshift =-6 mm, rotate=45] (\x/19,0) -- (\x/19,0.6);     \foreach \x in {1,2,...,8}       \draw [anchor=center, xshift=2.8cm,  yshift =-6 mm, rotate=45] (\x/19,0) -- (\x/19,0.6);     \foreach \x in {1,2,...,8}       \draw [anchor=center, xshift=3.4cm, yshift =-6 mm, rotate=45] (\x/19,0) -- (\x/19,0.6);     \foreach \x in {1,2,...,8}       \draw [anchor=center, xshift=4cm,  yshift =-6 mm, rotate=45] (\x/19,0) -- (\x/19,0.6);          \foreach \x in {1,2,...,8}       \draw [anchor=center, xshift=0.9 cm, yshift=-4.5 mm, rotate=-45,] (\x/19,0) -- (\x/19,0.4);     \foreach \x in {1,2,...,8}       \draw [anchor=center, xshift= 1.5cm, yshift=-4.5 mm, rotate=-45,] (\x/19,0) -- (\x/19,0.4);     \foreach \x in {1,2,...,8}       \draw [anchor=center, xshift= 2.1cm, yshift=-4.5 mm, rotate=-45,] (\x/19,0) -- (\x/19,0.4);     \foreach \x in {1,2,...,8}       \draw [anchor=center, xshift= 2.7cm, yshift=-4.5 mm, rotate=-45,] (\x/19,0) -- (\x/19,0.4);     \foreach \x in {1,2,...,8}       \draw [anchor=center, xshift= 3.3cm, yshift=-4.5 mm, rotate=-45,] (\x/19,0) -- (\x/19,0.4);          \end{tikzpicture}     \end{document}      ![enter image description here](http://i.stack.imgur.com/HJhat.png)


title: How to find the intersection point between the invisible frame of `\rput` and the line segment of `\ncline`?

text: ![alt text](http://i.stack.imgur.com/vfTxc.png) Points enclosed by black ovals are the intersection points between the frame boundary of `\rput` and the line segment of `\ncline`. How to find these points? * * * The screenshot above is copied from PSTricks Tutorial series on page 4.


title: Migrating Indesign

text: I've been producing a technical book in Lyx. I've decided that for this work, I'ld be better off using Adobe Indesign. it need allot of complex layout/graphical stuff. Like timelines, sidebars, complex tables (I have some tables, but I want to do things like put text in a smaller font underneath the text I've got, which LyX's GUI doesn't support). Even ignoring those reasons learning InDesign is useful, in it's own right. I guess I want to turn my Parts, or chapters into Documents. I know InDesign has some stuff for importing XML, thought I'm not to clues up on that. So perhaps I can Export to Tex and then Convert to XML? Then import the XML into InDesign? Or am I better off doing it manually: Export to text file, and copy and paste. Recreating layout and tables manaually?


title: Why does LaTeX impose a memory limit of 8,000,000 and can I circumvent it?

text: A few people have already asked the question of how to increase the maximum memory LaTeX is allowed to use (see here and here) because it is quite common for LaTeX to run out of memory when using, for example, `pgfplots` to plot experimental data. Following the instructions from this answer, I managed to successfully increase the memory limit. However, I was not able to increase the limit to an amount capable of processing a 10,000-data-points plot. When I ran `fmtutil- sys --all` as instructed, the process terminated with errors. The problem was that, according to `texmf.cnf`, I had exceeded the memory limit by using `main_memory = 50000000`: `% Memory. Must be less than 8,000,000 total.` I was wondering why that is the case and whether there is a way to circumvent that limit. If there isn't a limit, what are the maximum values I can set the `main_memory`, `extra_mem_top` and `extra_mem_bot` to? Do the latter two count towards the total memory (I assume they do!)? Is there another variable that is more closely related to the "type of memory" that `pgfplots` uses so that I can increase that instead? For your information, I externalize my figures using `mode=list and make` and I already tried `lualatex`, but I'm it still complains about running out of memory (even though it uses only around 1Gb of RAM). I understand that people will argue that it is unnecessary to plot such a large number of data points in such a short space, but I would at least to know why LaTeX imposes such memory limits, especially with memory being so cheap these days.


title: How do I draw an arc between two lines in pgfplots using axis cs

text: I would like to draw an arc between to lines in a pgfplots picture using `axis cs`. My first attempt is as follows:                   \documentclass[12pt,a4paper]{article}         \usepackage{pgfplots}              \pgfplotsset{compat=newest}              \begin{document}              \begin{center}         \begin{tikzpicture}             \begin{axis}[xmin=-8,xmax=8,xtick={-8,-6,...,8},                 ymin=-8,ymax=8,ytick={-8,-6,...,8},grid=major                 ,view={0}{90},x post scale={2},y post scale=2                 ]             \addplot[black,thin,domain=0:8]{0};             \addplot[black,thin,domain=0:8]{2.3962931*x};             \draw [->] (axis cs:2,0) arc [radius=17mm,start angle=0,end angle=64.3];         \end{axis}         \end{tikzpicture}         \end{center}              \end{document}      However, the value of the radius and angle needed to be determined via trial and error. Hence, if I change the scaling (as used with `x post scale` and `y post scale`) then the arc does not display correctly. Clearly, I have missed something and there should be a straight forward way to achieve my aims. I can change the arc to a circle (set radius=2 (with no units)) and I get what I expect and it scales. Any insights would be much appreciated. Peter Johnston.


title: Manipulate Length in LaTeX

text: I'm using tikz package to make nice schemes presenting my work, and I am confronted to a little problem: manipulating variables. I can do this the hard way: For exemple let's say that I want to draw a rectangle (8*4),               %Defining nodes for geometry     \coordinate (left_minus) at (-4,-2) ;     \coordinate (left_plus) at (-4,2) ;     \coordinate (right_minus) at (4,-2) ;     \coordinate (right_plus) at (4,2) ;          %Drawing rectangle     \draw[line width= 1pt, fill=green!30] (left_minus) rectangle (right_plus)      but I would like to do something like this:               \newcommand{\Length}{8}     \newcommand{\Width}{4}     \coordinate (left_minus) at (-Length/2,-Width/2) ;     \coordinate (left_plus) at (-Length/2,Width/2) ;      I browsed the web but wasn't able to find something useful about manipulating variables in LaTeX. Do you guys have any idea about how I should proceed? Thanks! Aubry


title: tikz externalization using lualatex over pdflatex

text: I am trying to externalize tikz plots using lualatex while encapsulating the whole tex file with pdflatex. I still couldn't figure out why this method is not working. I am using miktex and texstudio. calling pdflatex by:               pdflatex -shell-escape -synctex=1 -interaction=nonstopmode %.tex      where texstudio replaces % with filename to be processed.         I have a matlab plot given below, that is converted to tikz. Let's call it myfile.tikz:               \begin{tikzpicture}     \begin{axis}[%     width=\figurewidth,     height=\figureheight,     scale only axis,     xmin=1,     xmax=3,     ymin=1,     ymax=6,     name=plot     ]     \addplot [     color=blue,     solid     ]     table[row sep=crcr]{     1 2\\     2 4\\     3 6\\     };          \end{axis}     \end{tikzpicture}%         A minimal example using tikz would be:               \documentclass{article}     \usepackage{pgfplots} % to use tikz graphics as given in http://www.mathworks.com/matlabcentral/fileexchange/22022-matlab2tikz       \pgfplotsset{compat=newest}       \pgfplotsset{plot coordinates/math parser=false}       \newlength\figureheight       \newlength\figurewidth     \usetikzlibrary{external}     \tikzexternalize[prefix=tikz/,shell escape=-enable-write18]     \tikzset{external/system call={lualatex \tikzexternalcheckshellescape -halt-on-error -interaction=batchmode -jobname "\image" "\texsource"}}          \begin{document}     \begin{figure}         \centering         \setlength\figureheight{4.00cm}          \setlength\figurewidth{6.00cm}          \input{myfile.tikz}     \end{figure}     \end{document}         I am getting the following error:               ! Package tikz Error: Sorry, the system call 'lualatex -enable-write18 -halt-on     -error -interaction=batchmode -jobname "tikz/example-figure0" "\def\tikzexterna     lrealjob{example}\input{example}"' did NOT result in a usable output file 'tikz     /example-figure0' (expected one of .pdf:.jpg:.jpeg:.png:). Please verify that y     ou have enabled system calls. For pdflatex, this is 'pdflatex -shell-escape'. S     ometimes it is also named 'write 18' or something like that. Or maybe the comma     nd simply failed? Error messages can be found in 'tikz/example-figure0.log'. If      you continue now, I'll try to typeset the picture.


title: Best practices for multilingual open-source book?

text: I'm writing an open-source book in two languages (English and Russian) and there are volunteers who would like to help with translation to other languages. My first idea is simple: let there be conditional commands like \EN{}, \RU{}, \FR{}, etc, for the text for each language. So far so good. But I change some parts of my book continuously, add another text, etc. What the best idea to mark these parts so then translators would pull repository and re-check their translations and/or add new? It's very easy to miss a line in text editor or two... Well, I probably can rename \FR{text} command to \FRRecheck{} each time I change something, as a flag to French translator. What if I add new text, maybe I can add command like \FRNeed{} as a flag to translator? So what do you think? Are there any well-known TeX/LaTeX multilingual open- source projects to get ideas from? TIA!


title: Italicize title in tufte-latex

text: I am trying to italicize one section in my title in the tufte-latex class. `\textit` does not work. `\itshape` and then `\upshape` works:               Non Italic \itshape Italicized Part \upshape Non Italic      But this is causing "Italicized Part" in the title used as the running header in the text pages to become lowercase. What am I doing wrong?


title: Why does pstricks have an effect on tikz' draw opacity when used within beamer?

text: \documentclass{beamer}     %\documentclass{article}          \usepackage{pstricks}          \usepackage{tikz}     \usetikzlibrary{chains}          \begin{document}     \begin{frame}{}         \begin{tikzpicture}[start chain]             \node[on chain] {A};             \node[on chain,join={with chain-1 by {draw opacity=0}}] {B};             \node[on chain,join={with chain-2 by {draw opacity=1}}] {C};         \end{tikzpicture}     \end{frame}     \end{document}      which produces `A-B-C`. If I comment out `\usepackage{pstricks}` or use the `article` document class, then it produces `A B-C`, the correct result. Why is that and how can I use pstricks together with tikz and beamer in this case? Edit: I use pdflatex.


title: Conditional linebreak in align environment

text: I have a large document to typeset in two different page formats. Some of the equation lines are too long in the small format so I wanted to break some equation lines conditioned on whether the macro `\usesmallformat` is defined:               \documentclass{article}          \usepackage{amsmath}          % Uncomment for small format - doesn't work, however     % \newcommand{\usesmallformat}{1}     % \setlength{\textwidth}{5cm}          \begin{document}          \begin{align}     A     &\leq     \sum_{i = 0}^L \|(I-K^i)(I-F^i)u\|_{V(\Omega)} \nonumber \\     %     &\leq     \sum_{i = 0}^L \left(\|(B - C^i)(I - D^i)u\|_{V(\Omega)}     {\ifdefined\usesmallformat \right. \nonumber\\ \fi}     %     \label{eq:One}     {\ifdefined\usesmallformat &\quad\ \fi}     +     {\ifdefined\usesmallformat \left. \fi}     \|(I - D^i)(I - S^i) u \|_{V(\Omega)} \right).     \end{align}          \end{document}      I would like the second line of the align environment to be broken at the `+`-sign in the small format. Only the last line should be numbered. Also I would like to avoid duplicating formula code. Setting the `align` environment in two versions and surrounding them with the `\ifdefined` would work, but leads to code bloat and is harder to maintain in the future. If I uncomment the two lines at the beginning of the document, however, I get `Missing } inserted \end{align}` and some follow-up errors. Do you have any idea how to achieve the desired effect? PS: I've read about the breqn package, but I can't use it because it conflicts with some other package that I have to include.


title: Beamer: Receiving information from Bibliography

text: I am using _Beamer_ , and I prepare the _references_ as follows.               \begin{thebibliography}{99}          \bibitem{refno} Author Name,     \newblock Title,     \newblock Location.          \end{thebibliography}      Is it possible to receive _authorname_ , _title_ or _location_ just by _refno_? Or is there any other simple way for this?


title: How do I adjust the width of a grid column?

text: I've tried looking up the code and couldn't find something that allows me to adjust the width of a column. I want to make the width larger (in the vertical direction). This is what I have so far:               \begin{center}         \begin{tabular}{ | l | p{2cm} |}          \hline           Problem & Points \\ \hline           1 &   /4 \\ \hline           2  &  /4 \\ \hline           3  &  /4 \\          \hline      \end{tabular}     \end{center}


title: How to change the label color of \psaxes?

text: \documentclass[pstricks,border=12pt,12pt]{standalone}     \usepackage{pst-plot}          \begin{document}          \begin{pspicture}(-5,-1)(5.5,5.5)         \psaxes[linecolor=gray,tickcolor=gray]{->}(0,0)(-5,-1)(5,5)[$x$,0][$y$,90]     \end{pspicture}          \end{document}      ![enter image description here](http://i.stack.imgur.com/cr4ES.png) How to change the numeral label color of `\psaxes` from black (the default) to red (for example)? Bonus question: Also how to change the color of the axis labels `x` and `y`? I have read the documentation at a glance but nothing can help me.


title: Paragraph-style footnotes with bigfoot and (pdf)lscape

text: I'm using the package `bigfoot` to declare a custom type of footnote: Thanks to the option `[para]`, the footnotes of this new type will be grouped into a single paragraph. This new type of footnote can be used alongside the usual type. This works well on regular pages but does not while in `landscape` mode. The result is that the footnotes appear on a separate page, at a slightly strange place. How do I get this working? (The goal is to have traditional footnotes on portrait pages, but compact footnotes on landscape pages.)               \documentclass[12pt]{article}      \usepackage[german]{babel}          \usepackage{bigfoot}      \usepackage{pdflscape}          \DeclareNewFootnote[para]{B}          \begin{document}          At vero\footnote{One.} eos\footnote{Two.} et\footnote{Three.} accusamus\footnote{Four.} et iusto odio ...          \begin{landscape}           At vero\footnoteB{One.} eos\footnoteB{Two.} et\footnoteB{Three.} accusamus\footnoteB{Four.} et iusto odio ...          \end{landscape}          \end{document}


title: Externalize pgfpicture

text: When I do               \tikzexternalize     \tikzsetfigurename{foo}     \begin{tikzpicture}     ...     \end{tikzpicture}      and compile my LaTeX file with `pdflatex --shell-escape`, a file `foo0.pdf` is created the first time and that PDFfile is just included from then on. However, the same doesn't work for `pgfpicture`s. I'm creating figures using `matplotlib` (which rocks, btw.) and they're plain PGF. When I include those, they are compiled every time, which is pretty time consuming. I didn't find any way to include a `pgfpicture` in a `tikzpicture`. When I tried simply to do something like this:               \begin{tikzpicture}         \begin{pgfpicture}         ...         \end{pgfpicture}     \end{tikzpicture}      I got "TeX capacity exceeded" errors.


title: spacing between \paragraph{} and next chars

text: Is it possible to make a new line between the text of \paragraph{} and the next characters ? I've tried this, but nothing have changed.               \paragraph{Raffinement du cas d'utilisation \og Rechercher \fg}     \newline     Comme décrit dans le tablea      Thanks in advance ! ![enter image description here](http://i.stack.imgur.com/KeJvu.png)


title: How to change the question number from just '1' to 'Question No. 1.' in the exam class?

text: I needed to type something like this: ![enter image description here](http://i.stack.imgur.com/y2jRT.png) But wanted to change the 'numbering' to 'Question No. x.' from just 'x.' How should I go about doing that? An alternative solution is also welcome if what I'm asking for just isn't possible in the exam class. Thanks.


title: How do I specify what text is in thumbtabs

text: I'm using flowfram to add thumb indexes to the edge of the book I'm writing. I want to specify exactly what is printed in the tab. Right now it is the same as what appears in the ToC. I'd prefer the tabs to just include the part number or text I designate.               \usepackage[thumbtabs]{flowfram}     \makethumbtabs{5cm}[part]          \begin{document}     \enablethumbtabs     ...     \part{This will appear in first tab}     ...     \part[This will appear in second tab]{This will not appear}      What I want to appear is "Part I: Foo" and "Part II: Bar". Is there a way to specify that? If I use the \part[] to specify the text, that text also appears in the ToC. I'd like to set different text on the page, in the ToC, and in the thumbtab.


title: How to plot a graph of a function with undefined constants?

text: I want to plot a graph of a function with "undefined" constants. Specifically, I am trying to plot the following function: `$$\sqrt{\frac{\lambda}{\pi}}e^{-\lambda(x-a)^2}$$` The original problem just states that `$\lambda$` and `$a$` are given constants. The code I'm using to plot this is:               \documentclass[12pt]{article}     \usepackage{enumerate,mathtools,amsmath,mathabx,fancyhdr,graphicx,lastpage,pgfplots}     \usepackage[makeroom]{cancel}     \usepackage[margin=.7in]{geometry}     \begin{document}               \begin{tikzpicture}     \begin{axis}[]     \addplot[red,domain=-10*a:10*a,samples=201,]{sqrt(\lambda/\pi)exp(-\lambda*(x-a)^2)}     \end{axis}     \end{tikzpicture}          \end{document}      This doesn't produce anything, however. Any help on how to get this to work?


title: Set sans serif font for math

text: I'm using the following code to set sans serif font for math mode.               \documentclass{memoir}          \begin{document}          \everymath{\mathsf{\xdef\mysf{\mathgroup\the\mathgroup\relax}}\mysf}          $\Delta$          \end{document}      My problem is `\Delta` doesn't appear in PDF (just the lowercase `\delta`, but I need the capital letter). Any ideas?


title: pgfplots: \thisrowno{} is an undefined control sequence?

text: A lot of code about `pgfplots` I found (also here on tex.stack) was using `\thisrowno{}` to address specific rows of a table. All of these had no additional pakages loaded than I do in the following example. But I get the error that `\thisrowno` is an undefined control sequence. What am I missing and/or doing wrong?               \documentclass{article}          \usepackage{pgfplots}     \usepackage{filecontents}          \pgfplotsset{compat=newest}          \begin{filecontents}{data.dat}     0.0  1     0.1  23     0.2  4     0.3  35     \end{filecontents}          \begin{document}          \begin{tikzpicture}       \begin{axis}         \addplot table [x=\thisrowno{1}, y=\thisrowno{0}] {data.dat};       \end{axis}     \end{tikzpicture}          \end{document}


title: Table heading too low if on the top of the page

text: Consider the following MWE:               \documentclass{article}     \usepackage{lipsum}     \usepackage{booktabs}          \begin{document}          \lipsum[1]          \clearpage          \begin{table}[htbp]%         \centering%         \caption{Test table.}%         \begin{tabular}{lcc}%         \toprule               a & b & c \\         \bottomrule         \end{tabular}%     \end{table}%          \end{document}      As seen in the output below, the table's heading is lower than the first line of text on the other page, which, IMHO, does not look good when using two-page mode for a document. Node that everything looks fine if the table is placed somewhere in the middle of the text. Is this intended behavior for some reason I am missing? If not, how can I fix this? ![Output](http://i.stack.imgur.com/0HLCn.png) **Edit:** I just realized (thanks to Martin for giving me the idea) that this only happens when the caption is set _above_ the table, not if it is _below_ : moving the caption to the end of the table results in the baseline of the table's first line (`a b c`) being _nearly_ (not quite, but close enough to look good considering the `\toprule`) on the same height as the opposing text's baseline.


title: printing eprinttype in small caps with biblatex

text: I'm using biblatex + biber to print the bibliography. I want the eprinttype (PMID in my case) to be printed in small caps just like URL, DOI etc. Here's what I've tryed so far which did not change anything.               \DeclareFieldFormat[article]{eprint}{\textsc{\MakeLowercase{#1}}}      or               \DeclareFieldFormat[article]{eprint}{\mkbibacro{#1}}      (both with {eprint} and {eprinttype}) Am I using the wrong field name? Is there any list of abbreviations that PMID can be added to? Thanks for your help!


title: $TEXMFHOME setting

text: I use texlive 2012 on ubuntu 12.04. I wanted my `~/texmf` folder invisible, so I edited my `texmf.cnf` file which is in `/usr/local/texlive/2012` directory:               TEXMFHOME = ~/.texmf      I rebooted my computer and ran the command               kpsewhich -var-value TEXMFHOME      which gave me `/home/myusrname/texmf`. I checked `texmf.cnf` file again and it still had the line above. And my `TEXMFHOME` really is `~/texmf` because I tested one of my `.sty` file under`/.textmf` and it did not work, while it still worked under `~/texmf`. Should I change something else to change my `TEXMFHOME`?


title: How to modify font contrast

text: I compiled my LaTeX document in a new computer running Win7 and it seems that the **font contrast** while checking the resulting pdf document is severely decreased without having changed anything in my code. Previously, I was compiling it in Win Vista environment. Any idea? The controversial thing is that in a "Windowed viewer mode" the font seems OK, but while opening independently as an "external viewer" the pdf document, the text font seems like transparent. ![First](http://i.stack.imgur.com/DqoT6.png) ![Second](http://i.stack.imgur.com/X9skY.png)


title: TeX4ht: \includegraphics[page=10]{foo.pdf}

text: I have a long LaTeX document with lots of figures that were included using commands of the form               \includegraphics[page=10]{foo.pdf}      Everything compiles fine with pdfLaTeX. I planned to convert the document into HTML using TeX4ht, but it seems that TeX4ht does not understand the `page=` attributes in `\includegraphics`. Are there any easy solutions? Ideally, I would prefer to keep my main Latex source unmodified and just tweak the preamble.


title: How to decorate a line with arrows and circles

text: I would like to draw an arrow (ray of light) overlayed with perpendicular double headed arrows and circles (to show both s & p polarisation), but I am struggling with decoration commands. I have included what I have so far, can you help me get further? What I currently have: ![What I currently have](http://i.stack.imgur.com/d01ty.png) (Nasty mockup of) what I would like: ![what I would like](http://i.stack.imgur.com/Z3rRu.png)               \documentclass{article}     \usepackage{tikz, pgfplots}     \usetikzlibrary{shapes,arrows,positioning,decorations.markings}          \begin{document}     \begin{tikzpicture}[scale=0.7]              \draw [red, line width=1mm, <-]  (0,0) -- (150:5.2)             [postaction={decorate,decoration={markings,             mark=between positions 0.2 and 0.9 step 0.2 with {\arrow[red, line width=1mm]{|};}             }}]             [postaction={decorate,decoration={markings,             mark=between positions 0.3 and 0.9 step 0.2 with {\circle{8};}             }}]             ;                 \end{tikzpicture}     \end{document}


title: fancyhdr: Title don't match title number

text: Some of my titles in the header don't match the number. This happens in page 3 in the example. What can be a solution or a work around?               \documentclass[twoside]{report}     \usepackage[ansinew]{inputenc}     \usepackage{fancyhdr}     \usepackage{lipsum}          \pagestyle{fancy}     \renewcommand{\subsectionmark}[1]{\markright{ #1}}     \renewcommand{\sectionmark}[1]{\markright{ #1}}     \renewcommand{\chaptermark}[1]{\markright{ #1}}          \rfoot{}     \cfoot{}     \fancyhead[LO,RE]{\thesubsection \rightmark}     \fancyhead[RO,LE]{\thepage}     \renewcommand {\headrulewidth}{0pt}     \renewcommand {\footrulewidth}{0pt}          \setcounter{secnumdepth}{3}     \setcounter{tocdepth}{3}          \begin{document}               \chapter{Some chapter}          \section{Section I}     \lipsum[1]          \subsection{Subsection}     \lipsum[1-2]          \section{Section II}          \lipsum[1-2]          \subsection{Subsection One}     \lipsum[1-2]          \subsection{Subsection Two}     \lipsum[1-2]                    \section{Section III}     \lipsum[1-2]          \subsection{Subsection for this section}     \lipsum[1-2]          \subsection{Another subsection}     \lipsum[1-2]          \end{document}


title: Linebreak after \lstinputlisting

text: Is there any way for me to insert a linebreak after a `\lstinputlisting`? At the moment text proceeding the code in the lstinputlisting follows directly after but I'd prefer to have a linebreak but can't seem to put it in. This is what it looks like: ![](http://i.stack.imgur.com/Rl1u7.png) With this code:               \lstinputlisting{newtonsMethod.m}          The derivative function implements the central difference method. The simple implementation is shown below.      This doesn't compile if I put `\\\` after the `\lstinputlisting`. I can't answer my own question cause I'm too new to the site but I managed to figure it out: Got what I was after by putting `\` after the lstinputlisting, like so.               \lstinputlisting{newtonsMethod.m}\          The derivative function implements the central difference method. The simple implementation is shown below.


title: Force minitoc on one page

text: I'd like to force my standard `minitoc` on one page. By doing so it may have to force the chapter heading further up the page. Any thoughts how to achieve this? Or would it look really bad? So perhaps just have sections in it? ![enter image description here](http://i.stack.imgur.com/XefU1.png)               \documentclass{a4paper,twoside,openany}{book}     \usepackage{minitoc}          \begin{document}     \chapter{Chapter1}     \minitoc     \section{Superhero contact lenses}          \end{document}


title: Export only table of contents

text: What would be the preferred way to export the `Table of contents` I use in a `.tex` file to a separate `.pdf`? Currently I have a `my-report.tex` file and I wish to pair the result of `pdflatex` (`my-report.pdf`) with `my-report-toc.pdf`, which contains only the table of contents. **Is there a simple way to achieve this?** * * * My `.tex` file has this kind of layout (simplified):               ...     \begin{titlepage}     \includepdf[pages=-]{abstract.pdf}     \end{titlepage}          % -------------------------------------------------         % This should go to a separate .pdf file on export.     \tableofcontents     \pagebreak     % -------------------------------------------------          \section{Section1}     ...     \section{Section2}     ...     \section{Section3}     ...


title: Tie an inline math environment to be in the same line

text: How should I put command so that my inline math environment could be together. For example `0<x<1` is break up into two parts, `0<` and `x<1` in the next line.


title: Remove padding in table with images

text: I have a table with 2 small images in each cell. I reduced the horisontal padding with               \setlength{\tabcolsep}{0pt}      But I still have a white vertical space between a table separation line and images (beneath the image). All tipps that I found are about making the space bigger. But how can I remove that vertical padding? How can I remove the horizontal space between the images? ![vertical padding of images in table](http://i.stack.imgur.com/9eBXx.jpg)               \begin{table*}[t]     \begin{center}     \caption{Comparison of the form and position}     \setlength{\tabcolsep}{0pt}     \begin{tabular}{|c|}     \hline     \multicolumn{7}{|c|}{-2.5 cm}      \\ \hline     \includegraphics[height=27mm]{image1.png}     \includegraphics[height=27mm]{image2.png} \\ \hline     $\varphi$=0.5, 126 m/s \\ \hline     \end{tabular}     \end{center}     \end{table*}


title: How I can automatically add a page if the total number of pages is odd?

text: I need automatically add a blank page (also **without document header, numbering and footer** ) at the end of the document, if the total numbers of pages is odd. How I can do that? And preferably without using any additional package. :)


title: Adding blank pages when generating multiple copies of a document

text: I'm generating multiple copies (right now, 2, but a general solution would be nice) of a letter with minor variations using datatool. I just realised that if I'm printing it double-sided. and if the number of pages is odd, then the last page of the first letter is back to back with the first page of the second letter. Is there a good way to add an extra blank page as necessary. Do I need to add an MWE for this?


title: Vertical space between two paragraph (only)

text: I would like to increase the vertical space between two specific paragraphs. These paragraphs are already in a deep section (`\subsubsection{}`) so I do not want to put each paragraph inside a `\paragraph{}` : it would complexity my paper and I do not want to create titles for theses paragraphs. I have other paragraphs inside this section but I want to increase the vertical space only for the two paragraphs mentioned. Indeed the other paragraph breaks are less important. I have two question :   1. Is it a good practice to separate the text like this? If no, why should I use?   2. How to create this big vertical space between these paragraphs?


title: custom syntax highlight for minted

text: I am trying to get a custom syntx highlight for minted. My actual code for this style looks like this:               from pygments.style import Style     from pygments.token import Keyword, Name, Comment, String, Error, \         Number, Operator, Generic          class MyStyle(Style):     default_style = ""     styles = {         Comment:                '#8F8F8F',         Keyword:                '#0773BA',         Name:                   '#AB2CA2',         Name.Function:          '#F0C648',         Name.Class:             'bold #0f0',         String:                 '#36991D'     }      I got the template for this new style from the pygments documentation (http://pygments.org/docs/styles/), but I don't know how can I make pygment to use my style. The document says, that I need to drop it into a styles folder of my pygment package. But I can't find this folder? I am on a Ubuntu system.


title: Using \renewcommand to define sections

text: I'm trying to define my sections for my research paper using APA guidelines : Section : Centered, Boldface, Uppercase and Lowercase Headings Subsection : Left-aligned, Boldface, Uppercase and Lowercase Heading Subsubsection : Indented, boldface, lowercase heading with a period. Begin body text after the period. To do so, I am using the following commands :               \makeatletter     \renewcommand*{\addperi}[1]{#1.~}     \renewcommand{\section}{\@startsection {section}{1}{24pt}%     {\parskip}{-\parskip}%     {\centering\normalfont\normalsize\bfseries\addperi}}          \renewcommand{\subsection}{\@startsection{subsection}{2}{24pt}%     {\parskip}{-\parskip}%     {\normalfont\normalsize\bfseries\addperi}}          \renewcommand{\subsubsection}{\@startsection{subsubsection}{3}{24pt}%     {\parskip}%     {-\parskip}%     {\normalfont\normalsize\bfseries\addperi}}     \makeatother      However, my sections, subsections and subsubsections all look the same : the sections are not centered but indented and are followed by a period; the subsections aren't left-aligned but indented, and followed by a period, and my subsubsections look just right. Basically all of my sections look like subsubsections. The document class is : \documentclass[doc,apacite]{apa6}


title: Combine 4 cells in a table

text: Here is some simple table - I cannot upload, because I'm just a guest. I want to merge 4 cells. I mean I want to combine three "this" area in this table. I thought I have to use `multirow` and `multicolum` at same time. However, I could not find how to use it. I'm newbie for LaTeX. If possible, can you modify this into what I want? Also if you are possible, could you post modified LaTeX source code? My LaTeX code:               \begin{table}[ph]     \begin{center}     \begin{tabular}{c|c|c|c|c}     \hline     \multirow{2}{*}{Raaa (k)} & \multicolumn{4}{c}{C ()} \\     \hhline{~----}      & 3.3 & 2.5 & 1 & 0.5 \\     \hline     \multirow{2}{*}{Raaa (k)} & \multirow{2}{*}{this} & this & 0.5 & 0.6\\     \hhline{~~~--}            &                       & this & 0.7 & 1.2 \\     \hline     \end{tabular}     \caption{R, C ripple size}     \label{T:peak}     \end{center}     \end{table}


title: Combination of multirows and multicolumns table

text: I need to create similar table using LaTeX: ![enter image description here](http://i.stack.imgur.com/PlFSY.jpg) I have tried to use `tabular` and `\multicolumn`, but every time I get something wrong. Could someone help me?               \documentclass{article}     \begin{document}     \begin{tabular}{ | l | l | l | l | l | l | l | l | l | l | l | l | l | l | l | l | }     \hline     \  & \  & \  & \  & \  & \  & \  & \  & \  & \  & \  & \  & \  & \  & \  & \  \\    \hline     \  & \  & \  & \  & \  & \  & \  & \  & \  & \  & \  & \  & \  & \  & \  & \  \\   \hline     \  & \  & \  & \  & \  & \  & \  & \  & \  & \  & \  & \  & \  & \  & \  & \  \\ \hline     NAME & L &  &  & M &  &  & N &  &  & O &  &  & K &  &  \\ \hline      & L1 & L2 & L3 & M1 & M2 & M3 & N1 & N2 & N3 & O1 & O2 & O3 & K1 & K2 & K3 \\ \hline     A & 31 & 11 & 22 & 5 & 1 & 5 & 5 & 1 & 5 & 2 & 0 & 0 & 4 & 2 & 0 \\ \hline     B & 11 & 10 & 4 & 23 & 6 & NA & 8 & 0 & 2 & 1 & 0 & 1 & 1 & 1 & 1 \\ \hline     C & 7 & 4 & 2 & 3 & 1 & NA & 2 & 3 & 1 & 2 & 3 & 1 & 4 & 2 & 1 \\ \hline     D & 21 & 8 & 9 & 29 & 3 & 15 & 22 & 3 & 2 & 6 & 0 & 0 & 3 & 4 & 0 \\ \hline     \end{tabular}     \end{document}


title: Combining multirow and multicolumn

text: When combining `multirow` and `multicolumn` in the same cell of a table I am getting extra vertical lines:               \documentclass[plain]{article}     \usepackage{multirow}     \pagestyle{empty}          \begin{document}          \begin{tabular}{|l|l|l|l|}\hline       \multirow{10}{*}{numeric literals} & \multirow{5}{*}{integers} & in decimal & \verb|8743| \\ \cline{3-4}       & & \multirow{2}{*}{in octal} & \verb|0o7464| \\ \cline{4-4}       & & & \verb|0O103| \\ \cline{3-4}       & & \multirow{2}{*}{in hexadecimal} & \verb|0x5A0FF| \\ \cline{4-4}       & & & \verb|0xE0F2| \\ \cline{2-4}       & \multirow{5}{*}{fractionals} & \multirow{5}{*}{in decimal} & \verb|140.58| \\ \cline{4-4}       & & & \verb|8.04e7| \\ \cline{4-4}       & & & \verb|0.347E+12| \\ \cline{4-4}       & & & \verb|5.47E-12| \\ \cline{4-4}       & & & \verb|47e22| \\ \cline{1-4}       \multicolumn{3}{|l|}{\multirow{3}{*}{char literals}} & \verb|'H'| \\ \cline{4-4}       & & & \verb|'\n'| \\ \cline{4-4}       & & & \verb|'\x65'| \\ \cline{1-4}       \multicolumn{3}{|l|}{\multirow{2}{*}{string literals}} & \verb|"bom dia"| \\ \cline{4-4}       & & & \verb|"ouro preto\nmg"| \\ \cline{1-4}     \end{tabular}          \end{document}      ![compiled document](http://i.stack.imgur.com/HimMj.png) Notice the vertical lines in the `char literals` and `string literals` cells (which should span three columns). How can they be avoided?


title: How to change the word size of "list of table"?

text: I use below code,               \listofrequirement          \listoftables      but the output is like this, the size of "list of tables" is too big, how to make it smaller like the size of "list of requirements"? ![enter image description here](http://i.stack.imgur.com/0XKqI.png)


title: Environment that applies sizeN.clo

text: My document has a base font size of 12pt, but I want the figures to be typeset as if the base font size were 10pt (some of the figures use graphics packages that hardwire font size commands rather than offering `\foosize` indirections, so I can't just fix it that way). I have found Switching to different font size(s) locally, so my goal is to wrap that up in a `\newenvironment`. **EDIT:** It is not quite as simple as using How do I create a macro which reads the content of a file when the macro is defined?, but I now have this:               \usepackage{catchfile}     \CatchFileDef{\tenpointdecl}{size10.clo}{\makeatletter}     \newenvironment{fontsizeten}{%       \let\saveendinput\endinput       \let\endinput\relax       \let\savenewcommand\newcommand       \let\newcommand\renewcommand       \tenpointdecl       \let\newcommand\savenewcommand       \let\endinput\saveendinput     }{}      This works, but strikes me as inelegant. It would be better if there were a way to rewrite the contents of `\tenpointdecl` so that the `\let`s every time it is invoked were unnecessary. Suggestions?


title: Should the case of the title of the original publication be preserved in the bibliography?

text: In the LaTeX template I'm using, the titles of the publications listed in the bibliography are automatically set to all lowercase (except for the first word). I was surprised by this as I would have guessed the case of the original title should be preserved. Should I change it so the original case is used, or is this behavior completely typographically sound?


title: "TeX capacity exceeded" with harvard package and url fields in bib file

text: When I try to compile the attached test document with MikTeX 2.9 updated to the latest packages, I get a               ! TeX capacity exceeded, sorry [input stack size=5000].      error. I finally tracked down the error to be caused by the `url` line in the bib file, which my bib manager automatically produces. How can I fix this without manually removing all `url` lines (which I don't need most of the time, but I don't understand why they lead to the error)? * * * The commands I used for compilation are               pdflatex sa     bibtex sa     pdflatex sa      Please obtain the `iopart` class files from here (I used the PKZip version). I extracted _all_ files from the zip to my project directory and followed the instructions from the documentation included in the same zip file: >   * for alphabetic (Harvard) style reference we recommend that authors use > the jphysicsB.bst BiBTeX style file together with the harvard LATEX package. > jphysicsB.bst is supplied as part of the harvard.sty package which can be > downloaded from www.ctan.org. > * * * Source for `sa.tex`:               \documentclass[12pt]{iopart}     \usepackage{iopams}       \usepackage{harvard}          \begin{document}          test \cite{Hoo2009}.          \bibliographystyle{jphysicsB}     \bibliography{sa}          \end{document}      Source for `sa.bib`:               @ARTICLE{Hoo2009,       author = {Boo Hoo},       title = {Paper},       year = {2009},       url = {boo}     }


title: Scrolling too fast in Windows 8

text: If this question has already been answered, I apologize, but I couldn't find the answer anywhere else. I also apologize because I guess no screenshot or no specific context is suitable to this question. A few info before asking...   OS: Windows 8 Pro   Distro: TeXlive   IDE: TeXmaker 4.2 **Description of the 'issue'**   When switching from Windows 7 to Windows 8, I've noticed that scrolling with the touchpad (two-finger scroll) behaves somewhat different and a bit faster. And that is nice, generally speaking. However, when I've installed TeXmaker, things have been a pain: whenever I want to scroll up/down both in the editor and in the built-in PDF viewer, I notice that that two-finger gesture is a bit too fast (much faster than in Windows 7) and it seems that the longer the document I'm scrolling, the faster the document... well, scrolls.   I know (or, at least, I guess) that the problem is not caused by the hardware because the clickpad driver is exactly the same (also same version) that I had installed in Win7. **Practical example**   My clickpad is 10cm large and 7cm high. I slide two fingers on it by 1cm at 'normal' speed (neither slow, nor fast, can't scientifically measure the speed right now) and the a4 page in the built-in PDF viewer scrolls by one page, instead of the expected 1/3 or 1/2 a page and the editor scrolls by 10-12 lines instead of the expected 3-5 lines.   (note: what is 'expected' is actually the behavior I had in Win7, which is more or less the same as in the standard Ubuntu configuration) **My previous research on the topic**   Then, I've searched the web for some info and I've got that the major difference (at the OS level) between Win7 and Win8 is some sorcery about the mouse and the dpi, in order to implement that fancy system-wide smooth scrolling that Windows 7 was missing compared to other OSes.   http://support.microsoft.com/kb/2908279/en-us   This link is not really related to my issue, but it is the closest official KB I've found about this 'problem'. Yet, when I plug in my USB mouse, everything goes as I've been used to and no 'over-scrolling' is there. Also, this over- scrolling happens to be just in TeXmaker and few other programs I already use, but, in general, it isn't there (Firefox, the File Browser or the MS Office apps as well as many other programs behave normally, with reasonable scrolling speed). **The question**   Did anybody experience the same 'over-scrolling' issue in TeXmaker, under Windows 8? How can I solve it (or how can I restore reasonable scrolling conditions)?


title: Footnote, non-inline syntax?

text: I would like to use footnotes without cluttering the container paragraph. Something like:               This is a very long complex\footnote[a] sentence.          \foottext[a]{So complex that I would prefer to pull out the footnote text.}      The idea comes from the [linktext][1], [1]: http://url.com markdown syntax.


title: Match number sign inside plain TeX loop

text: In order to strip comments from code I would like to input from a file into TeX, I am using the following loop               \documentclass{article}     \def\getfirst#1#2\relax{#1}     \begin{document}     \openin1=mysrcfile.txt       \newcount\linecount       \global\linecount1       \loop         \unless\ifeof1         \read1 to \myinput         \if\expandafter\getfirst\expandafter\myinput\relax #  % Here's the problem           \relax         \else           \myinput         \fi         \global\advance\linecount1       \repeat     \closein1     \end{document}      The code works without the loop, but inside the loop it gives me an error message, because `#` indicates I would like to hand on parameters to the `\loop` command, which is not what I want. My first idea was of course escaping `#` using `\char"23` or `\\#`, but theses two expressions don't match the hash character and placing an `\expandafter` in front of it doesn't seem to change that. Does anyone of you know about a way which escapes the number sign, but still allows for matching it to input chars?


title: XeTeX/mathspec math environment font

text: How does one set the font for text inside a math environment? If I use \setmathsfont(Latin){FontName}, I can change the font for individual letters in the math environment, but not for functions such as \sin. (These aren't controlled by the set "Symbols" either.) Here's a MWE:               \documentclass[a4paper,12pt]{article}          \usepackage[MnSymbol]{mathspec}      \usepackage[no-sscript]{xltxtra}     \defaultfontfeatures{Mapping=tex-text}          \setmainfont{Times}          \setmathsfont(Digits){Times}     \setmathsfont(Latin){Times}     %\setmathsfont(Symbols){Times}          \begin{document}          Some text digits 1, 2, 3 and some math digits $1, 2, 3$.           Some italic text \textit{text}, and some math text $text$.          But, we have \textit{sin x} and $\sin x$. Or, \textit{arctan x} and $\arctan x$.          \end{document}


title: Footnote indentation with amsart and setspace

text: A follow-up to this question: amsart, setspace, and footnotes As explained there, using the `setspace` package in an `amsart` document removes the indentation in the first lines of footnotes. This is apparently because of the way `setspace` redefines `\@footnotetext`. But the solution offered earlier, which is to save this command in a macro and restore it after loading `setspace`, has the undesirable feature of applying the line-spacing settings for the main text to the footnotes as well. On its own, the `\setstretch` function only affects the line-spacing of the main body. But using the `\@footnotetext` fix makes it affect the line-spacing of footnotes too. So, for example:               \documentclass[12pt]{amsart}     \makeatletter     \let\std@footnotetext\@footnotetext     \usepackage{setspace}     \setstretch{2}     \let\@footnotetext\std@footnotetext     \makeatother     \begin{document}     The main text is double-spaced thanks to our use of the setstretch function.\footnote{But now this footnote is double-spaced just like the main text. How do I fix this?}     \end{document}      results in a double-spaced footnote. Inserting `\usepackage{footmisc}` after `\makeatother` in the above example makes the footnote single-spaced again, but it seems to indent the first line of each footnote a little too much (more than the main text is indented). I can adjust the first-line footnote indent by using, e.g., `\setlength{\footnotemargin}{1.1em}` after `\usepackage{footmisc}`, but I don't know how wide the standard main-text `amsart` indent is, so I don't know how to make it match the main text exactly. And this still leaves the problem of how to adjust the indentation of subsequent paragraphs within a footnote. Does anyone know what the proper relationship is between main-text indentation and footnote first-line indentation in `amsart`, as well as that between the first line of a footnote and the first lines of subsequent paragraphs within that footnote? And how do I get these to line up without screwing up the line- spacing of the footnote?


title: subfigure global counting caption

text: I would like to keep subfigure count my figures globally and label them continuesly. This is the way it is: [Fig 1]   [Fig 2]   [Fig 3a Fig 3b]   [Fig 4]   And that is the way I want it: [Fig 1]   [Fig 2]   [Fig 3 Fig 4]   [Fig 5]   I think it shouldn't be too hard, but well, I need help :)   (another package is not an option! I want to do this with subfigure)   Thanks alot


title: How to color a region?

text: The following code               \documentclass{article}     \usepackage{tikz}     \usetikzlibrary{intersections,positioning}          \begin{document}          \begin{tikzpicture}[radius=5]     \draw (0,0) rectangle (5,5);     \draw[name path=c1] (0,0) arc[start angle=-90,end angle=0] -- (5,5);     \draw[name path=c2] (5,0) arc[start angle=0,end angle=90] -- (0,5);     \draw[name path=c3] (5,5) arc[start angle=90,end angle=180] -- (0,5);     \draw[name path=c4] (0,5) arc[start angle=180,end angle=270] -- (5,0);     \begin{scope}     \fill [name intersections={of=c1 and c2}]       (intersection-1) circle (2pt) node[label=right:$A$] {};     \fill [name intersections={of=c2 and c3}]       (intersection-1) circle (2pt) node[label=above:$B$] {};     \fill [name intersections={of=c3 and c4}]       (intersection-1) circle (2pt) node[label=left:$C$] {};     \fill [name intersections={of=c4 and c1}]       (intersection-1) circle (2pt) node[label=below:$D$] {};     \end{scope}     \end{tikzpicture}          \end{document}      produces ![](http://i.stack.imgur.com/SBF4R.png) How can I apply color only to the central region limited by the arcs crossing at `A`, `B`, `C` and `D`?


title: Makeindex no .nls file

text: Here is the sample code from test.tex: http://texblog.org/2012/05/14/list-of- symbols-or-abbreviations-nomenclature/               \documentclass{article}      \usepackage{nomencl}     \makenomenclature     \renewcommand{\nomname}{Time Zones}     \begin{document}     UTC\nomenclature{UTC}{Coordinated Universal Time} is 3 hours behind ADT\nomenclature{ADT}{Atlantic Daylight Time} and 10 hours ahead of EST\nomenclature{EST}{Eastern Standard Time}.     \printnomenclature     \small\hfill Created by http://texblog.org     \end{document}      I ran this on TexStudio. pdfLatex --> MakeIndex --> pdfLatex **Errors when I ran MakeIndex:** Process started: makeindex.exe "test".idx Input index file test.idx not found. Usage: makeindex.exe [-ilqrcgLT] [-s sty] [-o ind] [-t log] [-p num] [idx0 idx1 ...] Process exited with error(s) **Errors when I ran pdfLatex** No file test.nls. Thank you for your help!


title: Does tex know its own command line arguments?

text: Is it possible to test within the document what commandline arguments were passed to tex? The particular case that prompts this is the question Tabs in output file written by xelatex and pdflatex are different where it would be useful to know if the `-8bit` argument has been passed to tex and issue a warning if not. That is, if `pgfplots` could contain the code:               \ifxetex      \ifarg{8bit}      \else       \pkgwarning{You're using xe(la)tex without the -8bit argument.  Some external files might go wrong.  If things don't work as you expect, try using the -8bit argument.}      \fi     \fi      then it might make it easier to spot when the situation of the linked question occurs. (A year after asking the above question, it happened to me again and it took me some time to realise what the problem was and find the solution, even though it had been me who found it last time!)


title: pdfTeX warning: "version allowed"

text: After including some figures (saved as `.pdf`s) in my LaTeX document with `\includegraphics`, I got the following warning: > pdfTeX warning: pdflatex.exe (file ./figure/figure_1.pdf): PDF inclusion: > found PDF version <1.6>, but at most version <1.5> allowed The strange thing is, I'm using `\includegraphics` elsewhere in my document for other figures (also saved as `.pdf`s, in the exact same way), but no warning is generated for those. What does this mean? How can I make it go away?


title: How can I draw nested shape, one on top another

text: For example, I want to draw a green rectangle with some black circles along the central horizontal axis of it. My main problem is how to let the circles appear on top of the rectangle.


title: \hfill in in table cells

text: There are tables in my document. The baselines between the last row of each table and the following text is usually circa `16,25p` (see below). Now I wanted to add right-aligned text to some selected one-line rows (`EXPLANATION IN COL2`). I tried it two ways (using packages `calc` and `tabularx`; see below) but this seems to change the `16,25p` space. How can I maintain `16,25p` space? I would like to retain two columns because some text from later rows may go beyond where `EXPLANATION IN COL2` starts. My preference would be the approach using `calc`.               \documentclass{article}     \usepackage{tabularx}\usepackage{calc}     \begin{document}     \setlength{\parindent}{0pt}          \begin{tabular}[t]{@{}p{75pt}@{}@{}l@{}}     COL1TEXT & COL2TEXT\\     COL1TEXT & COL2TEXT     \end{tabular}     \vspace{5pt}\par     Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Etiam lobortis facilisis     sem.\vspace{30pt}\par          \begin{tabular}[t]{@{}p{75pt}@{}@{}p{\textwidth-75pt}@{}}     COL1TEXT & COL2TEXT \hfill EXPLANATION IN COL2\\     COL1TEXT & COL2TEXT     \end{tabular}     \vspace{5pt}\par     Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Etiam lobortis facilisis     sem.\vspace{30pt}\par          \begin{tabularx}{\textwidth}{@{}p{75pt}@{}@{}X@{}}     COL1TEXT & COL2TEXT \hfill EXPLANATION IN COL2\\     COL1TEXT & COL2TEXT     \end{tabularx}     \vspace{5pt}\par     Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Etiam lobortis facilisis     sem.     \end{document}      ![enter image description here](http://i.stack.imgur.com/6F3vx.png)


title: One navigation bullet per subsection with subsection=false in custom beamer theme

text: I'm using the miniframes theme in beamer, and I need it customized as follows: The idea is to have a single line of bullets. For each section, I want one bullet per subsection, instead of one bullet for every frame (this is because I have too many frames and the bullets overflow to the next section). However, I need the subsection option in false, as I don't want the subsection title to appear in the header. I tried the answer provided here: How to remove some pages from the navigation bullets in Beamer? and it worked almost perfect. The only problem I have is that when the subsection has more than one frame, from the second onwards the bullet is not highlighted (it is only shown as bold), so the audience loses track of where we are. So, my question is, is there any way that I can still highlight the current subsection bullet for the frames following the first one of every subsection? Or an easier way to show only one bullet per subsection without activating the subsection option? I hope I made myself clear..Here is a minimal working example of my current code. It shows the problem described above, in which the bullet for a second (or third) frame in the same subsection doesn't show highlighted.               \documentclass[compress]{beamer}     \useoutertheme[subsection=false]{miniframes}     \makeatletter     \let\beamer@writeslidentry@miniframeson=\beamer@writeslidentry     \def\beamer@writeslidentry@miniframesoff{%     \expandafter\beamer@ifempty\expandafter{\beamer@framestartpage}{}% does not happen normally       {%else         \clearpage\beamer@notesactions%       }     }     \newcommand*{\miniframeson}{\let\beamer@writeslidentry= \beamer@writeslidentry@miniframeson}     \newcommand*{\miniframesoff}{\let\beamer@writeslidentry=\beamer@writeslidentry@miniframesoff}     \makeatother          \section{S1}     \subsection{SS1}       \frame{1}     \miniframesoff       \frame{2}       \frame{3}          \miniframeson     \subsection{SS2}       \frame{1}     \miniframesoff       \frame{2}       \frame{3}     \end{document}


title: Only one bullet per subsection in header

text: > **Possible Duplicate:**   >  One navigation bullet per subsection with subsection=false in custom beamer > theme I want to have in my header of my presentation only one bullet for each subsection. Although several questions handle similar problems, I was not able to solve my problem so far. Here is to code I use:               \documentclass{beamer}     \usepackage[english]{babel}     \usepackage[T1]{fontenc}     \usepackage[latin1]{inputenc}     \usetheme{Singapore}           \beamertemplatenavigationsymbolsempty           \begin{document}     \section{Text1}     \subsection{Text1.1}     \frame{Text1.1.1}     \frame{Text1.1.2}     \frame{Text1.1.3}     \subsection{Text1.2}     \frame{Text1.2.1}     \frame{Text1.2.2}     \subsection{Text1.3}     \frame{Text1.3.1}     \section{Text2}     \subsection{Text2.1}     \frame{Text2.1.1}     \frame{Text2.1.2}     \frame{Text2.1.3}     \subsection{Text2.2}     \frame{Text2.2.1}     \frame{Text2.2.2}     \subsection{Text2.3}     \frame{Text2.3.1}     \frame{Text2.3.2}     \frame{Text2.3.3}     \end{document}      At the moment I get for each slide in a subsection a bullet. What do I have to change so that I get only one bullet for each subsection? I would be very happy about some help!


title: Consecutive caption numbers without chngcntr?

text: As many before me I need consecutive caption numbers for figures and tables instead of chapter-based numbers like `Figure 1.2`. I use `scrreprt` and the `caption`-package for my document. I also need roman table numbers and achieved it by changing the caption label format like this:               \DeclareCaptionLabelFormat{table}{#1~#2}     \captionsetup[table]{labelformat=table}     \renewcommand\thetable{\Roman{table}}      Since they start again with `Table I` for every chapter looking very oddly in the list of tables I tried the `chngcntr`-package. It solved the numbers of figures nicely but it overrides the roman numbers. What can I do?


title: Where should I setup the markup of header/footer? In \fancyxxx or in redefinition of \xxxmark?

text: \renewcommand{\chaptermark}[1]{\markboth{\chaptername\ \thechapter.\ #1}{}}     \renewcommand{\sectionmark}[1]{\markright{\thesection\ #1}}     \fancyhead[RO,LE]{\small\sf\color{black}\rightmark}     \fancyhead[LO,RE]{\small\tt\color{black}\leftmark}      or               \renewcommand{\chaptermark}[1]{\markboth{\small\tt\color{black}\chaptername\ \thechapter.\ #1}{}}     \renewcommand{\sectionmark}[1]{\markright{\small\sf\color{black}\thesection\ #1}}     \fancyhead[RO,LE]{\rightmark}     \fancyhead[LO,RE]{\leftmark}      ?


title: Line break after description label

text: How can I ger a line break after the label of a description environment item? I'd like to keep the indentation and the bold face for the item label, but I'd like to have the body of the item in a separate paragraph, because it starts with an itemize environment and indenting that looks really strange. Adding `\\\` does not work (error message “no line to end here”), neither does a blank line or `\par` (no effect). Even `\,\par` has no effect. Example: \documentclass{article} \begin{document}               \begin{description}     \item[Animals:]       \begin{itemize}       \item Dog       \item Cat       \item Fish       \end{itemize}     \item[Colors:]       \begin{itemize}       \item Red       \item Green       \item Blue       \end{itemize}     \end{description}     \end{document}      It renders like this: ![bad rendering](http://i.stack.imgur.com/9MLHm.png)


title: email symbol while using package listings

text: I use `\usepackage{marvosym}` and the command `\MVAt` whenever I need to write the 'at' symbol (`@`) But surprisingly it doesn't work in a listings environment For example:               \begin{lstlisting}[framexleftmargin=0mm,basicstyle=\ttfamily\small,breaklines,columns=fullflexible]     ' having 1=1--     ' or 1 in (select @@version)--     ' union all select @@version--     ' OR 'unusual' = 'unusual'     ' OR 'something' = 'some'+'thing'     \end{lstlisting}      Also when it comes to `ttfamily\verb` I have the same problem:               \begin{ttfamily}\verb|declare @s varchar(8000) select @s = db_name() if (ascii(substring(@s,|\end{ttfamily}      Is there a solution to the problem?


title: All (La)TeX warnings and errors

text: For testing purposes, I am looking for a comprehensive list of _all_ errors and warnings that TeX, and LaTeX can output. I don't mean errors and warnings produced by all packages, as this would give an ever-changing list, just TeX and LaTeX, which should be stable. Has anyone ever produced such a list, e.g., for internationalization?


title: Beamer bibliography in two columns on multiple frames?

text: Is it possible to put a bibliography in beamer presentation, in two columns spanning via several frames? I have               \begin{frame}[allowframebreaks]{Reference}         \bibliographystyle{alpha}         \bibliography{mybib}     \end{frame}      And that will split the references on multiple slides, which is nice, but still there are too many slides created just for references. So I tried with `multicol` package, but I only get some of the references, and only on one slide (I kept the `allowframebreaks` on the frame). So that's kinda a bust :\ I've searched all over but no luck. I'd give a mwe, but I'd need to give a .bib file, dunno how that can help...


title: How to prevent Beamer from loading amssymb and amsfonts?

text: I would like to use the `mathdesign` package and the `charter` font in my `beamer` presentation. But when using               \usepackage[charter,cal=cmcal]{mathdesign}      I get the following warnings (sic!):               Package 'amssymb' shouldn't be used in conjonction with package mdbch     Package 'amsfonts' shouldn't be used in conjonction with package mdbch      I already found out that the `beamer` package is responsible for this since it loads `amssymb` and `amsfonts`. But does it really need them? What is the correct way to handle this or should I just ignore the warnings?


title: Including sections of source code as a listing, while being robust to source code edits

text: Is there a way to input particular sections of source code using `\lstinputlisting` (from the `listings` package) in a flexible way? It's possible to use the `firstline` and `lastline` options to input particular line ranges, but this isn't robust to changes to the source file. For example, suppose that the input source file is:               int square(int x) {       return x * x;     }          int cube(int x) {       return x * x * x;     }      In my LaTeX document, I can include the `cube` procedure using the command `\lstinputlisting[firstline=5,lastline=7]{source.c}`. But suppose I later decide to rewrite the `cube` procedure. The input source file becomes:               int square(int x) {       return x * x;     }          int cube(int x) {       int x2;       x2 = square(x);       return x * x2;     }      Now my LaTeX document will not show the final two lines of `cube` because the listing uses only lines 5-7. I could manually update the line range, but this is tedious and error-prone. Is there a way to mark sections of source code with some kind of label so that the listing will be robust to these sorts of changes? For instance, perhaps the input source file would be something like               int square(int x) {       return x * x;     }          /**\beginlabel{lst:cube} **/     int cube(int x) {       int x2;       x2 = square(x);       return x * x2;     }     /**\endlabel{lst:cube} **/      so that I could use something like `\lstinputlisting[lines=lst:cube]{source.c}` to include the section that I want and remain robust to changes. I am open to using other packages for source code listings (e.g., `minted`) if helpful.


title: Using the "master file" with emacs and Sweave

text: One of the things I love about emacs is being able to specify a master file, then compile an included `.tex` file - I just use `C-c C-b` For sweave documents, I have the following layout:   * `master.Rnw`     * `\SweaveInput{chapter1}`     * `\SweaveInput{chapter2}`     * `\SweaveInput{chapter3}` I would like to use the same idea as `C-c C-b` to only sweave/latex `chapter1`. Is this possible in emacs?


title: Biblatex command that prints a bibliography entry

text: Is there a `biblatex` command that prints a bibliography entry? A command that prints this entry for example: _Prunescu and Sin 2013 - Bioresource Technology Vol. 150C, p. 393-403_ which is defined in my `.bib` file. I need it on a slide in `beamer`.


title: Make headers display chapter title, not book title in tufte-book

text: I'm creating an edited volume with the tufte-book `\documentclass`. Each chapter is written by a separate author. I'm trying to get the header to display the name of each **chapter** and its **author**. At the moment, it is displaying a single author and the title of the book. Is it possible to do this?


title: Aligning columns, but allowing for text inbetween

text: I need help aligning text that spans multiple lines where I have Verbatim code in between. Here is a mock example to show what I mean:               Fruit        Amount     Apple        $3.00          \begin{verbatim}     ... some code here.     \end{verbatim}          Orange       $4.00     Peach        $7.55          \begin{verbatim}     ... more code.     \end{verbatim}          Grapes       $11.50      So basically I need the Fruit and Amount columns to always align as shown, even through the verbatim code. My question is, how can this be done with the least amount of pain? :)


title: Center displayed, boxed equation within environment

text: I would like to center, with respect to the page margins, a displayed equation that is boxed and is within either an enumerate or itemize environment. Below is an example of what I have. Notice that the displayed, boxed equation is centered with respect to the environment (not the page margins). By the way, I borrowed the answer to this question in order to make the boxed equation.               \documentclass[11pt]{article}     \usepackage{amsmath,amssymb,amsfonts}          \usepackage{color}     \definecolor{myblue}{rgb}{.8, .8, 1}          \usepackage{amsmath}     \usepackage{empheq}          %%%%%%%%%%%%%%%%%%%%     %%%%%%%%%%%%%%%%%%%%     %Code for boxed equation, taken from a question on Stack Exchange:      \newlength\mytemplen     \newsavebox\mytempbox          \makeatletter     \newcommand\mybluebox{%         \@ifnextchar[%]            {\@mybluebox}%            {\@mybluebox[0pt]}}          \def\@mybluebox[#1]{%         \@ifnextchar[%]            {\@@mybluebox[#1]}%            {\@@mybluebox[#1][0pt]}}          \def\@@mybluebox[#1][#2]#3{         \sbox\mytempbox{#3}%         \mytemplen\ht\mytempbox         \advance\mytemplen #1\relax         \ht\mytempbox\mytemplen         \mytemplen\dp\mytempbox         \advance\mytemplen #2\relax         \dp\mytempbox\mytemplen         \colorbox{myblue}{\hspace{1em}\usebox{\mytempbox}\hspace{1em}}}          \makeatother     %%%%%%%%%%%%%%%%%%%%     %%%%%%%%%%%%%%%%%%%%          \begin{document}     \title{Title}     \author{Author}     \date{Date}     \maketitle          \noindent Here is a sentence.      \begin{itemize}     \item Here is an item.     \item Here is an item.     \begin{enumerate}         \item Here is Step 1.         \item Here is Step 2 with an equation:         \begin{empheq}[box={\mybluebox[5pt]}]{equation*}                 x = \frac{-b \pm \sqrt{b^2-4ac}}{2a}.         \end{empheq}         \item Here is Step 3.     \end{enumerate}     \item Here is an item.     \end{itemize}          \end{document}      ![enter image description here](http://i.stack.imgur.com/5ucBZ.jpg)


title: Trouble typesetting pgfplots with context (mkiv)

text: I'm trying to typeset the minimal pgfplots example from the Context Wiki but with no success. **Context-Wiki Example**               \setupcolors[state=start]     \usemodule[tikz]     \usemodule[pgfplots]          \starttext          \starttikzpicture             \startaxis[     xmin=0,xmax=300,                             title=http://cryogenics.nist.gov/,                             xlabel=$T$ (K),                             ylabel=$(L-L_{293})/L_{293}$,                             legend style={at={(0.95,0.05)},anchor=south east},                             width=16cm ]                     \addplot[mark=none,color=red] plot file {sapphire.dat};                     \addlegendentry{sapphire}                     \addplot[mark=none,color=green] plot file {Be.dat};                     \addlegendentry{Be}                     \addplot[mark=none,color=blue] plot file {BeCu.dat};                     \addlegendentry{BeCu}                     \addplot[mark=none,color=cyan] plot file {SS304.dat};                     \addlegendentry{SS304}                     \addplot[mark=none,color=magenta] plot file {Al6061-T6.dat};                     \addlegendentry{Al6061-T6}                     \addplot[mark=none,color=orange] plot file {nylon.dat};                     \addlegendentry{nylon}             \stopaxis     \stoptikzpicture          \stoptext      No matter which setup i use: the vanilla TexLive-2011 or the up-to-date standalone context i get always the same error:                   texmf-modules/tex/generic/pgfplots/numtable/pgfplotstable.coltype.code.tex)     ! Missing number, treated as zero.          system          > tex > error on line 1043 in file pgfplottest.tex: Missing number, treated as zero ...               <to be read again>                         ^     l.1043 \catcode`\^^                        I=12      The used versions are as followed: pgfplots-1.5.1 mtx-context | ConTeXt Process Management 0.52   mtx-context |   mtx-context | main context file: /opt/context-minimals/texmf- context/tex/context/base/context.mkiv   mtx-context | current version: 2012.04.19 23:18 Any Ideas?


title: Increase title spacing stretchability using titlesec with compact

text: I have a two-column document that uses the `titlesec` package with the `compact` option. This mostly produces the spacing that I like, but it doesn't give enough stretchability above the section titles which leads to underfull vboxes and spaces between paragraphs. It is especially noticeable in pages that have full-width floats and only one column of text has a heading (e.g., `\paragraph`). Is there any easy way to increase the stretchability without just guessing values for `\titlespacing`? Minimal example.               \documentclass{article}     \usepackage[compact]{titlesec}     \usepackage{lipsum}     \beforetitleunit=1in % lockstep's suggestion (more or less)     \begin{document}     \section{A}     \lipsum[1]     \subsection{B}     \lipsum[2]     \subsubsection{C}     \lipsum[3]     \paragraph{D}     \lipsum[4]     \end{document}


title: TEXINPUTS and arara and/or TeXworks

text: I was wondering how I could use TEXINPUTS combined with either arara or TeXworks. To understand my point, I just received an answer on the thread `How to run LaTeX and lilypond-book in one command?', where the solution was done with a tool called arara (which seems to be a great tool, BTW). Now I'm trying to merge this solution into TeXworks. The problem is, that since lilypond-book creates a lot of garbage, I need to make sure that its output is put into a local temporal subfolder. But then, in order to process the .tex file (generated by lilypond-book) residing in the subfolder with the other related files (eg. BiBTeX files) in the main folder, I need to add the subfolder to TEXINPUTS. Apparently, I can't figure out how to do this either with arara itself or with TeXworks. Any help is greatly appreciated


title: New line with subfig's subfloat

text: I am using the package `subfig`. In one `subfloat`, I need to include only text (no graphics). The issue is that text does not wrap, rather, it goes out of the page. I need to enter a new line, but adding `\linebreak` does not help, it is simply ignored. Any suggestions?


title: Colored frame for the framed environment

text: I'm using the `framed` environement to put a text in a framed box. I'm using it because I like its formating more than `fbox`. Now I would like to color the frame's border and I didn't find anything on the net to do that. How should I proceed?


title: How to insert a background image in a beamer frame?

text: Apologies in advance if my question is very basic. I am still learning my beamer skills, so please bear with me. I want to insert a background image in a beamer frame and use this "frame" as a beamer frame. I want to insert different background images on different frames. Towards this end, I tried               \usebackgroundtemplate{\includegraphics[width=\paperwidth]{../images/crayons.png}}      on a specific frame to insert a background image, but I was unsuccessful. Am I missing any package? Or is there a different way of doing this? I found this question here about inserting image but not as a background. In addition to inserting a background image, I also want to add text to the frame. (It is highly likely that I could not understand the questions correctly) As a side note, if any of you are an Emacs org-mode users, can you please tell me a way to do this in org-beamer. I will be very thankful. Any pointers or help is highly appreciated. Here is a sample slide code:               \documentclass[bigger]{beamer}     \usepackage[utf8]{inputenc}     \usepackage[T1]{fontenc}     \usepackage{fixltx2e}     \usepackage{graphicx}     \usepackage{longtable}     \usepackage{float}     \usepackage{wrapfig}     \usepackage{soul}     \usepackage{textcomp}     \usepackage{marvosym}     \usepackage{wasysym}     \usepackage{latexsym}     \usepackage{amssymb}     \usepackage{hyperref}          \begin{frame} \frametitle{Models}     \label{sec-2_3}               \usebackgroundtemplate{\includegraphics[width=\paperwidth]{../images/crayons.png}}          \begin{itemize}      \item choose training data set     \item choose test data set     \item choose model     \item fit on training data set     \end{itemize}          \end{frame}


title: Fill between two curves in pgfplots.

text: How to accomplish fill between two curves in `pgfplots`? For example, I have               ...     \addplot coordinates {(0,1) (1,1)};     \addplot file {something.dat};     ...      and I would like to have filling between those curves.


title: What kind of data can be gleaned from a PDF created in LaTeX?

text: As I use LaTeX for the creation of many of my business instruments, and since I send these all over the world to different clients I just wanted to know if there are any data embedded in a PDF that might be recovered my a forensic data analyst. I often leave comments in my TeX code that I want, say, a focus group to notice while they make successive amendments to evolve the document into it's final form; however, I wouldn't want these comments to be seen by the clients that ultimately receive them. Even the focus groups' comments, or any gadgets that pull data from the Internet that might reveal a source.


title: rectangle with one curved side

text: I would like to create a filled rectangle with one curved side such as one shown in the picture below: ![enter image description here](http://i.stack.imgur.com/r85eU.png)               \begin{tikzpicture}     \draw[red,thick] (0,-3) -- (0,0) -- (3,0) -- (3,-3) edge [bend left] (1,-3);     \draw[red,thick,fill] (1,-3)  edge [bend right] ( 0, -3) ;     \end{tikzpicture}      I am not able to fill it correctly.