title: How to extend the \lstinputlisting command

text: With the answer from autogobble for lstinputlistings I've managed to create a command that gobbles `\lstinputlisting` and makes `firstnumber` to start by `firstline`. I would like to rewrite it as a package, so it hooks into `\lstinputlisting`, but as the code might reflect I have very little experience with programming in LaTeX. My goal is to be able to write               \lstset{tabsize=3,numbers=left,frame=single,basicstyle=\footnotesize\ttfamilily,}     \lstinputlisting[levels=1,linerange={2-4},...]{hello.c}      where the dots are possible extra regular listings options. or what could be even more nice:               \lstset{tabsize=3,numbers=left,frame=single,basicstyle=\footnotesize\ttfamilily,}     \lstinputlisting[autogobble,linerange={2-4},...]{hello.c}      where LaTeX automatically counted the number of tabs like in How to automatically skip leading white spaces in listings **MWE**               \documentclass{article}     \usepackage{listings,xifthen}          \lstset{tabsize=3,numbers=left,frame=single,basicstyle=\Huge\ttfamily,columns=flexible}     \newlength{\gobble}     \newlength{\gobblea}     % The width of a single space. basicstyle from lstset should be used     \sbox0{\Huge\ttfamily \ }     \newcommand{\mylist}[5]{     %#1 is number of tabs, could be calculated like in listings-autogobble with autogobble=true or be an extra option     %#2 is tabsize, which is set in lstset     %#3 is firstline from lstset     %#4 is lastline from lstset     %#5 is the filename, the only thing which should be an argument and not an option.          % Remove a single space     \setlength{\gobble}{-\the\wd0}     % Reindent a bit by multiplying with 0.9, then multiply by tabsize and number of indentation levels     \setlength{\gobble}{0.9\gobble*#1*#2}     \setlength{\gobblea}{\gobble}     \addtolength{\gobblea}{10pt}     % Check if firstline is defined     \ifthenelse{\isempty{#3} \OR \equal{#3}{0}}{%     % Check if lastline is defined     \ifthenelse{\isempty{#4}}{%     \lstinputlisting[firstnumber=1,firstline=1,framexleftmargin=\gobble,xleftmargin=\gobble,numbersep=\gobblea]{#5}     }{     \lstinputlisting[firstnumber=1,firstline=1,lastline=#4,framexleftmargin=\gobble,xleftmargin=\gobble,numbersep=\gobblea]{#5}     }     }{     \ifthenelse{\isempty{#4}}{%     \lstinputlisting[firstnumber=#3,firstline=#3,framexleftmargin=\gobble,xleftmargin=\gobble,numbersep=\gobblea]{#5}     }{     \lstinputlisting[firstnumber=#3,firstline=#3,lastline=#4,framexleftmargin=\gobble,xleftmargin=\gobble,numbersep=\gobblea]{#5}     }     }     }     \begin{document}     %mylist{#tabs}{#tabsize}{firstline}{lastline}{filename}     \mylist{1}{3}{2}{4}{hello1.c}     \end{document}      **edit:** I just modified the code from cyberSingularity a bit to use `lst@basicstyle` and `lst@tabsize`. It should work with any:   * font size in document class   * font size in basicstyle   * tabsize Limitations (Would be very pleased if someone could address these limitations): * It needs `columns=flexible` and `basicstyle=\ttfamily`. * If `tabsize` or `basicstyle` is passed as options to `\lstinputlisting`, they must be written before `widthgobble`. * If using XeLaTeX, the commands must be loaded before Polyglossia, othwerwise all text will be formatted with `\ttfamily` \documentclass[10pt]{article} \usepackage{listings}               \usepackage{filecontents}     \begin{filecontents*}{hello1.c}     if (a<b){        if (b<a){           printf("hello")        }     }     \end{filecontents*}          \lstset{tabsize=3,numbers=left,frame=single,basicstyle=\Huge\ttfamily,columns=flexible}          \makeatletter     \newlength{\singlespace}     \newlength{\gobble}     \newlength{\numbersep}     % The width of a single space.     \settowidth{\singlespace}{\lst@basicstyle \ }     \setlength{\singlespace}{-\singlespace}          \lst@Key{firstlineandnumber}\relax{\def\lst@firstline{#1\relax}\def\lst@firstnumber{#1\relax}}     \lst@Key{widthgobble}{0}{%         \setlength{\gobble}{0.9\singlespace}% reindent a bit         \setlength{\gobble}{\lst@tabsize\gobble}% multiply by tabsize         \setlength{\gobble}{#1\gobble}% multiply by number of tabs         \def\lst@xleftmargin{\gobble}% move left margin left         \def\lst@framexleftmargin{\gobble}% move left frameborder left         \setlength{\numbersep}{\gobble}%         \addtolength{\numbersep}{10pt}%         \def\lst@numbersep{\numbersep}% distance between numbers and left frameborder     }     \makeatother          \begin{document}     %widthgobble=#tabs,firstlineandnumber sets firstline and firstnumber     \lstinputlisting[widthgobble=1,firstlineandnumber=2,lastline=4]{hello1.c}     \end{document}


title: What are the various units (ex, em, in, pt, bp, dd, pc) expressed in mm?

text: How can one determine the length of the different units (measured `1ex`, `1em`, `1in`, `1pt`, `1bp`, `1dd`, `1pc`) in `mm`?


title: TiKz/PS Blending at the pixel level

text: To do proper blending easily in TiKz, I need to do be able to have a special blend mode. (this is relevant to anything dealing with graphics and not tiks/tex)   * When you plot a pixel with an alpha channel the graphics package or graphics card will mix the pixel color below it with the new one. eg., suppose we have (100,0,0,255) and we plot (50,50,0,50) on top of it. The new pixel will be (100*(255 - 50)/255 + 50*50/255, 50*50/255, 0, 255) = (80, 10, 0, 255).    * Now when you have a white background you always end up mixing with white for the initial pixel. So if you plot any pixel for the first time with an alpha channel it will get blended with white and become washed out. (255, 255, 255, 255) blended with (255, 0, 0, 50) = (255, 205, 205, 255)   * This is the default behavior of tikz and most graphics packages that plot with alpha channel(you just mix pixels)   * I would like, instead, to plot where the first color does not mix. Basically if it is the first pixel to be plotted then it's alpha channel will always be set to 255. This prevents colors from being washed out and allows for complex geometrical conditions that break others.   * Anyone know if TiKz can do this or be modified to do it? Basically one has to keep a bit buffer where each bit represents if a pixel has been plotted for the first time or not(sort of a like a z-buffer). Blending mode - This mode is basically "Set Alpha channel to 255 for new pixels"   * One can do the test on the primitive level in tikz BUT this does not get partial overlapped objects. Think of two circles that overlap but not totally. One circle is "new"(in the sense that all pixels are new) and the other is partially new(some pixels, the overlapped ones) are not new while the others are. Using tikz's fill opacity cannot handle this case(although you could do some clipping and stuff that becomes very complex quickly). One way to see this at http://www.texample.net/tikz/examples/venn-diagram/ notice the last diagram and how washed out all the colors are. In my mode they will not be washed out because none of the circles pixels will be blended with white but all blend with themselves. Again, one can achieve my effect in a very complex manner by using clipping and changing alpha values but it can be achieved much easier given the method I have described = if new pixel then force alpha channel = 255.


title: Global key-value dictionary

text: Is there any package that implements a data structure that provides a key- value mapping (akin to Python's `dict`)? The keys will be user input and may contain spaces and non-ASCII characters. I would like to have such a thing at global level so that I can add items inside macros. If not, I appreciate any hints or code snippets. I have peeked into the docs of `keyval`, but couldn't see how to use this for my purpose. Also, I am aware that `etoolbox` has list processing, perhaps this can be turned into a dictionary with some work?


title: space between lines is not correct

text: The space between two lines in a paragraph should be 1.5 lines which is according to my university requirements it equivalents to 0.21 inch. In LaTeX, I used the package setspace as follows:               \usepackage{setspace}     \onehalfspacing      However, when I measure the space between the lines I find out that the distance is 0.22 inch, while the requirements of my university is 0.21 inch. I have searched in this valued site and even in Google but I did not find answer. Would somebody help me please to adjust the distance?


title: \noindent after figure not working

text: Consider the following example:               \documentclass[danish,a4paper,12pt]{article}          \usepackage{babel}     \usepackage[hmargin=2.4cm,vmargin=3cm]{geometry}     \usepackage{pstricks}          \begin{document}          \begin{figure}[htbp]     \def\h{150 }     \def\w{45 }     \def\hb{8 }     \def\hd{18 }     \def\a{1 }     \def\b{1 }     \def\c{1 }     \def\d{1.5mm}     \def\N{5 }      \centering      \SpecialCoor      \psset{unit=0.8mm}       \begin{pspicture}(-25.5,-7)(23.5,150)       \pstVerb{%         /f {neg \h div 1 add \w mul \c dup add sub 0.5 mul} def         /hbh 0.5 1 \hd \h div add mul def       }       \pspolygon(!\w 2 div neg 0)(!\w 2 div 0)(0,\h)       \psforeach{\iA}{1,2,..,\N}{%         \pstVerb{/z \iA\space 1 sub \b \hd add mul def}         \pspolygon(!z f neg z)(!z f z)(!z \hd add dup f exch)(!z \hd add dup f neg exch)         \pscircle(!0 0.5 \hd mul \iA\space 1 sub \hd \b add mul add){\d}       }       \pspolygon(!hbh neg \w mul \a sub \hb neg)%                 (!hbh \w mul \a add \hb neg)%                 (!0.5 \w mul \a add 0)%                 (!-0.5 \w mul \a sub 0)       \end{pspicture}     \end{figure}          \noindent     \textsf{Bem{\ae}rkning:} Figuren er ikke i m{\aa}lestoksforholdet~$1{:}10$, men dens m{\aa}l passer i forhold til hinanden.          \end{document}      How do I make the code compilable when using `latex` if I want the `\noindent` after the figure?


title: Back-references with crosscited bibliography items

text: I am trying to mimick the "done-by-hand" reference style my friend used in his PhD thesis and I have decided that backreferences may be a nice finishing touch. Unfortunately, as this is philology, there are some multi-volume collected works for some authors, which are cited per-volume, but bibliography has the whole collection only. To the point. When compiled, the file:               \documentclass{article}          \usepackage[backend=biber,style=verbose-trad2,backref]{biblatex}     \usepackage{filecontents}          \begin{filecontents}{test.bib}          @mvbook{AuthorAll,         author = {Prolific Author},         volumes = {1--1000},         title = {Collected Works},         editor = {Tireless Editor}     }          @book{Author1,         crossref = {AuthorAll},         title = {Collected Works. Vol.~1. Poems part 1},         options = {skipbib=true}     }          @book{Author2,         crossref = {AuthorAll},         title = {Collected Works. Vol.~2. Poems part 2},         options = {skipbib=true}     }          @book{Author3,         crossref = {AuthorAll},         title = {Collected Works. Vol.~3. Poems part 3},         options = {skipbib=true}     }     and so on...     \end{filecontents}          \addbibresource{test.bib}          \begin{document}          \cite[11]{Author1}\clearpage          \cite[22]{Author2}\clearpage          \cite[33]{Author3}\clearpage          \printbibliography     \end{document}      will give you a References list that has just one item, the one corresponding to AuthorAll. Is it possible for this item to refer back to all the citations made to the items Author1, Author2, Author3 (in this case to pages 1--3)?


title: Tikz, childs not exactly on the same level

text: I'm having trouble arranging my child nodes. They don't seem to be centered, horizontally, if use the anchor=north setting. It looks like they are arrange according to their top edge of the node, but i would like to have them centered, so that the connection between the childs a parallel. I'll hope you understand what I mean!               \begin{tikzpicture}[->,>=stealth',      edge from parent/.style={thick,draw=black!70,-latex},      level 1/.style={sibling distance=4cm},      ,level distance =4.5cm,auto,scale=0.75,transform shape]               \tikzstyle{and}=[rectangle, rounded corners,thick,draw=black!75,top color=blue!10, bottom color=white,minimum size=5mm]     \tikzstyle{or}=[rectangle,rounded corners,thick,draw=black!75,top color=red!10, bottom color=white,minimum size=5mm]     \tikzstyle{terminal}=[rectangle, rounded corners, thick,draw=black!75, top color=green!5, bottom color=white,minimum size=5mm]     \tikzstyle{relation}=[rectangle,rounded corners,inner sep=2pt, thick,draw=black!75, top color=gray!20, bottom color=white,minimum size=5mm, font =\scriptsize]          \node [or,right=6.75cm of obstacle] (obstacle1)  {\begin{tabular}{l} Obstacle at \\ zebra crossing \end{tabular}}       child{ [sibling distance = 8cm]  node [and,anchor=north] (ped_on_zebra) {\begin{tabular}{l} Pedestrian \\ on zebra crossing \end{tabular}}         child{ node [terminal,anchor=north] (ped1) {Pedestrian} }       child{ node [relation,anchor=north] (rel_11) {\begin{tabular}{l} dist., \\ vel. \\ orient.\end{tabular}}  }       child{  node [terminal,anchor=north] (zebra_21) {\begin{tabular}{l} Zebra \\ crossing \end{tabular}}  }  }     ;     \path     (rel_11) edge node [left] {} (ped1)     (rel_11) edge node [right] {} (zebra_21);               \end{tikzpicture}


title: How big should margins be on a typographically (and visually) pleasing CV?

text: Given that neither   * Why are default LaTeX margins so big? nor   * LaTeX template for resume/curriculum vitae explicitly touches on this topic, I'd like to close a gap in my understanding:   * How big should **margins** be on a typographically (and visually) pleasing **CV** ? * * * I think the beauty of `*TeX` is that it takes care of the **good looks** , that is, _knows much better than myself (!)_ of how to make things simply look good. How to harness that _inbuilt knowledge of_ `*TeX` without making it ugly by _trying too hard_ (by manually interfering / customizing) ? With regard to **CV templates** , so far I came across hardly any which I find to be both truly beautiful _and_ **clear** and **simple** ( **unpretentious** but **elegant** ) at the same time, with but a few exceptions. Plz feel free to reference outstanding CV examples in a comment below! :) Note that I'm _not_ looking for sth fancy/sparkly/don't-know-what-hit-you, but rather for sth with a TeX-like _"understatement"_ ...


title: Using more \newcommand's into a single \newenvironment and \newenvironment instances counting

text: I am trying to write a class (it is my first class) in LaTeX to manage some teams in a tournament, but I am incurring some problems related to `\newenvironment` and `\newcommand`. For instance, I wish to have some "global" variables that can be displayed at any point, and some "local" variables that can be viewed only within a certain environment. The first problem I have is that I don't know how to pass the number of arguments to the `\newenvironment` when multiple `\newcommand` are defined into it. I have tried to Google, but I haven't found any answer. There are also some other problems that I think I will incur into later on. For instance, every time I instantiate such a new environment, I wish a counter that increases with the instances(perhaps I can do it easily with a `\newcounter`, but now I get stuck in the aforementioned point). Finally, it would be great if I can pass a color as an argument to the `\newenvironment` that I can use in a `\colorbox{}` command to display nice colors for each team. But those are problem that I may solve later on. Now, to be more clear, here is an attempt code that I wrote and that I cannot make it work:               % Copied from internet     \let\@CUP\relax     \def\CUP#1{\def\@CUP{Tournament #1}}     %               \newenvironment{team}[3]{         \@CUP         \newcommand{\playerone}[1]{This is the first player: #1}         \newcommand{\playertwo}[1]{This is the second player: #1}         \newcommand{\playerthree}[1]{This is the third player: #1}     }{}                    % Main document          …     \begin{document}          CUP{Champions}          \begin{team}             \playerone{John} \\             \playertwo{Carl} \\             \playerthree{Smith}     \end{team}          \begin{team}             \playerone{Scott} \\             \playertwo{Luke} \\             \playerthree{Danny}     \end{team}          % Some counter goes somewhere.          \end{document}


title: Using calc: Draw tangent lines to an ellipse path by tikz

text: I wonder if one can draw tangent lines out of a point to a path of an ellipse using tikz. Actually for the case of circle paths this can be accomplished easily as given in the tikz-pgf manual, but for other paths it wouldn't be an easy task. I have tried to solve this problem with the help of some threads, but my solution, unfortunately, relies on some mathematical background. I wonder if I could solve the same problem with _pure tikz_. Here is my solution:               \documentclass{standalone}     \usepackage{tikz,pgfplots}     \usetikzlibrary{calc,intersections,arrows}     \usepackage{times}     \begin{document}          \begin{tikzpicture}[scale=1,>=latex',scale=1.5,outer sep=0,inner sep=0,line width=0.7pt]          \def\a{2} \def\b{1}    % radii of Ellipse     \def\cx{0} \def\cy{0}  % determines center of Ellipse     \def\xp{0} \def\yp{-5} % coordinates of point P          \coordinate (P) at (\xp,\yp);     \coordinate (A) at (0,\b);   % up     \coordinate (B) at (0,-\b);  % down     \coordinate (C) at (\a,0);   % right          \draw[name path=ellipse,fill=gray!30,opacity=0.5](\cx,\cy)circle[x radius=\a,y radius=\b];          \path[name path=linePC] (P)--(C);     \path[name path=linePC] (P)--(C);          \path [name intersections={of = ellipse and linePC}];     \coordinate (E) at (intersection-2);     \coordinate (F) at (intersection of A--C and B--E);     \path let \p1=(F) in node (G) at (-1.2*\a,\y1){};          \path[name path=lineFG] (F)--(G);     \path [name intersections={of = ellipse and lineFG}];     \coordinate (X) at (intersection-1);     \coordinate (Y) at (intersection-2);     \draw (X)--(P)--(Y);                    %%%%%%%%%%%%%%%%%%%%%% Second Ellipse%%%%%%%%%%%%%%     \def\a{1} \def\b{0.5}  % radii of Ellipse     \def\cx{0} \def\cy{0}  % determines center of Ellipse     \def\xp{0} \def\yp{-5} % coordinates of point P          \coordinate (P) at (\xp,\yp);     \coordinate (A) at (0,\b);   % up     \coordinate (B) at (0,-\b);  % down     \coordinate (C) at (\a,0);   % right          \draw[name path=ellipse,fill=white](\cx,\cy)circle[x radius=\a,y radius=\b];          \path[name path=linePC] (P)--(C);     \path[name path=linePC] (P)--(C);          \path [name intersections={of = ellipse and linePC}];     \coordinate (E) at (intersection-2);     \coordinate (F) at (intersection of A--C and B--E);     \path let \p1=(F) in node (G) at (-1.2*\a,\y1){};          \path[name path=lineFG] (F)--(G);     \path [name intersections={of = ellipse and lineFG}];     \coordinate (X) at (intersection-1);     \coordinate (Y) at (intersection-2);     \draw (X)--(P) (P)--(Y);          \draw [->,thin](0,-5.5)--(0,1.5) node[above]{$z$};     \draw [<-,shorten <=0.2pt,thin](P)--+(0.4,-0.1) node[right]{Gap};          \draw [->,thin](0,-2.2) arc (90:65.4:2.5);          \node [fill=white] at (0.5,-2.5){$\theta_2$};     \draw [->,thin](0,-3.5) arc (90:79:1.6);          \node  at (0.13,-3.7){$\theta_1$};          \end{tikzpicture}          \end{document}      I appreciate your help and thank you in advance.


title: How do I insert double blank pages

text: I can insert one blank page successfully with               \afterpage{\null\newpage}      But I need two?


title: How to use { and } as delimiter instead of active character in this example

text: How to use { and } as delimiter instead of active caractere in this example ? I'd like [360] [90] [7,2] as **output of foreach command** instead of this. I need a string `foreach` compatible, splited on `;` because arguments contain comma decimal separators. ![enter image description here](http://i.stack.imgur.com/CMs3q.png)               \documentclass[french]{article}     \usepackage[utf8]{inputenc}     \usepackage[T1]{fontenc}          \usepackage{tikz,xstring}          \begin{document}          \StrSubstitute{360;90;7,2}{;}{\},\{}[\ListeA]     \xdef\ListeA{\{\ListeA\}}          \ListeA          \foreach \x in \ListeA {[\x] }          \end{document}


title: Adding arrows to a Gantt chart?

text: (To-the-point question at the end of the post) I am using the following snippet to draw Gantt diagrams, taken from this source:               % GanttHeader setups some parameters for the rest of the diagram     % #1 Width of the diagram     % #2 Width of the space reserved for task numbers     % #3 Width of the space reserved for task names     % #4 Number of months in the diagram     % In addition to these parameters, the layout of the diagram is influenced     % by keys defined below, such as y, which changes the vertical scale     \def\GanttHeader#1#2#3#4{%      \pgfmathparse{(#1-#2-#3)/#4}      \tikzset{y=7mm, task number/.style={left, font=\bfseries},          task description/.style={text width=#3,  right, draw=none,                font=\sffamily, xshift=#2,                minimum height=2em},          gantt bar/.style={draw=black, fill=blue!30},          help lines/.style={draw=black!30, dashed},          x=\pgfmathresult pt          }       \def\totalmonths{#4}       \node (Header) [task description] at (0,0) {\textbf{\large Tasks}};       \begin{scope}[shift=($(Header.south east)$)]         \foreach \x in {1,...,#4}           \node[above] at (\x,0) {\footnotesize\x};      \end{scope}     }          % This macro adds a task to the diagram     % #1 Number of the task     % #2 Task's name     % #3 Starting date of the task (month's number, can be non-integer)     % #4 Task's duration in months (can be non-integer)     \def\Task#1#2#3#4{%     \node[task number] at ($(Header.west) + (0, -#1)$) {#1};     \node[task description] at (0,-#1) {#2};     \begin{scope}[shift=($(Header.south east)$)]       \draw (0,-#1) rectangle +(\totalmonths, 1);       \foreach \x in {1,...,\totalmonths}         \draw[help lines] (\x,-#1) -- +(0,1);       \filldraw[gantt bar] ($(#3, -#1+0.2)$) rectangle +(#4,0.6);     \end{scope}     }      And the result is excellent, I would like to stick with this method rather than using pgfgantt or other packages with which I haven't had it so easy to create a Gantt diagram, here's an exaple of a generated diagram with that snippet in the preamble:               \begin{figure}     \begin{tikzpicture}       \GanttHeader{textheight}{2ex}{7cm}{7}       \Task{1}{First task}{0.5}{2.5}       \Task{2}{Second task}{1.5}{2}       \Task{3}{Another one}{3}{1}       \Task{4}{Another one}{4}{1}       \Task{5}{Yet another one}{5}{2}     \end{tikzpicture}     \caption{My figure's caption.}     \label{fig:gantt}     \end{figure}      The only thing I need is to add an arrow that shows predecessors for some tasks. Let's say an arrow going from the end of task 1, to the beginning of task 4. I have tried to set identifiers for the nodes defined in the `\Task` definition but I am quite a noob with Tikz. Sample Gantt from the previously cited source : ![enter image description here](http://i.stack.imgur.com/6XDdI.jpg) How can I add arrows from the end of one rectangle to the start of another? Preferably stair-like arrows (only horizontal and vertical lines). Otherwise, a way to declare `\node`s inside the Task definition in the desired places would help a lot! Fully working example including needed packages:               \documentclass[10pt,a4paper]{article}     \usepackage[latin1]{inputenc}     \usepackage{amsmath}     \usepackage{amsfonts}     \usepackage{amssymb}          \usepackage{geometry}     \usepackage{tikz}     \usetikzlibrary{calc}     \usepackage{graphicx}          % GanttHeader setups some parameters for the rest of the diagram     % #1 Width of the diagram     % #2 Width of the space reserved for task numbers     % #3 Width of the space reserved for task names     % #4 Number of months in the diagram     % In addition to these parameters, the layout of the diagram is influenced     % by keys defined below, such as y, which changes the vertical scale     \def\GanttHeader#1#2#3#4{%      \pgfmathparse{(#1-#2-#3)/#4}      \tikzset{y=7mm, task number/.style={left, font=\bfseries},          task description/.style={text width=#3,  right, draw=none,                font=\sffamily, xshift=#2,                minimum height=2em},          gantt bar/.style={draw=black, fill=blue!30},          help lines/.style={draw=black!30, dashed},          x=\pgfmathresult pt          }       \def\totalmonths{#4}       \node (Header) [task description] at (0,0) {\textbf{\large Tasks}};       \begin{scope}[shift=($(Header.south east)$)]         \foreach \x in {1,...,#4}           \node[above] at (\x,0) {\footnotesize\x};      \end{scope}     }          % This macro adds a task to the diagram     % #1 Number of the task     % #2 Task's name     % #3 Starting date of the task (month's number, can be non-integer)     % #4 Task's duration in months (can be non-integer)     \def\Task#1#2#3#4{%     \node[task number] at ($(Header.west) + (0, -#1)$) {#1};     \node[task description] at (0,-#1) {#2};     \begin{scope}[shift=($(Header.south east)$)]       \draw (0,-#1) rectangle +(\totalmonths, 1);       \foreach \x in {1,...,\totalmonths}         \draw[help lines] (\x,-#1) -- +(0,1);       \filldraw[gantt bar] ($(#3, -#1+0.2)$) rectangle +(#4,0.6);     \end{scope}     }          \begin{document}         \begin{figure}         \begin{tikzpicture}           \GanttHeader{\textwidth}{2ex}{4cm}{7}           \Task{1}{First task}{0.5}{2.5}           \Task{2}{Second task}{1.5}{2}           \Task{3}{Another one}{3}{1}           \Task{4}{Another one}{4}{1}           \Task{5}{Yet another one}{5}{2}         \end{tikzpicture}         \caption{My figure's caption.}         \label{fig:gantt}         \end{figure}     \end{document}


title: Compile error "Missing \endcsname inserted." with code and tcolorbox

text: I get this error when trying to compile into pdf my document. It is important to know that my project did compile a month ago without errors: I opened it today and it fails without being modified at all. I include a MWE.               \documentclass[a4paper, oneside, 10pt]{book}     \usepackage[english]{babel}     \usepackage[pdftex]{graphicx}     \usepackage{eso-pic}     \usepackage{listings}     \usepackage{xcolor}     \usepackage[utf8]{inputenc}     \usepackage{listings}     \usepackage[breakable,listings]{tcolorbox}     \usepackage{setspace}     \usepackage{booktabs}     \usepackage{indentfirst}     \usepackage{epigraph}     \usepackage{hyperref}     \usepackage[toc]{glossaries}     \usepackage{fancyhdr}     \usepackage{varioref}          \definecolor{base03}{HTML}{002B36}     \definecolor{base02}{HTML}{073642}     \definecolor{base01}{HTML}{586E75}     \definecolor{base00}{HTML}{657B83}     \definecolor{base0}{HTML}{839496}     \definecolor{base1}{HTML}{93A1A1}     \definecolor{base2}{HTML}{EEE8D5}     \definecolor{base3}{HTML}{FDF6E3}     \definecolor{yellow}{HTML}{B58900}     \definecolor{orange}{HTML}{CB4B16}     \definecolor{red}{HTML}{DC322F}     \definecolor{magenta}{HTML}{D33682}     \definecolor{violet}{HTML}{6C71C4}     \definecolor{blue}{HTML}{268BD2}     \definecolor{cyan}{HTML}{2AA198}     \definecolor{green}{HTML}{859900}               \lstdefinelanguage{JavaScript}{       keywords={         typeof,new,true,false,catch,function,return,null,catch,switch,var,if,in,         while,do,else,case,break, try},       ndkeywords={class,export,boolean,throw,implements,import,this},       sensitive=false,       comment=[l]{//},       morecomment=[s]{/*}{*/},       morestring=[b]',       morestring=[b]"     }          \newtcblisting[auto counter,list inside=codeList,number within=section]{codeBox}[1]{        breakable,        bottomrule at break=0pt,        toprule at break=0pt,        title=Code~\thetcbcounter: #1,        colback=base2,        colframe=base02,        listing only,        listing options={          language=JavaScript,          commentstyle=\color{base0},          keywordstyle=\color{yellow},          stringstyle=\color{blue},          basicstyle=\ttfamily\footnotesize\color{base01},          identifierstyle=\color{base02},          ndkeywordstyle=\color{red}\bfseries,          breaklines=true,          breakautoindent=true,          breakindent=30pt,          escapeinside={~}{~},          showstringspaces=false,          captionpos=b        },        list entry=\thetcbcounter~~#1,        before=\bigskip\noindent,        fontupper=\singlespacing\vskip -1.5em      }          \begin{document}          \begin{codeBox}     code here     the end command will produce the error when compiling     \end{codeBox}          \end{document}      When compiling, I get:               ! Missing \endcsname inserted.     <to be read again>                    \tcb@lsttp@tcolorbox     l.85 \end{codeBox}


title: scaling multi column groupplot while maintaining font size and node placement

text: This is a follow-up to two previous questions:   1: font size scaling and node placement issues using pgfplots and tikzscale   2: Scaling a multi-column TikZ/pgfplots groupplot to page width I would like to scale a multi-column groupplot to a certain width (usually `\textwidth `) while maintaining font size and node placement. From question 1 I got that, when using `tikzscale`, one should not define `hight` and/or `width` for the `axis` environment in order to maintain font sizes and node placement. The answer to question 2 is, that I should use `tikzscale` to scale `groupplots` to a desired overall width. But if one does not define `hight` and `width`, then the combination of `groupplot` and `tikzscale` will produce an error: > ! Package pgfplots Error: Error: Plot height `-77.46211pt' is too small. > This c annot be implemented while maintaining constant size for labels. > Sorry, label s izes are only approximate. You will need to adjust your > height.. The plot will not be scaled correctly.   The short version of my question would be, "How can I scale a multi-column groupplot to a certain width while still maintaining font size and node placement?''   The following MWE illustrates the issue.               \documentclass[10pt,crop,varwidth=250pt]{standalone}     \usepackage[english]{babel}     \usepackage{pgfplots}     \usepgfplotslibrary{groupplots}     \usepackage{tikzscale}     \pgfplotsset{compat=1.10}     \usepackage{filecontents}     \begin{document}     \begin{filecontents}{A.tikz}     \begin{tikzpicture}       \begin{groupplot}[             group style={             group size =2 by 1,             horizontal sep = 1cm             },       width=125pt,       height=125pt,       xmin=-1,xmax=1,ymin=-1,ymax=1,       xlabel=xlabel,       ]       \nextgroupplot[       ylabel=ylabel,       ]       \addplot coordinates{  (-0.9,-0.9)  (0.9,0.9)  };       \node[anchor=west] at (axis cs:-1,0) {01};       \coordinate (a) at (axis cs:-1,0);       \nextgroupplot       \addplot coordinates{  (-0.9,-0.9)  (0.9,0.9)  };         \end{groupplot}       \node[anchor=west,red] at (a) {02};     \end{tikzpicture}     \end{filecontents}     \begin{filecontents}{B.tikz}     \begin{tikzpicture}[transform shape]       \begin{groupplot}[             group style={             group size =2 by 1,             horizontal sep = 1cm             },     %   width=125pt,               %% this is now omitted     %   height=125pt,              %% this is now omitted       xmin=-1,xmax=1,ymin=-1,ymax=1,       xlabel=xlabel,       ]       \nextgroupplot[       ylabel=ylabel,       ]       \addplot coordinates{  (-0.9,-0.9)  (0.9,0.9)  };       \node[anchor=west] at (axis cs:-1,0) {01};       \coordinate (a) at (axis cs:-1,0);       \nextgroupplot         \addplot coordinates{  (-0.9,-0.9)  (0.9,0.9)  };       \end{groupplot}       \node[anchor=west,red] at (a) {02};     \end{tikzpicture}     \end{filecontents}          \input{A.tikz}     Manually scaling height and width of the plots requires a lot of tries until an ``acceptable'' result is reached. At least the font size and node placement are correct.     \includegraphics[width=250pt]{A.tikz}     Width and height are defined and tikzscale is used. The plots scale nicely to the desired width, but font size and node placement problems occur.     \input{B.tikz}     Without defined height and width and without tikzscale, the plots are too large to fit the desired textwidth. Font size and node placement work fine.     \includegraphics[width=250pt]{B.tikz}     No definition of width and height, but using tikzscale will produce an error. The plot is not scaled correctly but font size and node placement look fine.     \end{document}


title: punctuation from times

text: i'm using pdflatex and my math font is palatino. i want to change the punctutation into times because apostrophe is so similar derivation symbol. i used the command below but it changed all math into times. what command should i use?               \DeclareSymbolFont{letters}{T1}{ptm}{m}{n}     \SetSymbolFont{letters}{bold}{T1}{ptm}{bx}{n}     \DeclareMathSymbol{;}{\mathpunct}{letters}{59}     \DeclareMathSymbol{,}{\mathpunct}{letters}{44}}      an axample               \documentclass[a4paper]{article}     \usepackage[english]{babel}     \usepackage[utf8]{inputenc}     \usepackage{amsmath}     \usepackage{graphicx}     \usepackage{mathpazo}                 \begin{document}     $x'$'     \end{document}      second should come from times...


title: Problem, beamer, itemize

text: I'm doing a presentation with beamer documentclass. When I use               \documentclass[c,10pt]{beamer}     \usepackage[cp1250]{inputenc}     \usepackage[slovak]{babel}     \usepackage{pgfpages}     \usepackage{helvet}                    \usepackage{amsmath, amssymb}          \usepackage{multicol}                    \usepackage{graphicx, fancybox}        \usepackage{psfrag}                     \usepackage{fancyvrb}                  \usepackage{bbding}      \begin{document}     \begin{frame}     \begin{itemize}       \item Something1       \item Something2     \end{frame}     \end{itemize}     \end{document}      I receive a blank 2 slides. Where could be the problem.


title: Caption placement for new float in tufte-book class

text: I am using the `tufte-book` document class and I am trying to create a new float environment for example boxes that will include captions in the right margin similar to table/figure captions. However, when I create the new float environment, the caption appears above the float on the left. MWE included below:               \documentclass{tufte-book}     \usepackage{newfloat}     \usepackage{framed, color}     \usepackage{lipsum}          \DeclareFloatingEnvironment[name=Example]{example}          \begin{document}          \begin{example}     \caption{Currently, this caption is left justified above the float, when I would like it to be in the right margin similar to the table caption below.}     \definecolor{shadecolor}{rgb}{1,0.8,0.3}     \begin{shaded}     \lipsum[2]     \end{shaded}     \end{example}          \begin{table}     \caption{This is how I want the new float environment caption to behave.}     \centering     \begin{tabular}{llr}     Column 1 & Column 2 & Column 3 \\     Value A1 & Value A2 & Value A3 \\     \end{tabular}     \end{table}          \end{document}


title: change only display of \thesubsection not the actual value

text: MWE:               \documentclass{memoir}     \usepackage[english]{babel}     \usepackage{varioref}     \usepackage{cleveref}          \renewcommand*{\thesubsection}{\Alph{subsection}.}     \setsecnumdepth{subsection}          \begin{document}     \chapter{A Chapter}     \section{A Section}     \subsection{A subsection}     \label{sec:subsection}     \appendix     \chapter{An appendix}     We refer to  \vref{sec:subsection}.     \end{document}      Output: ![enter image description here](http://i.stack.imgur.com/7Lr2m.png) The problem is that I would like to have Section 1.1.A here but I need to change the subsection counter to display the subsection heading the way I want. What's the workaround here?


title: Drawing a particular part of flowchart in tikz?

text: This might be simple, but looks like a daunting task to me. The following is a portion of my flowchart roughly drawn in google drawing. The bubbles (actually dots) indicate that there is a continuation of frames. ![enter image description here](http://i.stack.imgur.com/F1SiJ.png) How do I draw this in tikz? The choice of blue color for the block shapes was arbitrary.


title: Divide algorithm in two parts without incrementation of version

text: This is my code:               \documentclass{article}     \usepackage[paperheight=6\baselineskip]{geometry}% just for the example     \usepackage{algorithm}     \usepackage{algcompatible}          \begin{document}          \begin{algorithm}[H]     \caption{My algo}     \begin{algorithmic}[1]     \STATE instruction 1     \STATE instruction 2     \algstore{testcont}      \end{algorithmic}     \end{algorithm}          \begin{algorithm}[H]     \caption{My algo - Part 2}     \begin{algorithmic}[1]     \algrestore{testcont}      \STATE instruction 3     \STATE instruction 4     \end{algorithmic}      \end{algorithm}     \end{document}      It diplay:               Algorithm1 My algo and Algorithm2 My algo - Part 2      Please, i ask how can i have:                Algorithm1 My algo and Algorithm1 My algo - Part 2      without incrementation ? Thank you


title: Bold Times New Roman

text: I'm using Times New Roman in my thesis. But bold mode doesn't work. Here is code:               \documentclass[a4paper,14pt]{extarticle}[2013/05/05]     \renewcommand{\rmdefault}{ftm}     \begin{document}         \textbf{SOME TEXT}     \end{document}      How I can use bold style?


title: Arrowed line on axis via coordinates: Dimension too Large - Error

text: I am trying to draw a line on an axis with an arrow halfway along the line. I have formulated the code below, however when I compile the code I get "Dimension too large \end{tikzpicture}}" error.               \pgfplotsset{width=1\linewidth,height=7cm,compat=1.8}          \begin{tikzpicture}     \begin{axis}[xmin=-0.5, xmax=14.5, ymin=-4, ymax=4]          \addplot[postaction={decorate,decoration={markings,mark=at position 0.5 with {\arrow[black,line width=1.0pt]{>}}}}] coordinates {(0,-2)(2,0)};           \end{axis}     \end{tikzpicture}}      I am pretty sure that the problem is this line:               \addplot[postaction={decorate,decoration={markings,mark=at position 0.5 with {\arrow[black,line width=1.0pt]{>}}}}] coordinates {(0,-2)(2,0)};       Have you got any ideas for rectifing this or alternatives to draw such a line. Thanks


title: testing parameter values with \ifx

text: Let's say that I would like to redefine `\@seccntformat` so that whenever the section counter is printed, it is prefixed by `Section`, but other counters should no be changed. Here is my failed attempt:               \documentclass{article}          \makeatletter     \def\mytest{section}%     \def\myarg#1{#1}     \def\@seccntformat#1{%       \ifx\myarg#1\mytest{Section}\fi%       \csname the#1\endcsname\quad}     \makeatother          \begin{document}     \section{Foo}  % Should be printed as "Section 1  Foo"     \subsection{Bar}  % Should be printed as "1.1  Bar"     \end{document}      For some reason I can't manage to get `\myarg#1` and `\mytest` to compare equal when `#1` is `section`. Now this is my first time using `\ifx`, so I hope I'm missing something trivial. I would appreciate some hints about how to debug such a macro. Is there a way to see each intermediate expansion step and observe what arguments `\ifx` is actually receiving?


title: Mass replace custom macros in a LaTeX document?

text: I'm typesetting a document and to make it more editable I'd like to find a nice way to write the document making custom commands left and right for my ease, then go and replace them with their non-custom definitions. For instance, I have the following defined in a separate preamble file:               \newcommand{\mb}[1]{\mathbb{#1}}       that simply makes it easier when I'm using blackboard bold characters a bunch throughout the document. However, whoever might be editing the document later might have difficulty parsing the code (he's old, etc.) with my custom commands floating around everywhere. Is there a nice and easy way to go through my document and replace every               \mb{A}      with               \mathbb{A}      so I don't have to sit through hundreds of "replace" dialogues? This would also help if I want to change the name of a command I've used in previous files. Edit to add MWE:               \documentclass[12pt][article]     \usepackage{amssymb}     \newcommand{\mb}[1]{\mathbb{#1}}      \begin{document}     \mb{R}     \end{document}      to               \documentclass[12pt][article]     \usepackage{amssymb}     \newcommand{\mb}[1]{\mathbb{#1}}      \begin{document}     \mathbb{R}     \end{document}


title: biblatex biber to \bibitem

text: I am a LaTeX really entusiastic newbie. Thus I am writing all my reports and articles using this wonderful tool. Unfortunately the editors of scientific review do not all have the same entusiasm concerning LaTeX. I plan to submit my future paper in the ICES Journal of Science which (fortunately or not) has a kind of LaTeX template available online (http://www.oxfordjournals.org/our_journals/icesjms/ices.zip) and guidelines available here (http://www.oxfordjournals.org/for_authors/latex.html). My main problem is concerning bibliography. In all my writing I use `biblatex` with in the preamble:               \usepackage[style=authoryear,     firstinits=true,     uniquename=false,     uniquelist=false,     maxcitenames=2,     maxbibnames=7,     backend=biber]{biblatex}.      In the text I call citation using `\autocite`, `\textcite`, `\citeauthor` and `\citeyear`. As requested by the journal I tried to convert my bibliography into a `\bibitem` list. I went to check the `.bbl` file as advised online but the structure seemed really complicated and nowhere `\bibitem` was mentionned. I found online some method that I managed to make work in my case by creating a dummy `.tex` file:               \documentclass{article}     \begin{document}     \nocite{*}     sdryfj     \bibliography{BIB.testbib.bib}     \bibliographystyle{plain}     \cite{NumR}     \end{document}      I run some compilation and got a `.bbl` file with `\bibitem`s list. I thought I was seeing the end of it and paste this list in `thebibliography` environment at the end of my document. Unfortunately all my citations references (`\autocite` etc..) seems to not be compatible with this different way of bibliography input. In addition, all the references are printed cited or not.... I was wondering if there is a way to reach the same results directly from `biber biblatex` so I would not have to modify my document too much... Thank you for your help, Xochitl C. PS: I also tried to redefine commands like this but it did not work:               \renewcommand{\autocite}{\cite}          \renewcommand{\citeauthor}{\cite}          \renewcommand{\citeyear}{\cite}          \renewcommand{\textcite}{\cite}


title: How to install the xpatch package in MiKTeX?

text: This is a follow up question to \nameref only shows reference as a red rectangle, no name in it. In the answers to the question cited @Werner suggested to have the package `xpatch` installed so that `revtex4` can properly do cross-referencing. Thus, after a number of attempts (because instead of a file to save I was getting a listing of code) I was able to download `xpatch.ins` and `xpatch.dtx`, placed them in the working folder and ran `pdflatex xpatch.ins` from within WinEdt. Then I tried to compile the TeX document (`F9`) and got the error message               ! LaTeX Error: Two \documentclass or \documentstyle command.      Notice, I'm trying to compile @Werner's minimal working example given in the original question cited above. Now that I was unsuccessful in this compilation, I reverted to MiKTeX, trying to install `xpatch` from there. I started the MiKTeX package manager and it was soon populated with a list of packages. The package `xpatch` was in the list but was uninstallable. So, I tried to get it from the list of repositories which show up when going to Repository->Change Package Repository. None of these repositories, however, seems to contain `xpatch`. Also, none of these repositories is the one @Werner pointed to in the original question; namely, http://ctan.org/pkg/xpatch and I couldn't find a way to get to it through MiKTeX. So, the problem still stands -- how can I install `xpatch` so that `revtex4`'s cross-referencing starts working? EDIT: I'd like to add that before pressing `Ctrl`+`Z` in WinEdt after the unsuccessful compilation, the error seen is               1.55 \documentclass[full]{                               13doc}     ?     ! Emergency stop.


title: Using listings: "zebra effects" AND line numbers

text: I just made a code listing with a "zebra effect", just like here: Creating a zebra effect using listings But afterwards, the line numbers at the left side of the listing don't appear any more. This is some of the code that makes the numbers dissapear:               \documentclass[a4paper, 10pt]{article}     \usepackage[T1]{fontenc}     \usepackage{beramono}                                 % monospaced font with bold variant          \usepackage[usenames,dvipsnames]{xcolor}     \colorlet{keyword}  {blue!100!black!80}     \colorlet{comment}  {green!70!black!100}     \colorlet{STD}        {Yellow}          \usepackage{color}     \usepackage{xcolor}     \definecolor{dkgreen}{rgb}{0,0.6,0}     \definecolor{gray}{rgb}{0.5,0.5,0.5}     \definecolor{mauve}{rgb}{0.58,0,0.82}          \usepackage[top     =   2.5 cm,             bottom  =   2.5 cm,              left    =   2.5 cm,              right   =   2.5 cm]{geometry}          \usepackage{listings}          \newcommand\realnumberstyle[1]{}     \makeatletter     \newcommand{\zebra}[3]{%         {\realnumberstyle{#3}}%         \begingroup         \lst@basicstyle         \ifodd\value{lstnumber}%             \color{#1}%         \else             \color{#2}%         \fi             \rlap{\hspace*{\lst@numbersep }%             \color@block{\linewidth}{\ht\strutbox}{\dp\strutbox}%             }%         \endgroup     }     \makeatother               \lstset     {                                                           %         language            =   C,                      % the     language of the code         basicstyle          =   \ttfamily\footnotesize,     % the size of the fonts that are used for the code         numbers             =left  ,                    % where to put the line-numbers         numberstyle         =   \tiny\color{black},         % the style that is used for the line-numbers         stepnumber          =   1,                          % the step between two line-numbers. If it's 1, each line                                                                  % will be numbered         numbersep           =   25pt,                       % how far the line-numbers are from the code         backgroundcolor     =   \color{white},              % choose the background color. You must add \usepackage{color}         showspaces          =   false,                      % show spaces adding particular underscores         showstringspaces    =   false,                      % underline spaces within strings         showtabs            =   false,                      % show tabs within strings adding particular underscores         frame               =   single,                     % adds a frame around the code         rulecolor           =   \color{black},              % if not set, the frame-color may be changed on line-breaks within not-black text (e.g. comments (green here))         tabsize             =   4,                          % sets default tabsize to 4 spaces         captionpos          =   b,                          % sets the caption-position to bottom         breaklines          =   true,                       % sets automatic line breaking         breakatwhitespace   =   false,                      % sets if automatic breaks should only happen at whitespace         title               =   \lstname,                   % show the filename of files included with \lstinputlisting;                                                                 % also try caption instead of title         keywordstyle        =   [1]\color{keyword}                                     \bfseries,                  % keyword style         keywordstyle        =   [2]\color{STD}                             \bfseries,                  % keyword style         commentstyle        =   \color{comment},            % comment style         stringstyle         =   \color{mauve},              % string literal style         escapeinside        =   {\%*}{*)},                  % if you want to add LaTeX within your code         %morekeywords       =   [1]{*,          %                           bla,         %                           },                      % keywords to the set         %morekeywords       =   [2]{         %                           bla,         %                           },                      % keywords to the set         %morecomment            =   [l]//,                  % if you want to add comments to the set         deletekeywords      =   {...}                   % if you want to delete keywords from the given language     }                             \begin{document}          % version with number highlighting "zebra"-style     % this is already part of the first answer     \lstinputlisting[firstline = 0, lastline = 100,numberstyle=\zebra{gray!20}{lightgray!15}{}]{test.txt}          % version without: missing third brackets {}     \lstinputlisting[firstline = 0, lastline = 100,numberstyle=\zebra{gray!20}{lightgray!15}]{test.txt}               \end{document}


title: Pocket book size for novel (10.8 x 17.5 cm)

text: Since a time I only use LaTeX for my writing requirements, for maths, histories, scripts, but this time I want to send a novel to a service like bubok or lulu or whatever that prints books to have it on my hands. But it wasn't too easy at all, because I want to publish in a pocket book format (because of the book is about 50 pages, a short story) like I said in the topic (10.8 x 17.5 cm) and I spent few days looking for a configuration of the page size for `memoir` class, and my search is becoming a failure. So I decided to write here expecting some help for my madness idea.


title: LaTeX Errors: "\RequirePackage or \LoadClass in Options Section." AND "File 'article.cls' not found."

text: Would you be so kind to help me in resolving the following issue? I tried to convert the text using Latex 2 as it was requested by the publisher, but the document generation failed with the following error on the _second_ and _third_ pages of the output:   [NB: The output still contains the abstaract (page 1) from the original Microsoft Word document text and the photograph images from the original Microsoft Word document]. If you have any questions, please see the **image of the pages 2 and 3** which contains information about the error. Please advise what should I do in order to fix that problem!   Thank you very much in advance!!! * * * Error information - beginning * * *               This is pdfTeX, Version 3.1415926-1.40.10 (Web2C 2009) (format=latex 2010.6.15) 21 DEC 2010       12:34       entering extended mode       %&-line parsing enabled.       **"AAAAA et al.tex"       (./AAAAA et al.tex       LaTeX2e        Babel  and hyphenation patterns for english, usenglishmax, dumylang, noh       yphenation, german-x-2009-06-19, ngerman-x-2009-06-19, ancientgreek, ibycus, ar       abic, basque, bulgarian, catalan, pinyin, coptic, croatian, czech, danish, dutc       h, esperanto, estonian, farsi, finnish, french, galician, german, ngerman, mono       greek, greek, hungarian, icelandic, indonesian, interlingua, irish, italian, ku       rmanji, latin, latvian, lithuanian, mongolian, mongolian2a, bokmal, nynorsk, po       lish, portuguese, romanian, russian, sanskrit, serbian, slovak, slovenian, span       ish, swedish, turkish, ukenglish, ukrainian, uppersorbian, welsh, loaded.       (c:/texlive/2009/texmf/tex/latex/aries/elsarticle.cls       Document Class: elsarticle 2009/09/17, 1.20b: Elsevier Ltd       \@bls=\dimen102       ! LaTeX Error: \RequirePackage or \LoadClass in Options Section.       See the LaTeX manual or LaTeX Companion for explanation.       Type H  for immediate help.       ...       l.80 \LoadClass       {article}       The document class `elsarticle' is defective.       It attempts to load `times' in the options section, i.e.,       between \DeclareOption and \ProcessOptions.       ! LaTeX Error: File `article.cls' not found.       Type X to quit or  to proceed,       or enter new name. (Default extension: cls)       Enter file name:       ! Emergency stop.              l.81 \RequirePackage       {graphicx}^^M       *** (cannot \read from terminal in nonstop modes)       Here is how much of TeX's memory you used:       59 strings out of 493849       772 string characters out of 3152230       48936 words of memory out of 3000000       3427 multiletter control sequences out of 15000+200000       3640 words of font info for 14 fonts, out of 3000000 for 9000       The latex file       Click here to view linked References       714 hyphenation exceptions out of 8191       18i,0n,19p,114b,14s stack positions out of 5000i,500n,10000p,200000b,50000s       No pages of output.        * * * Error information - end


title: Not indent the first paragraph of a LaTeX document

text: In the standard LaTeX article class (and probably others as well), paragraph indentation follows standard American publishing norms of not indenting the first paragraph after a `\section{}` or `\subsection{}`. I've redefined `\maketitle` in a LaTeX document and put the actual title left- aligned as the last line, fairly close to the actual text (kind of like this)               Author     Date          Title              Lorem ipsum dolor sit amet, consectetur adipisicing elit,      sed do eiusmod tempor incididunt ut labore et dolore     magna aliqua. Ut enim ad minim veniam, quis nostrud      exercitation ullamco laboris nisi ut aliquip ex ea commodo     consequat.              Duis aute irure dolor in reprehenderit in voluptate velit      esse cillum dolore eu fugiat nulla pariatur. Excepteur sint      occaecat cupidatat non proident, sunt in culpa qui officia      deserunt mollit anim id est laborum.          Section title          Lorem ipsum dolor sit amet, consectetur adipisicing elit,      sed do eiusmod tempor incididunt ut labore et dolore     magna aliqua. Ut enim ad minim veniam, quis nostrud      exercitation ullamco laboris nisi ut aliquip ex ea commodo     consequat.              Duis aute irure dolor in reprehenderit in voluptate velit      esse cillum dolore eu fugiat nulla pariatur. Excepteur sint      occaecat cupidatat non proident, sunt in culpa qui officia      deserunt mollit anim id est laborum.      Since the title is left-aligned and so close to the text, I'd like the first paragraph of the document to not be indented, just like with the headings               ...     Title          Lorem ipsum dolor sit amet, consectetur adipisicing elit,      sed do eiusmod tempor incididunt ut labore et dolore     magna aliqua. Ut enim ad minim veniam, quis nostrud      exercitation ullamco laboris nisi ut aliquip ex ea commodo     consequat.              Duis aute irure dolor...     ...      I've attempted to use `\@afterindentfalse`, which is what the `\section` commands use, inside my renewed commands, but it doesn't work.               \makeatletter          \def\noindentation{\let\@afterindentfalse}          \newcommand{\mytitle}[1]{%         \vskip 2em         {\bf\sffamily\LARGE #1}         \noindentation}          \renewcommand{\@maketitle}{         \begin{flushleft}{                  % Author             \@author \par                   % Date             \@date \par                   % Title             \mytitle{\@title}              } \end{flushleft}     }      \makeatother      By default the first paragraph in the article class is indented, so this question is applicable whether or not I renew `\maketitle`. So, what's the best way to automatically not indent the first paragraph of the document?


title: How to get upright parentheses in the whole document?

text: My question is, basically, the same as the one in Upright parentheses in italic text: how do I force all parentheses in my document to be upright, without replacing them with some commands "by hand"? Unlike the linked question, my main concern are slanted environments (i.e., theorems). At the moment, I'm dealing with `elsarticle`, which uses `\itshape` which is not covered by the solutions on above link (and I don't see how I could modify them to do so), nor by the `embrac` package (explicitly stated in Section 9). MWE:               \documentclass{article}          \newtheorem{theorem}{Theorem}          \begin{document}          \begin{theorem}     I want parenthesis (around this text) to be upright.     \end{theorem}          \end{document}      I can, of course, write               I want parenthesis {\rm (}around this text{\rm )} to be upright.      or define some commands for the upright parentheses and use them. However, changing the parentheses in the LaTeX code can lead to errors (for example, missing some of them and introducing inconsistency) and puts a burden of focusing on that detail, instead of the text I'm writing, so I'd prefer some automated way (like the one shown for `\emph` in the linked document).


title: Error in loading font

text: I have MiKTeX 2.9 and TeXstudio 2.5.2 installed on a Windows 7 64bit OS. I have downloaded a latex template from http://www.tandfonline.com/action/authorSubmission?journalCode=tetn20&page=instructions. I was given the error               "Font U/bbold/m/n/12=nullfont not loadable: Metric (TFM) file not found \maketitle      "Font U/bbold/m/n/9=nullfont not loadable: Metric (TFM) file not found \maketitle      "Font U/bbold/m/n/6=nullfont not loadable: Metric (TFM) file not found \maketitle      "Font U/bbold/m/n/7=bbold7 at 7.0pt not loadable: Metric (TFM) file not found \maketitle      "Font U/bbold/m/n/5=bbold5 at 5.0pt not loadable: Metric (TFM) file not found \maketitle      "Font U/bbold/m/n/8=bbold8 at 8.0pt not loadable: Metric (TFM) file not found \maketitle      "Font U/bbold/m/n/8=nullfont not loadable: Metric (TFM) file not found \section{Introduction}      "Font U/bbold/m/n/5=nullfont not loadable: Metric (TFM) file not found \section{Introduction}      when trying to compile the file. How can I fix it?


title: Could TeX.SE put on a showcase of scientific posters?

text: Could the people of the TeX.SE put on a showcase of scientific posters made with (La)TeX? I have seen other showcases on here, this collection for example. However, with a large number of people using (La)Tex for scientific publications (which often end up as posters), I think it would be valuable for such a thing to exist.


I have a homework document using 2-column article document class as follows.               \documentclass[twocolumn]{article}     \usepackage[a4paper,margin=1cm]{geometry}     \usepackage{amsmath}     \begin{document}     \begin{enumerate}         \item The degree of (C) is 3.         \item The degree of (A) is 1.         \item         $         \begin{aligned}[t]             \begin{split}             -3x(x+1)&-2x(x-1) \\                             &+4(x^2-3x-1)                \end{split}                 &=              \begin{split}             -3x^2&-3x-2x^2+2x\\                      &+4x^2-12x-4                \end{split}\\                 &= -x^2-13x-4                \end{aligned}         $     \end{enumerate}     \end{document}      What I want to achieve are:   * the long equation is split in both LHS and RHS.   * the `=` is consistently aligned. The output I want to achieve roughly looks like the following "screenshot". ![enter image description here](http://i.stack.imgur.com/kiZal.png) The red lines represent the first two items and the green one represents the long equation. The black line represents the hypothetical column separator. How to construct a long equation that is split in LHS and RHS to occupy a narrow column?


title: latex table layout problem

text: Hi Im having some trouble aligning the text in the second column of a two column table. The first column the text aligns the way i want but the seconds columns text is not positioning properly.               \begin{table}[h]     \begin{center}     \begin{tabular}{ |m{7cm}|m{6cm}|}\hline     PHP & Hypertext Preprocessor \\[2ex] \hline     MySQL & Structured Query Language \\[2ex] \hline     HTML & Hypertext Preprocessor \\[2ex] \hline     JQUERY & JavaScript library \\[2ex] \hline     AJAX & Asynchronous JavaScript and XML \\[2ex] \hline     GUI & Graphical user interface \\[2ex] \hline     JavaScript & Hypertext Preprocessor \\[2ex] \hline     URL & Uniform resource locator \\[2ex] \hline     API & Application programming interface \\[2ex] \hline          \end{tabular}     \end{center}     \end{table}\newpage      ![Result](http://i.stack.imgur.com/xIVxS.png) any help would be appreciated


title: subfiles inside a subfile using relative paths

text: Is there a way to use subfiles, in a way that you can compile the middle chapters, let me explain by example.               main.tex (root folder)     --Chapter 1 (Chapter 1 folder)     ----Section 1.1 (Chapter 1 folder)          Capter 1 is subfile in main.tex     Section 1.1 is subfile in Chapter 1 docment      What I can do is that I can build and view every section, and the main.tex, but I cannot build Chapter on its own. The code:               %main.tex     \usepackage{subfiles}     \begin{document}     \subfile{chap1/chapter1}     ...     \end{document}          %chapter1.tex     \documentclass[../main.tex]{subfiles}     \begin{document}     \chapter{Introduction}     \subfile{chap1/purpose}     ...     \end{document}          %purpose.tex     \documentclass[../main.tex]{subfiles}     \begin{document}     \section{Purpose}     \end{document}      The trouble I am in stems from the relative paths I believe, if I change the subfile in the chapters to:               \subfile(../chap1/purpose)      I can build the chapter and view it. But then it won't work from the main.tex files. Any idea how to do it right ? Edit: If there is a method or command to get the absolute path, I would be able to solve it easily, is there such a thing ?


title: Change the reference style for subfloats: from 1a to 1(a)

text: How to change the reference style to subfloats (package `subfloat`) in a figure from `<number><letter>` to `<number>(<letter>)`.


title: "Countryball" comic with TikZ. How to shade a 3D object with different stripes on it?

text: _Countryball_ (if I'm not mistaken originally _Polandball_ ) is a web comic versing on crude political jokes, some of which I find hilarious. In some sense, the idea is analogous to the spherical cow simplification The protagonists are countries represented by figures tinged by the colors of the respective flag. These figures are spheres, ellipsoids or egg-like objects (excepting Israel, Singapore, Kazakhstan and –obviously– Nepal). Moreover there are some (perfectly questionable) "rules" like: >   1. Spheres cannot be perfect >   2. No limbs, no pupils … >   3. No lines between the different colors of a flag, etc. > Countryballs look like this. Long story short, I was wondering if it is possible to implement this with TikZ. So here is my first attempt. I based on the code of this question in order to make the eyes of this ball associated to a (hopefully unexisent) flag:               \documentclass{article}     \usepackage[a4paper,margin=2cm]{geometry}     \usepackage{tikz}     \usetikzlibrary{calc,decorations.pathmorphing,patterns}     \pgfdeclaredecoration{penciline}{initial}{         \state{initial}[width=+\pgfdecoratedinputsegmentremainingdistance,         auto corner on length=1mm,]{             \pgfpathcurveto%             {% From                 \pgfqpoint{\pgfdecoratedinputsegmentremainingdistance}                           {\pgfdecorationsegmentamplitude}             }             {%  Control 1             \pgfmathrand             \pgfpointadd{\pgfqpoint{\pgfdecoratedinputsegmentremainingdistance}{1pt}}                         {\pgfqpoint{-\pgfdecorationsegmentaspect                          \pgfdecoratedinputsegmentremainingdistance}%                                    {\pgfmathresult\pgfdecorationsegmentamplitude}                         }             }             {%TO              \pgfpointadd{\pgfpointdecoratedinputsegmentlast}{\pgfpoint{.3pt}{.4pt}}             }         }         \state{final}{}     }          \begin{document}               \begin{tikzpicture}[decoration=penciline, decorate]     %\draw (-2, 1.5) rectangle (2, -1.5);     \begin{scope}     \clip (-0.8, 0) ellipse (1 and 3);     %\clip ( 1, 0) ellipse (1 and 4);     \clip ( 0.5, 0) circle (1);     \fill[color=yellow!85!black] (-2,1.5)     rectangle (2,-1.5);     \end{scope}     \begin{scope}     \clip (1.8, 0) ellipse (1 and 3);     %\clip ( 1, 0) ellipse (1 and 4);     \clip ( 0.5, 0) circle (1);     \fill[color=red!75!black] (-2,1.5)     rectangle (2,-1.5);     \end{scope}         \draw[           decoration={random steps,segment length=.3cm,amplitude=.05cm},           decorate,           rounded corners=.13cm, ultra thick         ] (.5, 0) circle (.95);        % right eye         \draw[decorate,fill=white, thick] (0.85,.23) ellipse (.22 and .08);        % left eye         \draw[decorate,fill=white, thick] (0.02,.23) ellipse (.22 and .08);     \end{tikzpicture}          \end{document}      While it is not expected to obtain beautiful countryballs, my code is not satisfying at all. It produces this ![enter image description here](http://i.stack.imgur.com/Z5FCb.png) As you can see, the circle doesn't close. Question: Could somebody fix this circle and produce a more realistic ball? **3D Implementation** I first tried in 3D. The only thing I achieve is the "non-being" spherical. This is the code               \documentclass[tikz]{standalone}     \usetikzlibrary{decorations.pathmorphing}     \pgfmathsetseed{42}               \usepackage{tikz}     \usetikzlibrary{calc,fadings,decorations.pathreplacing}     \begin{document}     \begin{tikzpicture}     \filldraw[ball color=red,decoration={random steps,segment length=.7cm,amplitude=.1cm},decorate,rounded corners=.3cm,ultra thick] (0,0) circle (8.5);     \end{tikzpicture}     \end{document}      **Question:** How to independently color the hemispheres (either "vertically" or "horizontally"), or more generally, how to color stripes (usually 3) of different colors? ![enter image description here](http://i.stack.imgur.com/UTozA.png)


title: How to make the page number appear on the abbreviation list?

text: does anybody know how to make the first page of the abbreviation list have the page number? My abbrev. list is made of 3 pages and only the other two have the correct page numbering (roman). The first page is plain.               \documentclass[12pt, a4paper]{report}          \linespread{1.6}     \usepackage{natbib}     \usepackage{color}     \usepackage{geometry}          \geometry{includeheadfoot,       headheight=14pt,       left=4cm,       right=2cm,       top=2.5cm,       bottom=2.5cm}          \usepackage{amsmath}     \usepackage{textcomp}     \usepackage{marvosym}     \usepackage{fancyhdr}     \usepackage{setspace}     \usepackage[intoc]{nomencl}          \makenomenclature          \usepackage{makeidx}          \makeindex          \usepackage{hyperref}          \setcounter{secnumdepth}{5}     \setcounter{tocdepth}{5}          \hypersetup{         colorlinks,         citecolor=black,         filecolor=black,         linkcolor=black,         urlcolor=black}          \fancyhf{}     \fancyhead[C]{\thepage}     \pagestyle{fancy}          \fancypagestyle{plain}     \fancyhf{}      \fancyhead[C]{\thepage}          \renewcommand{\headrulewidth}{0pt}     \renewcommand{\nomname}{List of Abbreviations}          \begin{document}          \pagenumbering{gobble}     \urlstyle{same}     \title{} \author{Andrea Lagna} \date{}          \maketitle          \renewcommand{\abstractname}{}          \begin{abstract}          \end{abstract}          \chapter*{Acknowledgments}          \tableofcontents     \newpage          \cleardoublepage          \pagenumbering{roman}          \listoffigures      \addcontentsline{toc}{chapter}{List of Figures}     \thispagestyle{fancy}           \listoftables      \addcontentsline{toc}{chapter}{List of Tables}     \thispagestyle{fancy}           \printnomenclature      \thispagestyle{fancy}           \pagenumbering{arabic}          \chapter*{Introduction}\addcontentsline{toc}{chapter}{Introduction}      \thispagestyle{fancy}           \nomenclature{ILT}{I Like This}           \clearpage          \addcontentsline{toc}{chapter}{Bibliography}          \bibliographystyle{apsr}          \bibliography{bibliothesis}          \end{document}


title: How to pass a macro in externalized tikz?

text: I experience a problem when I use `tikzscale` package to compile figures externally. The minimal working environment is as follows. The main.tex:               \documentclass[\myopts]{IEEEtran}          \usepackage{lua-visual-debug}     \usepackage{tikzscale}     \usepackage{tikz}     \usetikzlibrary{arrows,backgrounds,calc,patterns}     \usetikzlibrary{er}     \usepackage{tikz-3dplot}          \usepackage{pgfplots}     \usepackage{currfile}     \usepackage{lmodern}          \usetikzlibrary{shapes}     \usepgflibrary{shapes.geometric}          \usetikzlibrary{external}     \tikzexternalize[prefix=figure-build/]          % Use the package ifpdf to share one test document between pdflatex and latex     \usepackage{ifpdf}          \ifpdf     \else         \tikzset{external/system call={latex \tikzexternalcheckshellescape -halt-on-error -interaction=batchmode -jobname "\image" "\texsource"; dvips -E -o "\image".eps "\image".dvi; ps2pdf "\image".eps "\image".pdf;}}     \fi          \begin{document}          \begin{figure*}[bth]         \includegraphics[height=3.25in,width=5.25in]{FileDef-Fig}         \caption{\small {text}}     \end{figure*}          \end{document}      The content of the file FileDef-Fig.tikz looks like:               \begin{tikzpicture}     ........     \end{tikzpicture}      I compile this `main.tex` file by               pdflatex --shell-escape "\def\myopts{"conference,10pt"}\input{main}"      However, this command complains that the macro `\myopts` can not be found in the log file.               ! Undefined control sequence.     <argument> \myopts      This error message is reported in the following command when the figure is compiled by an automatically generated command:               pdflatex -shell-escape \              -halt-on-error \              -interaction=batchmode \              -jobname "figure-build/main-figure0" \       "\def\tikzexternalrealjob{main} \input{main}"      My question is how to add a `\def\myopts{...}` in the above `pdflatex` command to make it looks like:               pdflatex -shell-escape \              -halt-on-error \              -interaction=batchmode \              -jobname "figure-build/main-figure0" \       "\def\myopts{...} \def\tikzexternalrealjob{main} \input{main}".


title: How to remove the line "Received; acceped" from title?

text: I am using the `aastex.lyx` template to write an article and I cannot find a way to remove the "Received; -------- Accepted" line coming after the title. Does anyone know how to remove it ?


title: Error with nested environment and forced linebreak inside tabbing

text: I reduced the offending code to this:               \documentclass[12pt,a4paper,notitlepage]{report}     \usepackage[utf8]{inputenc}     \usepackage[english]{babel}     \begin{document}          \newenvironment{foo}{}{}     \begin{tabbing}     \begin{foo}     bar\\     \end{foo}     \end{tabbing}          \end{document}      I am getting `! Extra }, or forgotten \endgroup.`, in line 9: `bar\\`. Is there something special about the tabbing environment that I'm overlooking?


title: parcolumns: no footnotes are produced

text: The footnote number appears in the printed text but I cannot see any footnote when using the `parcolumns` environment:               \documentclass{article}     \usepackage{parcolumns}     \usepackage[paperheight=9cm]{geometry}     \begin{document}     \begin{parcolumns}{2}     \colchunk[1]{     Foo     }     \colchunk[2]{     Bar\footnote{Baz}     }     \end{parcolumns}     \end{document}      ![output](http://i.stack.imgur.com/G33L4.png) Is there any workaround to solve this problem?


title: Size commands do not work in mathmode

text: MWE:               \documentclass{article}     \begin{document}     $\wedge{\small\wedge}{\tiny\wedge}$     \end{document}      All the `\wedge`s have the same size... ![enter image description here](http://i.stack.imgur.com/QPxIs.png)


title: Is it safe to use the TeX Live Update utility while compiling documents?

text: I just started the TeX Live Update utility and saw that quite some packages were updated on the server. I proceeded to update all outdated packages, but this takes a while. Is it safe (in terms of data-loss and file corruption) to keep working on my LaTeX documents and keep compiling? Or should I stop and wait for the update to complete? I'm on OS X 10.8.5 with the TeXLive-2013 distribution.


title: inline knitr code that isn't a simple number

text: It is easy enough to do something like `\Sexpr{1 + 1}`. But how can I do `\Sexpr{mymatrix}` with `mymatrix` being a matrix object in R workspace? More generally, how can I print object that is more complex than just a number using inline code chunk?


title: Speeding up latex/lua/tikz

text: I have a rather large LaTeX document in that it generates a lot of LaTeX code using lua (small `.tex` file on disk but large amount of generated LaTeX code). It is very slow to compile and takes about 1 hour to do so. Almost all of the TeX code is generated from a few lua functions. At the moment I bypass most of the code until it is needed but I'm curious if there is some way to speed up the compilation process when rendering the full blown document. Is there any way to profile the code and possibly speed it up? I'm not sure where the bottleneck is but essentially the (pseudo)code looks like this:               latex:        for i = 1, n {           \myluafunction{\arg{i}}        }          lua:        function myluafunction(arg) { ... tex.print(result) }      where `myluafunction` parses arg using lpeg then generates a lot of TikZ code using `tex.print`. The lua code is quite involved. While I haven't tried, I believe one can't use compiled lua code in `lualatex`, and even if so, I'm not sure how much of a difference it would make? I imagine that the `tex.print`, even of a large amount of code, would be relatively fast? Obviously there is a lot of geometry being rendered using TikZ. `myluafunction` essentially prints a bunch of LaTeX TikZ commands. Possibly TikZ is the issue here? Any ideas what generally is the bottleneck and how it could potentially be improved? (would a virtual drive work for the `.aux` files, etc...)


title: footmisc has to be loaded after setspace - Why?

text: If `footmisc` package is loaded before the `setspace` package, then it doesn't work. Though I don't need a work around, since this is easy to incorporate in a document, I just thought that I should share this. If anyone knows the reason behind this, it will be interesting to know (unless there is a mistake in MWE). **MWE**               \documentclass{report}     \usepackage[hmargin={2cm,7cm}]{geometry}     \setlength{\marginparwidth}{5cm}     %     \usepackage{setspace}     %     \usepackage[side]{footmisc}     %     \begin{document}        Tedius line of text for the main body.\footnote{This is a respectable line   of drab footnote.}     \end{document}


title: How to find why code that works in one document does not work in another until the fifth compile

text: I have a rather complicated multifile document built around probsoln. Everything works fine until I introduce a template for division which works fine everywhere else:               \newdimen\digitwidth \settowidth\digitwidth{0}     \def~{\hspace{\digitwidth}}     \def\divrule#1#2{%     \noalign{\moveright#1\digitwidth%     \vbox{\hrule width#2\digitwidth}}}      %This is the divisor                 $+3x$                 $-1$                     \hspace{0mm}             \begin{tabular}[b]{@{}l@{}}      %This is the quotient                      \hspace{2mm}                 $+2x^{2}$                     \hspace{2mm}                 $+3x$                     \hspace{6mm}                 $+1$                     \hspace{5mm}                 $-2x^{-1}$                     \hspace{2mm}                 $+[...]$                     \hspace{2mm}                 \\                  \hline             \big)             \begin{tabular}[t]{@{}l@{}l@{}}     %This is the dividend (Its length controls the line.)                 $+6x^{3}$                      \hspace{5mm}                 $+7x^{2}$                      \hspace{10mm}     %           $+x$                      \hspace{15mm}                 $-7$             \\      %This is the first product                     \hspace{-17.5mm}                 {\footnotesize Ominus:}                     \hspace{1mm}                 $+6x^{3}$                      \hspace{5mm}                 $-2x^{2}$                 \\ %origin,length                \divrule{0}{33}     %This is the first remainder                     \hspace{15mm}                 $+9x^{2}$                      \hspace{13mm}     %           $+4x$                      \hspace{12mm}                 $-7$                \\      %%This is the second product                 {\footnotesize Ominus:}                     \hspace{2mm}                 $+9x^{2}$                      \hspace{7mm}                 $-3x$                 \\                 \divrule{8}{25}%origin,length     %%This is the second remainder                     \hspace{35mm}                 $+3x$                      \hspace{8mm}                 $-7$                \\      %This is the third product                     \hspace{13mm}                 {\footnotesize Ominus:}     %               \hspace{3mm}                 $ $                      \hspace{6mm}                 $+3x$                      \hspace{8mm}                 $-1$                      \hspace{5mm}                \\                 \divrule{17}{17}%origin,length     %This is the third remainder                     \hspace{15mm}                 $ $                      \hspace{10mm}                 $ $                      \hspace{12mm}                 $ $                      \hspace{8mm}                 $-6$                \end{tabular}                \end{tabular}      I then get the following error:                   ../QuestionsBase/16/27.tex:439: Illegal parameter number in definition of \@tmp     .     <to be read again>                         1     l.439 }      Now, if I tell the console to keep going, I get the same error message but with a 2. The third gets me the same but with a 1 again. The fourth gets me the same with a 2 again and the fifth compiles fine. The problem seems to be the way the division interacts with the code derived from probsoln and so I am fully aware that this is not something that can be solved ex cathedra and I am not looking for that. My questions are: Based on the above, what kind of things that I should be looking for? Is there a reference where I could learn what to look for? Hopeful regards \--schremmer


title: Customize environment "proof"

text: I need to create (or customize) an environment "proof" that has the option to explain after the word 'proof' the name of the theorem (or environment) along with its automatic numbering of the theorem (or environment) to which proof relates. Eg. > Theorem 5.1 Blá blá blá Blá blá blá Blá blá blá Blá blá blá Blá blá blá Blá > blá blá Blá blá blá Blá blá blá Blá blá blá Blá blá blá Blá blá blá Blá blá > blá Blá blá blá Blá blá blá Blá blá blá Blá blá blá Comments lá lá lá lá lá lá lá lálá lá lá lálá lá lá lálá lá lá lálá lá lá lálá lá lá lálá lá lá lálá lá lá lálá lá lá lálá lá lá lálá lá lá lálá lá lá lálá lá lá lálá lá lá lálá lá lá lálá lá lá lálá lá lá lálá lá lá lálá lá lá lálá lá lá lálá lá lá lálá lá lá lá > Lema 5.2 Blá blá blá Blá blá blá Blá blá blá Blá blá blá Blá blá blá Blá blá > blá Blá blá blá Blá blá blá Blá blá blá Blá blá blá Blá Comments lá lá lá lá lá lá lá lálá lá lá lálá lá lá lálá lá lá lálá lá lá lálá lá lá lálá lá lá lálá lá lá lálá lá lá lálá lá lá lálá lá lá lálá lá lá lálá lá lá lálá lá lá lálá lá > Lema 5.3 Blá blá blá Blá blá blá Blá blá blá Blá blá blá Blá blá blá Blá blá > blá Blá blá blá Blá blá blá Blá blá blá Blá blá blá Blá Comments lá lá lá lá lá lá lá lálá lá lá lálá lá lá lálá lá lá lálá lá lá lálá lá lá lálá lá lá lálá lá lá lálá lá lá lálá lá lá lálá lá lá lálá lá lá lálá lá lá lálá lá lá lálá lá > Proof of theorem 5.1. Blá blá blá Blá blá blá Blá blá blá Blá blá blá Blá > blá blá Blá blá blá Blá blá blá Blá blá blá Blá blá blá Blá blá blá Blá blá > blá Blá blá blá Blá blá blá Blá blá blá Blá blá blá Blá blá blá Blá blá blá


title: A simple tree for a website structure?

text: I would create a simple picture of a small websitestructure and i found these nice example http://www.texample.net/tikz/examples/family-tree/. But I would change some things and I don't know if it is possible.   * Is it possible to create a direct line between Jim and the next line?    * And is it also possible to get a direct line from Alfred to Step Two and then from Step Two to Step Three.  I also don't, know why the box of the Steps will be bigger as the other one. I'm happy if someone had an answer. Thanks for your help. Kind Regards Here is the example:                   % A family tree     % or: an organisational chart     % Author: Stefan Kottwitz , http://texblog.net     \documentclass{article}     \usepackage{tikz}     %%%<     \usepackage{verbatim}     \usepackage[active,tightpage]{preview}     \PreviewEnvironment{tikzpicture}     \setlength\PreviewBorder{5pt}%     %%%>     \begin{comment}     :Title: A family tree     :Tags: Styles; Trees; Charts     :Author: Stefan Kottwitz     :Slug: family-tree          Posted for discussing and improving on http://tex.stackexchange.com/q/39696/213     \end{comment}          \usetikzlibrary{trees}     \begin{document}     \begin{tikzpicture}[       man/.style={rectangle,draw,fill=blue!20},       woman/.style={rectangle,draw,fill=red!20,rounded corners=.8ex},       grandchild/.style={grow=down,xshift=1em,anchor=west,         edge from parent path={(\tikzparentnode.south) |- (\tikzchildnode.west)}},       first/.style={level distance=6ex},       second/.style={level distance=12ex},       third/.style={level distance=18ex},       level 1/.style={sibling distance=7em}]              % Parents         \coordinate         child[grow=left] {node[man,anchor=east]{Jim}}         child[grow=down,level distance=0ex]         [edge from parent fork down]              % Children and grandchildren         child{node[man] {Alfred}             child[grandchild,first] {node[man]{Step Two}                 child[grandchild,first] {node[man]{Step Three}                     child[grandchild,first] {node[man]{Step Four}                     }                 }             }         }         child{node[man] {Berta}         child[grandchild,first] {node[man]{Howard}}}         child {node[man] {Charles}}         child {node[man]{Doris}         child[grandchild,first] {node[man]{Nick}}         child[grandchild,second] {node[man]{Liz}}};     \end{tikzpicture}     \end{document}


title: Beamer Columns environment doesn't work when converting dvi to pdf

text: I am trying to create two columns in one slide with Beamer. I followed this link: How to split a frame (of beamer) into 2 parts (minipage) side by side? However, none of the `minipage` or the `columns` environment works. For `columns` environment, my dvi file looks fine but when I convert it to pdf, the page becomes a blank page. For `minipage`, I would like to remove the border of each `minipage`. However, once I remove the `\fbox`, the two `minipage` have weird alignment. I basically use the sample code from the link I mentioned. Here is my code:               \documentclass[]{beamer}     \mode<presentation>     \usepackage{beamerthemesplit,mathtools,pgf,PSTricks}     \setbeamertemplate{footline}[page number]     \begin{document}     \begin{frame}     \begin{columns}     \begin{column}{.48\textwidth}     \color{red}\rule{\linewidth}{4pt}     Left Part     \end{column}%     \hfill%     \begin{column}{.48\textwidth}     \color{blue}\rule{\linewidth}{4pt}     Right Part     \end{column}%     \end{columns}     \end{frame}          \begin{frame}     \fboxsep=0pt     \noindent     %\fbox{%     \begin{minipage}[t]{0.48\linewidth}     \includegraphics[height=0.5\paperheight]{impact_circles.eps}     \end{minipage}     %}%     \hfill%     %\fbox{%     \begin{minipage}[t]{0.48\linewidth}     \begin{itemize}     \item right part     \item test2     \item test3     \end{itemize}     \end{minipage}     %}     \end{frame}     \end{document}      The first slide using `columns` environment, and it is looks fine in dvi file, but it doesn't work after converting to pdf. The second slide using `minipage` enviroment. It works but the two `minipage` do not align with each other. Anyone knows how to fix this issue? Thank you.


title: Getting started with Greek and Hebrew in LuaLaTeX

text: I am typesetting a 17th century English theological document that uses a smattering of Greek and Hebrew. I am using LuaLaTeX with TeXShop on the Mac. Is LuaLaTeX up to the task? If so what are the basic steps needed to get accented Greek and pointed Hebrew? Is it possible to have English sentences interspersed with occasional Gk and Heb words, or can they (esp Heb) only be set in their own paragraphs? My plan was to use SBL Greek and Ezra SIL Hebrew fonts. Are these reasonable choices? Ideally I would like to be pointed to a tutorial that describes this stuff from the ground up (or rather, as suitable for someone with a Lamport understanding of LaTeX). But short of that I'm throwing myself on the mercy of knowledgable strangers!


title: Using Glossary in Latexian (editor)

text: I am using Latexian for OS X. But I can't get the Glossary working. I followed the steps on http://en.wikibooks.org/wiki/LaTeX/Glossary, but I don't see a Glossary. Can someone help me?