title: An expandable 'character scanning' command?

text: Please consider the following MWE, for a "character scanning" command "`\looper`" which utilizes `\@tfor`:               \documentclass{minimal}          \usepackage{trace}          \makeatletter     \newcommand\looper[1]{%     % \def\looper#1{%     \typeout{#1}%     \@tfor\next:=#1 \do{\typeout{\next}%     \next%     }     }     \makeatother          \begin{document}          \looper{TEST1}     %% terminal typeout:     % TEST1     % T     % E     % S     % T     % 1               %\typeout{\looper{Test2}}     %% terminal typeout:     % ! Undefined control sequence.     % \next ->\@nil          \edef\tmptest{TEST3}     \looper{\tmptest}     %% terminal typeout:     % TEST3     % TEST3          % \traceon     \edef\outtest{\looper{\tmptest}}     %% terminal typeout:     % ! Undefined control sequence.     % \next ->\@nil          \end{document}      Here the `\looper{TEST1}` behavior is as I want it, but I'd like also to somehow use `\looper{\tmptest}` (where `\edef\tmptest{TEST3}`) and get (in terminal):               \looper{\tmptest}     %% terminal typeout:     % TEST3     % T     % E     % S     % T     % 3      However, the function doesn't really have to expand the argument on its own, as long as I can do something in the call itself, like `\looper{\detokenize{\tmptest}}` ( _which I otherwise cannot use here, as it doesn't "unpack" characters_ ) Furthermore, the function "returns" `\next` for each character scanned, and thus I'd like to be able to write something like               \edef\outtest{\looper{\tmptest}}      ... and get the contents of `\outtest` to again be "TEST3" - except here, they would be the result of concatenation of `\next` of the `\looper` routing ( _thus, I could instead return`-\next` instead of `\next`, and get "-T-E-S-T-3" with a function like this_). Is there something like this built-in already - or can anyone point to a resource that contains a similar function? * * * EDIT: Just a note, probably this one doesn't expand because `\@tfor` uses nonexpandable (?) commands (`\@nil`) - I get this if I activate `\traceon`:               % with \traceon:     {into \tracingonline=1}     {\edef}          \looper #1->\typeout {#1}\@tfor \next :=#1 \do {\typeout {\next }\next }     #1<-\tmptest          \typeout #1->\begingroup \set@display@protect \immediate \write \@unused {#1}\e     ndgroup     #1<-\tmptest          \set@display@protect ->\let \protect \string     {\string}          \tmptest ->TEST3          \@tfor #1:=->\@tf@r #1     #1<-\next          \@tf@r #1#2\do #3->\def \@fortmp {#2}\ifx \@fortmp \space \else \@tforloop #2\@     nil \@nil \@@ #1{#3}\fi     #1<-\next     #2<- \tmptest     #3<-\typeout {\next }\next          \@fortmp -> \tmptest          \tmptest ->TEST3          \tmptest ->TEST3     {\ifx}     {false}          \@tforloop #1#2\@@ #3#4->\def #3{#1}\ifx #3\@nnil \expandafter \@fornoop \else     #4\relax \expandafter \@tforloop \fi #2\@@ #3{#4}     #1<-\tmptest     #2<- \@nil \@nil     #3<-\next     #4<-\typeout {\next }\next          \next ->\@nil     {undefined}     ! Undefined control sequence.     \next ->\@nil


title: PGFGantt Multiple Canvas Color

text: I want to ask if it is possible in PGFGantt, to have a different canvas color from range lets say 0 to 4 and other color for range 5 to 8, when I am using               \gantttitlelist{0,...,8}{1}


title: Dummy package for .bib files

text: When answering this question about CV reference lists I thought it would be helpful if there was a "dummy" `bib` file that I could include. Is there a package like `lipsum` or `blindtext` for `bib` files?


title: Processing a BibTeX database based on entry type

text: Consider a BibTeX database (i.e. a `.bib` file), in which there are over 100 entries. Entry types are journal publications, conference publications, etc., all of which are published by some specific author "A". Now, assume that "A" wants to create his C.V. based on this `.bib` file. The C.V. must look like this:               Name:...     Affiliation: ...     Address: ...     .     .     .     Journal Publications:     ----------------------     [1] ...     [2] ...     ...     Conference Publications:     ----------------------     [1] ...     [2] ...     ...      Is there a way to process the `.bib` file, and generate an output which displays all entries sorted as shown above?


title: Cyrillic monospaced font in XeLaTeX

text: I've installed full TexLive 2011 using "install-tl" script in Ubuntu 12.04. When I was using TexLive 2009 from repositories the following file was compiled without any errors.               \documentclass{article}     % XeLaTeX     \usepackage{xltxtra}     \usepackage{xunicode}          % Fonts     \setmainfont{Arial}     \newfontfamily\cyrillicfont{Arial}     \setmonofont{Courier New}          % Lang     \usepackage{polyglossia}     \setmainlanguage{russian}     \setotherlanguage{english}          \begin{document}     English normal.  \texttt{English monospace}.          Русский обычный.  \texttt{Русский моноширинный}.  % Text in Russian     \end{document}      But XeLaTeX from TexLive 2011 gives this error: > ERROR: Package polyglossia Error: > > \--- TeX said --- The current roman font does not contain the Cyrillic > script! Please define \cyrillicfont with \newfontfamily. > > See the polyglossia package documentation for explanation. Type H for > immediate help. ... > > l.17 ...nglish normal. \texttt{English monospace} . In spite of this error the output PDF is correct. The error remains if comment out `\setmonofont{Courier New}`. Using Courier New as main font gives no error on normal text (without `\texttt`, `\textbf` and so on). Using DejaVu Sans Mono as monospaced font gives no error too. I've been searching for solution few hours but there aren't any. Maybe this is a bug in Polyglossia or Fontspec?


title: \center is centering, but only at the top of the page

text: For an article, I'm trying to center my name and address, but `\center` is putting the relevant info at the very top of the page before the title instead of where I want it, after the title. How can get `\center` to center where I want it to?


title: Use `misc` in biblatex-mla

text: I've narrowed down my problem to the use of `\usepackage[style=mla]{biblatex}`, which apparently disallows the `@misc` type. The citations are correctly generated but do not appear in the output. How can I use a `misc` type with MLA style and have it printed in the output? Specifically, how can I cite a personal interview and a web site? `misc` seems to be the accepted way for both of these. I've provided a MWE below. Am I missing something obvious? * * * Addendum: For websites I've looked at the (non-standard) `electronic`, but it doesn't look like I can specify a website name. The output I get is of the form > "Webpage title." 2013. 12 February 2014. <http://www.example.com/>. which is good but I need " _Foobar Corporation_ " in between the title and the year of publication. Using `author` places the author before the title. * * * ## MWE **test.tex**               \documentclass[hidelinks]{article}          \usepackage[american]{babel}     \usepackage[style=mla]{biblatex}          \addbibresource{test.bib}          \begin{document}          \cite{foo}          \printbibliography          \end{document}      **test.bib**               @MISC{foo,       author = {Jones, Bob},       title = {Personal interview},       howpublished = {personal interview},       month = {12},       year = {2013}     }     @ELECTRONIC{bar,       year = {2013},       title = {Webpage title},       note = {12 February 2014}, % this feels hackish already       url = {http://www.example.com/}       % how do I do "publisher = {Foobar Corporation}" ?     }


title: How to suppress extra vertical space before/after fancy Verbatim environments?

text: I am using fancyvrb's `DefineVerbatimEnvironment` to create differently-styled verbatim environments for user input and output. When two or more of these follow each other, there is extra vertical space between them. According to control vertical space before and after verbatim environment?, that extra space can be suppressed by re-setting `\topsep` or `\partopsetp` for a regular `verbatim`. How can/should I suppress it for an environment defined using `DefineVerbatimEnvironment`? Example showing the extra inter-block spacing I want to suppress:               \documentclass{book}          \usepackage{fancyvrb}     \usepackage{relsize}     \DefineVerbatimEnvironment{VerbIn}{Verbatim}{fontsize=\relsize{-1}}     \DefineVerbatimEnvironment{VerbOut}{Verbatim}{fontshape=it,fontsize=\relsize{-1}}          \begin{document}          \begin{VerbIn}     This is user input.     \end{VerbIn}     \begin{VerbOut}     This is user output.     \end{VerbOut}          \end{document}      ![screenshot showing extra inter-block spacing](http://i.stack.imgur.com/TSDGi.png) _Later: egreg's solution sometimes works:_ ![VerbInX solution working](http://i.stack.imgur.com/oznRp.png) _but sometimes doesn't:_ ![VerbInX solution not working](http://i.stack.imgur.com/ee3xR.png) _Steven's`verbatimbox` solution works, but will be clunky in practice: there are often sequences of immediately consecutive in-out-in-out-in-out, all of which should have spaces suppressed, and having to give each one a unique token for later recall will be error-prone to edit._ _Later: if you are comfortable using Git, I have committed egreg's solution in a branch:_               $ git clone git@github.com:gvwilson/bc.git     $ cd bc     $ git checkout book     $ cd book     $ make # or 'pdflatex book' a couple of times     $ open book.pdf # and go to the bottom of pg 8 or the top of pg 10      _Packages are loaded in`packages.tex`, and commands are defined in `commands.tex`_.


title: Use a tikz variable outside tikz environment... or something that could do that whatsoever?

text: I want to use a variable that could be used in TikZ code to get an external data file, and outside this code to define a legend associated. TikZ won't let me use `\caption` inside its environment, and the label solution doesn't work... For example with various external drawing I want to be able to use the name of the drawing in a caption pretty much like that:               \documentclass{article}     \usepackage{tikz,graphicx}     \begin{document}          \begin{tikzpicture}         \def\tex{texsx}         \includegraphics[width=2cm]{\tex};     \end{tikzpicture}     \caption{drawing of \tex}     \end{document}      It sounds trivial to me but I couldn't find anything.


title: How can I avoid the need for global variables here?

text: Consider the following example: ![http://i.imgur.com/I8eMFgo.png](http://i.stack.imgur.com/DCTbR.png)               \documentclass{article}     \usepackage{xparse}     \usepackage{longtable}     \usepackage{multirow}     \usepackage{hyperref}          \ExplSyntaxOn          \int_new:N \g__ioiooiioio_args_int     \tl_new:N \g__ioiooiioio_link_name          \NewDocumentCommand{\mymacro}{ m m m } % So the solution should have { m m m }      {       \ioiooiioio_setargs:nnn { #1 } { #2 } { #3 }       \ioiooiioio_print:       }          \seq_new:N \l__ioiooiioio_first_col_seq     \seq_new:N \l__ioiooiioio_second_col_seq     \tl_new:N \l__ioiooiioio_table_body_tl     \int_new:N \l__ioiooiioio_step_int               \cs_new_protected:Npn \ioiooiioio_setargs:nnn #1 #2 #3      {       \seq_set_split:Nnn \l__ioiooiioio_first_col_seq { , } { #1 }       \seq_set_split:Nnn \l__ioiooiioio_second_col_seq { , } { #2 }       \tl_clear:N \l__ioiooiioio_table_body_tl       \tl_gclear:N \g_ioiooiioio_link_name       \int_zero:N \l__ioiooiioio_step_int       \int_gzero:N \g__ioiooiioio_args_int       \tl_gset:Nn \g_ioiooiioio_link_name { #3 }       \int_gset:Nn \g__ioiooiioio_args_int { \seq_count:N \l__ioiooiioio_first_col_seq }       \seq_mapthread_function:NNN          \l__ioiooiioio_first_col_seq          \l__ioiooiioio_second_col_seq          \__ioiooiioio_fill_body:nn      }          \cs_new_protected:Npn \__ioiooiioio_fill_body:nn #1 #2       {         \int_incr:N \l__ioiooiioio_step_int         \tl_put_right:Nn \l__ioiooiioio_table_body_tl { & #1 & #2 & }         \int_compare:nT { \l__ioiooiioio_step_int = 1}           {              \tl_put_right:Nn \l__ioiooiioio_table_body_tl                 {                 \multirow{ \g__ioiooiioio_args_int }{*}{                  \hyperlink { doc.rc.\g_ioiooiioio_link_name } { $ \rightarrow $ }                   }                }           }          \int_compare:nTF { \l__ioiooiioio_step_int = \g__ioiooiioio_args_int}             {              \tl_put_right:Nn \l__ioiooiioio_table_body_tl                { \\ }             }            {            \tl_put_right:Nn \l__ioiooiioio_table_body_tl                { \\* }            }        }          \cs_new_protected:Npn \ioiooiioio_print:      {      \multirow{ \g__ioiooiioio_args_int }{*}{ \seq_item:Nn \l__ioiooiioio_first_col_seq { 1 } } \l__ioiooiioio_table_body_tl        }     \ExplSyntaxOff          \begin{document}     \begin{longtable}{cccc}     \mymacro{this is a test,this,is a,test}{now its,not a,test,anymore}{stuff}     \\ % for space, not relevant to the question     \\ % for space, not relevant to the question     \multirow{4}{*}{this is a test}     & this is a test    & now its   & \multirow{4}{*}{\hyperlink{doc.rc.stuff}{$\rightarrow$}} \\*                         & this          & not a     & \\*                         & is a          & test      & \\*                         & test          & anymore   & \\                    \end{longtable}     \end{document}      My macro mimics the part of the table below it exactly. But I don't want to use all these globals (they're ugly). How can I achieve the same effect without the need for globals?


title: How to move the footer margin closer to the bottom, manually

text: I have a page built in latex that has a footnote. I am not satisfied with the distance from the bottom to the footnote: it is too large. I want to have a bigger place to write, so I want the footnote to be close to the bottom. Also, I want to do this "manually", similar to the way that I did with the top distance:               \addtolength{\topmargin}{-.875in}      Thanks!


title: Sizes in bibliography files

text: I have a file using amsart and accessing an external .bib file. I would like to generate a separate file of just the references appearing in my file. But I would like the entries in this file to appear in the same size and style as in any other amsart document, as though they were enumerated within an enumerate environment. (Amsrefs or plain bibtex renders bibliography entries smaller than regular text in amsart files.) Thanks in advance.


title: How to write i-circumflex

text: In some French words when the circumflex is used over the i, there is no dot on the i. When I try to do it as described in "A Guide to Latex" the dot appears and the circumflex is too high. How do I fix this?


title: How can I access to min and max value of x and y axis in pfgplots?

text: I want to access to `xmin`, `xmax`, `ymin` and `ymax` values of an axis in `pgfplots`. If these values are explicitly defined by user I know that I can use the `\pgfkeysvalueof{/pgfplots/xmin}` command. But what if they are automatically chosen without user specification? I try also with `\pgfplots@xmin` but I think it is a constant and not what I want..


title: Table numbering incorrect

text: Since trying to fix the problem described in this question: Tabularx moving table to next page, ignoring optional arguments I have removed the offending Table and now noticed that my Tables have all been renumbered in the following convention: 1, 3, 5. Trashing Aux Files does not fix the problem. As per request, here is MWE which the table numbers as 1, 3, 5. Removing the `\usepackage{ltablex}` cures the problem.               \documentclass{article}          \usepackage{titlesec}     \titleformat{\section}{\large}{\thesection}{1em}{}     \titlespacing{\section}{0pt}{2.5ex}{2.5ex}     \titleformat{\subsection}{\small}{\thesubsection}{1em}{}     \titlespacing{\subsection}{0pt}{2.5ex}{0ex}     \titleformat{\subsubsection}{\sffamily\itshape}{\thesubsubsection}{1em}{}     \titlespacing{\subsubsection}{0pt}{1.5ex}{0ex}     \titleformat{\paragraph}[runin]{\normalfont\normalsize}{\theparagraph}{1em}{}     \titleformat{\subparagraph}[runin]{\normalfont\normalsize}{\thesubparagraph}{1em}{}          \usepackage{ltablex}          \usepackage{appendix}          \usepackage{tabularx}     \usepackage{booktabs}          \title{Minimal Working Example}     \date{}     \author{Author}          \begin{document}     \maketitle     \listoftables          \section{Section 1}          \begin{table}[h]     \caption{Heading 1} \label{tab:table}         \centering         \sffamily         \begin{tabularx}{0.90\textwidth}{ X X X }         \toprule             \multicolumn{3}{ c }{Multicolumn} \\             \textbf{1}  & \textbf{2}    & \textbf{3} \\                  \bottomrule         \end{tabularx}     \end{table}          \begin{table}[h]     \caption{Heading 2} \label{tab:table}         \centering         \sffamily         \begin{tabularx}{0.90\textwidth}{ X X X }         \toprule             \multicolumn{3}{ c }{Multicolumn} \\             \textbf{1}  & \textbf{2}    & \textbf{3} \\                  \bottomrule         \end{tabularx}     \end{table}          \begin{table}[h]     \caption{Heading 3} \label{tab:table}         \centering         \sffamily         \begin{tabularx}{0.90\textwidth}{ X X X }         \toprule             \multicolumn{3}{ c }{Multicolumn} \\             \textbf{1}  & \textbf{2}    & \textbf{3} \\                  \bottomrule         \end{tabularx}     \end{table}          \end{document}


title: How can I draw Pascal's triangle with some its properties?

text: At here Pascal's triangle in tikz we can draw Pascal's triangle. Now I want to note some properties of coefficients `C_{n+3}^4 -C_{n+2}^4-C_{n+1}^4+C_{n}^4=n^2` (the first picture) as folowing pictures ![enter image description here](http://i.stack.imgur.com/5Kifk.jpg) ![enter image description here](http://i.stack.imgur.com/n0w42.jpg) How can I draw this pictures?


title: How to use chemfig for chemical reaction with skeletal forms

text: My code is:               \documentclass[12pt,letterpaper]{report}     \usepackage{blindtext}     \usepackage[utf8]{inputenc}     \usepackage[margin=1in]{geometry}     \usepackage{titlesec}          \setcounter{secnumdepth}{5}          \titleformat{\chapter}[display]     {\filcenter\normalfont\bfseries}     {\MakeUppercase{\chaptertitlename}\ \thechapter}     {0pt}     {}     \titlespacing{\chapter}{0pt}{-24pt}{20pt}     \titleformat{\section}     {\normalfont\normalsize\bfseries}{\thesection}{12pt}{}     \titlespacing{\section}{0pt}{0pt}{0pt}     \titleformat{\subsection}     {\normalfont\normalsize\bfseries}{\thesubsection}{12pt}{}     \titlespacing{\subsection}{0pt}{0pt}{0pt}     \titleformat{\subsubsection}     {\normalfont\normalsize\bfseries}{\thesubsubsection}{12pt}{}     \titlespacing{\subsubsection}{0pt}{0pt}{0pt}          \usepackage{indentfirst}     \usepackage{parskip}     \setlength{\parindent}{.5in}          \usepackage{setspace}     \renewcommand{\baselinestretch}{1.75}           \usepackage{natbib}     \usepackage{chemfig,chemmacros}          \begin{document}               \begin{center}     \schemestart     \chemfig{C(-[:0]H)(-[:90]H)(-[:180]H)(-[:270]H)}\+\chemfig{Cl_2}     \arrow     \chemfig{C(-[:0]Cl)(-[:90]H)(-[:180]H)(-[:270]H)}\+\chemfig{H(-[:0]Cl)     \schemestop     \end{center}          \end      I wanted to produce this: ![enter image description here](http://i.stack.imgur.com/mIn7U.jpg)


title: How to have a figure with caption in multicol enviornment?

text: Hello respected everyone. I am having the following problems. Kindly help me on this regard.               \documentclass[10pt, twoside]{book}     \usepackage{graphicx}     \usepackage{subfig}          \begin{document}           \begin{multicols}{2}      a test file for picture inclusion along with the captions and labeling     \begin{figure}      \centering      \includegraphics[width=5cma]{Cauchy_sequence_illustration-png}\\      \caption{Lets see}\label{pinki}     \end{figure}     \end{multicols}          \begin{figure}      \centering       \includegraphics[width=5cm]{Cauchy_sequence_illustration-png}\\      \caption{Lets see}\label{pinki}     \end{figure}                    \end{document}       After this while I am presing ctrl+shift+x (usually I compile like this in DVI format and then clicking "dvi--->pdf" I convert it into pdf document.) the picture in multicolumn environment is not shown in YAP Viwere but the second one (which is outside of multicolmun environment) is shown along with the caption. Kindly help me how to handle this problem. Please note that I am using the figure in .ps format. And I am not allowed to use any other format according to the instruction. Thanks in advance. If further explanation is needed, please let me know


title: including the bibtex file as include section

text: I created a main files that includes different sections like the following:               \documentclass[conference]{ieeeconf}       \IEEEoverridecommandlockouts                                 \usepackage{graphicx}     \usepackage{amsmath}     \graphicspath{{pics/}{pics/results_paths/}}     \setlength\arraycolsep{1pt}     \begin{document}     \maketitle     \thispagestyle{empty}     \input{sections/abstract}     \input{sections/introduction}     \input{sections/method}     \input{sections/results}     \input{sections/conclusions}     \input{sections/bibliography}     \end{document}      I want to add :               \bibliography{MyReferences}{}     \bibliographystyle{ieeetr}       because in each section I am doing a reference from the BibTeX file. but I always get [?]. where should I add these two lines `\bibliography{MyReferences}{} \bibliographystyle{ieeetr}` in order to get the references. Or what should I do?


title: Reduce line-spacing in ToC for certain sections in amsbook

text: Is it possible in LaTeX to reduce the line-spacing in the table of contents just for certain sections? Left is how it currently looks like, right is how I want it to look like: ![Current](http://i.imgur.com/LD4zbqQ.png) ![Wanted](http://i.imgur.com/t5WnbON.png) Thanks a lot! :-)


title: Amsproc conflict with natbib?

text: I am getting strange compile-time errors when I try to use `natbib` with `amsproc` class -- even though the file looks fine upon compiling. Any idea what is going on? Is there some conflict between the `amsproc.cls` file and the `natbib` package? A minimal example is below. Thanks!               \documentclass{amsproc}     \usepackage{natbib}          \usepackage{filecontents}     \begin{filecontents}{test.bib}         @article{test,         title= "Title",         author= "Author",         journal= "Journal",         pages= "1",         year = "2014"         }     \end{filecontents}          \begin{document}          \cite{test}     \bibliographystyle{chicago}     \bibliography{test}     \end{document}


title: Customization on moderntimeline

text: Referring to artcile with moderntimeline, I tried to implement the same. I wish to have the entries which are in the tabular form: ![enter image description here](http://i.stack.imgur.com/HU2jW.png)   To like this(similar structure): ![enter image description here](http://i.stack.imgur.com/KZTDP.png)   But, with the use of `moderntimeline`, package. Here is what I have done till now. I need help in improving it.               \documentclass{article}     \usepackage[english]{babel}     \usepackage{titlesec}     \usepackage{ifthen}     \usepackage{moderntimeline}          \makeatletter     \colorlet{color0}{blue}     \colorlet{color1}{olive}          \newcommand*{\hintfont}{}     \newcommand*{\hintstyle}[1]{{\hintfont\textcolor{color0}{#1}}}     \newcommand*{\listitemsymbol}{\labelitemi~}     \newcommand*{\cventry}[7][.25em]{%       \cvitem[#1]{#2}{%         {\bfseries#3}%         \ifthenelse{\equal{#4}{}}{}{, {\slshape#4}}%         \ifthenelse{\equal{#5}{}}{}{, #5}%         \ifthenelse{\equal{#6}{}}{}{, #6}%         .\strut%         \ifx&#7&%           \else{\newline{}\begin{minipage}[t]{\linewidth}\small#7\end{minipage}}\fi}}     \newcommand*{\cvitem}[3][.25em]{%       \begin{tabular}{@{}p{\hintscolumnwidth}@{\hspace{\separatorcolumnwidth}}p{\maincolumnwidth}@{}}%           \raggedleft\hintstyle{#2} &{#3}%       \end{tabular}%       \par\addvspace{#1}}     \tlmaxdates{2001}{2012}     \newlength{\quotewidth}     \newlength{\hintscolumnwidth}     \setlength{\hintscolumnwidth}{0.175\textwidth}     \newlength{\separatorcolumnwidth}     \setlength{\separatorcolumnwidth}{0.025\textwidth}     \newlength{\maincolumnwidth}     \newlength{\doubleitemmaincolumnwidth}     \newlength{\listitemsymbolwidth}     \settowidth{\listitemsymbolwidth}{\listitemsymbol}     \newlength{\listitemmaincolumnwidth}     \newlength{\listdoubleitemmaincolumnwidth}          \setlength{\maincolumnwidth}{\dimexpr\textwidth-\separatorcolumnwidth-\hintscolumnwidth\relax}     \makeatother          \titleformat{\section}     [block]     {\normalfont\bfseries}     {\rule[0ex]{2cm}{4pt}}     {1em}     {}                    \begin{document}     \section{EDUCATIONAL QUALIFICATION}     \tllabelcventry[blue]{2011}{2015}{2011}     {B.Tech.}{Computer Science and Engineering}     {Pondicherry Engineering College}{}{Aggregate CGPA 8.5}     \tldatelabelcventry[blue!70!black]{2011}{2011}{Higher Secondary}{}{Petit Seminar Higher Sec. School}     {92\%}{}{}     \end{document}       ![enter image description here](http://i.stack.imgur.com/SFwmG.png)


title: Cannot compile latex on Ubuntu 14.04

text: I used Ubuntu 14.04. I install latex live full:               sudo apt-get install texlive-full      I typed: `pdflatex file.tex` and get this error:               ! Undefined control sequence.     \GenericError  ...   #4  \errhelp \@err@           <use pic/x.jpg>     Overfull \hbox (9.11671pt too wide) in paragraph at lines 142--143      []           LaTeX Warning: Citation `xxx' on page 5 undefined on input line 123.      I searching around but cannot solve my problem. Could you please help me? Thank you very much.


title: Making an "answer space" before the item number in enumitem package

text: It is customary in our country to put an answer line just before the item number in test papers just like what appears below. I am creating a template that my peers who are just recently converting to LaTeX can use so that they can easily implement this list style. I would like to improve upon this so that I can use the option `align=right` and still maintain answer lines that are flushed to the left. This means automatically decreasing the length of `\answerline` as the space occupied by the item numbers increases. Do you have a better way to do this?               \documentclass[preview, border=0.5cm]{standalone}          \usepackage{enumitem}          \newcommand{\answerline}{\makebox[0.5in]{\hrulefill}}          \begin{document}     \begin{enumerate}[noitemsep, label = {{\protect\answerline~\arabic*.}},align=left, leftmargin=*]     \item      \item      \item      \item      \item      \item      \item      \item      \item      \item      \end{enumerate}     \end{document}      ![enter image description here](http://i.stack.imgur.com/fcovs.png) I would like it the items to be aligned right but the lines flushed to the left. ![enter image description here](http://i.stack.imgur.com/9nJad.png)


title: Remove additional space before section in tcolorbox

text: When I set the `parbox` option of a `tcolorbox` to `false`, every section, even the first one, is preceded with additional whitespace. Is there any way to tell `tcolorbox` to handle the first `section` (`subsection`, ...) in the same way as the first `section` on a page is treated, that is without additional space? That is, the following two boxes should look the same independent of the `parbox` option.               \documentclass{article}          \usepackage[many]{tcolorbox}          \begin{document}          \begin{tcolorbox}[parbox=false]     \section{Test}     \end{tcolorbox}          \begin{tcolorbox}     \section{Test}     \end{tcolorbox}          \end{document}


title: How to horizonally align this table?

text: Is there a way to have a set (dynamic) spacing between the elements in this table without messing up horizontal alignment of the elements in the cell ?               \documentclass{ltxdoc}     \usepackage{geometry}     \usepackage{xcolor}     \usepackage{longtable}     \usepackage{ragged2e}     \usepackage{array}          \newcommand*{\tabsep}{3ex}     \newcommand*{\TS}{\noalign{\vskip\tabsep}\pagebreak[1]}          \begin{document}          \begin{longtable}[h]{l >{\RaggedRight}m{5cm} >{\RaggedRight}m{5cm} c c}      \textcolor{blue}{\textbf{R}} code & Syntax & Gebruik & Is vector & Link     \\*\TS     \hline     \TS     \endhead     \texttt{pchisq()} & \begin{tabular}{l}\texttt{\textcolor{blue}{pchisq(}\textcolor{cyan}{<getal>},} \\*\TS \texttt{\textcolor{green}{df=<waarde>}\textcolor{blue}{)}} \\*\TS \texttt{\textcolor{green}{col=<getal>},} \\*\TS \texttt{\textcolor{red}{lwd=<getal>}} \end{tabular} & \begin{tabular}{>{\RaggedRight}m{5cm}}Calculate P-value in a chi square test \\*\TS  degrees of freedom \\*\TS This code doesn't make sense, but neither does the vertical table alignment \\*\TS Random line width option \end{tabular} & $\surd$ & {$\leftarrow$} \\      \end{longtable}     \end{document}      ![enter image description here](http://i.stack.imgur.com/Luleg.png) An alternative way to do it would be to use seperate table lines:               \documentclass{ltxdoc}     \usepackage{geometry}     \usepackage{xcolor}     \usepackage{longtable}     \usepackage{ragged2e}     \usepackage{array}          \newcommand*{\tabsep}{3ex}     \newcommand*{\TS}{\noalign{\vskip\tabsep}\pagebreak[1]}          \begin{document}          \begin{longtable}[h]{l >{\RaggedRight}m{5cm} >{\RaggedRight}m{5cm} c c}      \textcolor{blue}{\textbf{R}} code & Syntax & Gebruik & Is vector & Link     \\*\TS     \hline     \TS     \endhead     & \texttt{\textcolor{blue}{pchisq(}\textcolor{cyan}{<getal>},} & Calculate P-value in a chi square test \\     \\*\TS     & \texttt{\textcolor{green}{df=<waarde>}\textcolor{blue}{)}} & degrees of freedom \\     \texttt{pchisq()} & & & $\surd$ & $\leftarrow$ \\     & \texttt{\textcolor{green}{col=<getal>},} &  This code doesn't make sense, but neither does the vertical table alignment \\     \\*\TS     & \texttt{\textcolor{red}{lwd=<getal>}} & Random line width option \\     \end{longtable}     \end{document}      ...but the result is still sloppy: ![enter image description here](http://i.stack.imgur.com/jytZs.png) Does anybody know a cleaner solution to this?


title: How to draw arrows between circled coefficients of polynomials using tikz

text: After reading Gonzalo's answer to Arrow between parts of equation in LaTeX, I thought I would be able to modify it so that I could have the corresponding coefficients circled and an arrow going from one circle to the next. For example, I would like the coefficient of x^2 on the left, a, circled and the coefficient of x^2 on the right, 5 circled, then a curved arrow drawn between the two circles. How might I achieve this? Also, how would I add some text along the path of the arrow? I reproduce his code here.               \documentclass{article}     \usepackage{amsmath}     \usepackage{tikz}     \usetikzlibrary{calc}          \newcommand{\tikzmark}[1]{\tikz[overlay,remember picture] \node (#1) {};}          \begin{document}          \begin{equation}       a\tikzmark{a}x^2 + bx + c = 5\tikzmark{b}x^2 + bx + c.       \begin{tikzpicture}[overlay,remember picture,out=315,in=225,distance=0.4cm]         \draw[->,red,shorten >=3pt,shorten <=3pt] (a.center) to (b.center);       \end{tikzpicture}     \end{equation}          \end{document}


title: Horizontal alignment of equation and text

text: I want to make a list of Quantum Mechanics formula like the format of the following picture. But I am confused about how to make the equations align to the left while the text to the right. Usually, if I use environment like, `Align` or `Equation`, the equation will be at the center. I know I can use `fleqn` package, but it does not align the equations to the left enough as wee see from the picture I attached. My thought to approach this is to use`fleqn`, then put in the `align` environment, then use a bunch of `\qquad` to align for the text part, which is on the right side of the page. But I think this is silly. Can anyone give me an example of this format? Or does anyone know if there are some cool packages for me to use so that my formula list would look as nice as this one? ![enter image description here](http://i.stack.imgur.com/GbIWY.jpg)


title: Is there way to make horizontal line on the top of the page that contains only a page number

text: I tried to write a book of the following style: Is there a way to modify the upper horizontal line such that it does not have the word "Sisältö" or any other text except page numbers?               \documentclass[10pt]{book}          \usepackage[utf8]{inputenc}     \usepackage[finnish]{babel}          \usepackage{blindtext}          \usepackage[a5paper]{geometry}     %\usepackage[a5paper, top=2in, bottom=1.5in, left=1in, right=1in]{geometry}          \usepackage{scrextend}     \changefontsizes{10.0pt}  % Change base font size          \usepackage{lettrine}     \usepackage{fancyhdr}          \fancyhead[LE,RO]{\thepage}     \fancyfoot{}     \fancyhead[RO,LE]{\thepage}     \fancyhead[LO]{\leftmark}     \fancyhead[RE]{\rightmark}          \cfoot{} % get rid of the page number           \linespread{1.3}     \vbadness=20000     \pagestyle{fancy}     \begin{document}     \tableofcontents     \newpage     \section*{Chapter one}     \addcontentsline{toc}{section}{beginning}     First lines.          \newpage          \section*{Chapter two}     \addcontentsline{toc}{section}{somewhere}     Some text.          \newpage          \section*{Chapter two}     \addcontentsline{toc}{section}{end}     The end.     \end{document}


title: Listings, Literate Programming, and Beautiful Typography

text: Now that I'm procrastinating with tweaking LaTeX, instead of finishing my Ph.D. thesis, I'm wondering what's the most beautiful way to typeset source code (C#, C++, LISP, XML, BNF) in LaTeX. Currently, I'm using the `listings` package, and the `literate` option, to search&replace some characters with mathematical equivalent symbols, such as:               \lstset{ %       ...       literate= {+}{{$+$}}1 {*}{{$*$}}1 {=}{{$\gets$}}1                  {<=}{{$\leq$}}1 {>=}{{$\geq$}}1 {!=}{{$\neq$}}1                  {==}{{$\equiv$}}1 {=>}{{$\leadsto$}}1     }      Although one can find some inspiration for symbols in CWEB, I'm wondering if there exists any standard symbology for common programming (and domain specific) languages. Or maybe more appropriate packages (btw, I'm not looking for fancy syntax coloring, which would ruin my two-colored document). * * * Since there was some users concerned if this should be regarded as a good practice, I think this question deserves some further explanation. Overall, I have to both agree **and** disagree them (and I think a lot of the literate programming community too). Here's when:   1. I **absolutely would agree** in cases one is writing a book on the language, a tutorial, a recipe, patterns, something where it is intended the reader to try that code on the computer. This can provoke confusion on the reader (where is that <\- sign?), and hinder their _reading_ pattern (you know, when you glance at hundreds of lines of code very quickly).   2. But in thesis, papers, and other scientific publications, most of the snippets are **illustrative** ; almost as if they were **pseudo-code**. Readability is improved, especially because lots of two/three character symbols (which can vary depending on the language) are compressed to a more symbolic notation. Now, it is true that most of you will suggest: "then why don't you you pseudo-code?" Well... First, because the pseudo-code provided by the `algorithmic` environment is nice for simplifying imperative languages, but it fails for things like LISP, XML and BNF. Second, because it takes a lot of time converting them, and it quickly falls out of sync. * * * Still, I maintain my original question: "examples of beautiful typography of source code".


title: Why is Biblatex not working and showing "Something's wrong--perhaps a missing \item"

text: I have this LaTeX document `thesis.tex`:               \documentclass[12pt,a4paper]{report}          \usepackage[utf8]{inputenc}     \usepackage[czech]{babel}                    \usepackage[        backend=biber, babel=other        ]{biblatex}          \bibliography{library}               \begin{document}          Citing here \cite{ahu61}           \begin{thebibliography}{99}               \printbibliography          \end{thebibliography}               \end{document}      and this in `library.bib`:               @article{ahu61,        author={Arrow, Kenneth J. and Leonid Hurwicz and Hirofumi Uzawa},        title={Constraint qualifications in maximization problems},        journal={Naval Research Logistics Quarterly},        volume={8},        year = 1961,        pages = {175-191}      }      When I run `pdflatex thesis`, `biber thesis` and then `pdflatex thesis` again, I get this error:               (./thesis.aux) (./thesis.bbl) [1{/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.     map}] [2]          ! LaTeX Error: Something's wrong--perhaps a missing \item.          See the LaTeX manual or LaTeX Companion for explanation.     Type  H <return>  for immediate help.      ...          l.24          ?      What does it mean? What can I do? I am using ubuntu packages installed by apt-get.


title: Revisiting middle of page footnote problem

text: Configuration: Report document class Problem: `\usepackage[bottom]{footmisc}` is not producing footnotes to the bottom of page as it should, but rather in the middle of a page with few lines of body text. According to users on the following thread: Why is my footnote "glued" to the text? they suggested adding `\usepackage[]{fixltx2e}`before `\usepackage[bottom]{footmisc}` but that did not work either. Question: Are there other factors causing this problem or what? Here is a MWE as requested below.               \documentclass{autemplate} % Offshoot from report document class     \addbibresource{sample.bib}          \RequirePackage[backend=biber,sorting=nyt]{biblatex}          \usepackage{fixltx2e}          \usepackage[bottom]{footmisc}          \begin{document}          Footnotes must be at the bottom of the page at all times.\footnote     {Institution requires footnotes always at the bottom}      One example is this \autocite[125]{Cross2000}.          \end{document}


title: Using LuaTeX, HSRM beamer theme, fontspec says DANTE font not found. .sty file has no reference to DANTE

text: I am attempting to modify the HSRM beamer theme found here. After switching from pdftex to LuaTex and purchasing the Flama fonts, I thought I would be ready to go. However, that seems not to be the case. I am now getting an error saying:               ! fontspec error: "font-not-found"     !      ! The font "DANTE" cannot be found.     !       ! See the fontspec documentation for further information.      It says that I should find a reference to DANTE on line 140 here:               l.140   \newfontface\DANTEFONT{DANTE}      But I don't see that in either the .sty file or the .tex. I am using the hsrm-beamer-demo.tex and .sty files, not the minimal ones. Can anyone help me figure out where the heck I'm going wrong? I'm on a Mac and I'm using Mactex and emacs if that makes any difference.


title: Reducing chapter and section spacing for scrbook

text: I'm using `scrbook` document class and using chapters and sections. The spacing between chapters and sections is quite large, too large for my taste (before and after the chapter and section). So my question is how can this spacing be reduced? (saw a few variants for non-KOMA document classes but those don't seem to work for this class).               \documentclass[11pt,a4paper,BCOR10mm,DIV11,toc=listof,parskip=full]{scrbook}          \usepackage[english]{babel}     \usepackage[utf8x]{inputenc}     \usepackage{amsmath}     \usepackage{graphicx}     \usepackage{booktabs}                 \usepackage{multicol}                \twocolumn     \raggedright     \Chapter{chap1}     \Section{sec1}     blaahblah     \Section{sec2}     Blah     \Chapter{chap2}     BlahBlah     \Chapter{chap3}     Blah      Edit: After applying the changes that Werner mentioned I have the following phenomenon (the code excerpts and the screenshot are to show what I tried to describe in the comments): "Species" is a chapter, "Applying" is a section, Advantages and Disadvantages are subsections each. Code excerpt for the disadvantages (1 enter is before and after the subsection):               all perception rolls.          \subsection{Disadvantages}          \noindent\textbf{Bestial psychology and territorial instincts}: Dragons despite their intellect are part beast. This means that they have strong territo      Code excerpt for the chapter part:               \chapter{Species template}          \section{Applying the template}          \subsection{Advantages}          \noindent\textbf{Dragons bodies}: +5.....      ![enter image description here](http://i.stack.imgur.com/vWQJp.png)


title: latex - fancyfoot - page count in box - colour not shown

text: I'm using the following from here: http://www- ra.phys.utas.edu.au/~jstevens/code_thesis_style.html There are also image attachments which show exactly what the following extract of code achieves. However, the only thing that does not show up as in the pictures in the link, is that the box is not grayed. Any ideas why? Cheers!               %% page nums on the bottom in a nice box     %% even side pages     \fancyfoot[LE]{\psboxit{box 0.8 setgray fill}     {\framebox[10mm][c]{\rule{0cm}{4mm}\color{black}{\bfseries \thepage}}}}     %% odd side pages     \fancyfoot[RO]{\psboxit{box 1 setgray fill}     {\hspace{\textwidth}\psboxit{box 0.8 setgray fill}     {\framebox[10mm][c]{\rule{0cm}{4mm}\color{black}{\bfseries \thepage}}}}}          %% make the bottom line above the page number box     \renewcommand{\footrulewidth}{0.4pt}     \renewcommand{\footruleskip}{0mm}          %% bring the style into effect     %% (must come after all the fancyhead and fancyfoot stuff)     \pagestyle{fancy}          % now redefine the plain style pages (chapter pages, contents pages)     %% to have the same page number stuff on the bottom     \fancypagestyle{plain}{     \fancyhf{}     \fancyfoot[RO]{\psboxit{box 1 setgray fill}     {\hspace{\textwidth}\psboxit{box 0.8 setgray fill}     {\framebox[10mm][c]{\rule{0cm}{4mm}\color{black}{\bfseries \thepage}}}}}          \fancyfoot[LE]{\psboxit{box 0.8 setgray fill}     {\framebox[10mm][c]{\rule{0cm}{4mm}\color{black}{\bfseries \thepage}}}}               \renewcommand{\headrulewidth}{0pt}     \renewcommand{\footrulewidth}{0.5pt}     }


title: Why won't my glossary print, using glossaries pkg?

text: I used `\makeglossaries` in the preamble. Defined my terms, and issued `\printglossaries`. I've been reading the manual but can't see what I'm missing:               \documentclass[12pt]{article}     \usepackage{glossaries}     \makeglossaries          \begin{document}          \newglossaryentry{flux}{name=Flux,     description={(1) The rate of flow of metabolites through a metabolic pathway.  (2) The rate of transport per unit of area.}}          \glsaddall          \printglossaries          \end{document}      Edit: it is true I don't actually use the glossary terms in the text body - this is purely a stand-alone glossary.


title: How to make an open circle in a number line?

text: This is a follow up question to Labeled Number Line My question is how can I make an open circle (to indicate an open interval) using Gonzalo Medina's answer.


title: How to use a \write command inside a \newenvironment ?

text: I'd like to make a new environment which would store its content in a file, so that I can read that file at another part of the document. More specifically, I want to have an environment `{proof}` such that its contents can be automatically moved to the appendix. So far, I tried the following code:               \newwrite\pfs     \openout\pfs=tmp     \newenvironment{proof}{\immediate\write\pfs\bgroup}{\egroup}          \begin{proof}It's obvious.\end{proof}      However it doesn't seem to work: I get the error message `File ended while scanning the text of \write`. Can anybody help fix this macro? Edit: I managed to get this macro work to work as a TeX macro:               \newwrite\pfs     \immediate\openout\pfs=tmp     \long\def\writetofile#1{\immediate\write\pfs{#1}}     \long\def\proof#1{\writetofile{\noexpand\par\noexpand\textbf{Proof:} #1}}          \proof{It's obvious.} Theorem: $0.999\ldots=1$          \immediate\closeout\pfs     \input tmp      However, I'd much prefer this macro to be converted into an environment, since most proofs will be very long...


title: Formatting typographer's quote marks

text: This question has been asked before. But, I have not found a solution. I have a problem related with quotation marks. A MWE is: **main document:**               \documentclass[10pt,english,british,twoside,openany]{scrbook}     \usepackage{novel}      then, **novel.sty:**               \usepackage{csquotes}     \MakeOuterQuote{"}      I need to be able to obtain left/right single typographer's quote marks and left/right double typographer's quote marks. The resulting .pdf contains straight quotes that are all slanted the same way (forward). I have tried a number of ways of adding quote marks to the text with no success. Is this because of my font choice (Palatino)? I would really appreciate help in obtaining curly typographer's quote marks. Is there an easy way to achieve this? * * * Again, thanks for your interest. Here is my MWE. **The main .tex file is:**               %TITR Main Document 5.06in x 7.81in, facing pages     %Preamble     \documentclass[10pt,english,british,twoside,openany]{scrbook}     \usepackage{novel}          %Frontmatter     \begin{document}         \title{Tears in the Rain}         \date{}         \maketitle     \frontmatter         \pagestyle{empty} %Empty page left         \noindent \begin{flushright}         {\huge{}Tears in the Rain}         \par\end{flushright}{\huge \par}         \cleardoubleoddemptypage         \thispagestyle {empty}         \includegraphics{./images/bensig}         \vspace*{0.5in}         \begin{flushright}              {\Huge{}Tears in the Rain}         \par\end{flushright}{\Huge \par}          %Add an empty page and Copyright material.         \clearpage         \begin{center}         \emph{Copyright}         \end{center}         \begin{center}         \textcopyright{ 2014 Ben Francis All rights reserved.}         \end{center}          \vspace*{0.5in}     \begin{center}     \begin{minipage}[t]{0.5\paperwidth}         No part of this publication may be reproduced, stored         in a retrieval system, or transmitted in any form, or by any means;         mechanical, electrical, photocopying, scanning, recording or otherwise,         without prior written consent from the publishers. Every effort has         been made to contact all copyright holders. The author and publisher         will gladly rectify any omissions.     \end{minipage}     \end{center}     \vspace*{0.5in}     \begin{center}         ISBN:     \end{center}     \vspace*{0.2in}     \begin{center}         A CIP Record for this book is available from the British         Library.     \end{center}          \vspace*{0.1in}          \begin{center}         Typeset in \LaTeXe     \end{center}          %Insert an empty left page     \cleardoubleoddemptypage      \thispagestyle {empty}      \vspace*{\fill}          %Table of Contents     \tableofcontents          \markboth{\MakeUppercase{Preface}}{}      \addcontentsline{toc}{chapter}{Preface}          \chapter*{Preface}     \input{./chapters/a_front/pref.tex}     %\subfile{./chapters/a_front/pref.tex}          %Mainmatter     \mainmatter     \noindent          %The header and footer     \pagestyle{fancy}     \fancyhead[LE,RO]{\tiny \slshape \leftmark}     \fancyhead[LO,RE]{\tiny \slshape Ben Francis}     \fancyhead[C]{}     \fancyfoot[C]{\small \slshape \thepage \hspace{3mm} Tears in the Rain}     \fancyfoot[RO]{\small \slshape Tears in the Rain}     \fancyfoot[LE]{\small \slshape Tears in the Rain}     \fancyfoot[C]{\thepage}     \renewcommand{\footrulewidth}{0.25pt}          %The Chapters     \input{./child_docs/child_docs.tex}          \end{document}      **This calls 'novel.sty':**               %novel.sty (Style package for the novel template)     \usepackage{microtype}     \usepackage{palatino}     \usepackage[utf8]{inputenc}     \usepackage{ebgaramond}     \usepackage{lmodern}     \usepackage{enumitem}     \usepackage[sc]{mathpazo}     \linespread{1.1}     \usepackage[T1]{fontenc}     \usepackage{textcomp}      \usepackage{framed}     \usepackage{ragged2e}     \usepackage[Lenny]{fncychap}     \usepackage{lettrine}     \usepackage{graphicx}     \usepackage[UKenglish]{babel}     \usepackage{type1cm}     \usepackage{lettrine}     \renewcommand\thepart{\Alph{part}}     \renewcommand*\rmdefault{ppl}     \newcommand{\apostrophe}{\XeTeXglyph\XeTeXcharglyph"0027\relax}     \KOMAoptions{open=any}     \renewcommand*\rmdefault{ppl}     \usepackage{fancyhdr}     \setlength{\headheight}{15.2pt}     \pagestyle{fancy}     \widowpenalty=300     \clubpenalty=300     \renewcommand*{\partpagestyle}{empty}          %Settings for quotation marks<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<     \usepackage[autostyle, english = british]{csquotes}     \MakeOuterQuote{"}          %Settings for page size and layout >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>     \usepackage[paperwidth=5.06in,paperheight=7.81in]{geometry}     \geometry{verbose,tmargin=0.5in,bmargin=1in,inner=0.75in,outer=0.5in,headheight=0.1in,headsep=0.15in,footskip=0.45in,twoside}          %Character dialogue settings >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>     \newlist{dialogdash}{description}{1}     \setlist[dialogdash]{labelindent = 0.25in, leftmargin = \labelindent, labelsep = 0.3em, rightmargin = 0.35in, nosep,topsep = 0.5ex, itemsep = 0.5ex, align = left}     \newenvironment{dlgdash}{\begin{dialogdash}\item[---]}{\end{dialogdash}}     \newlist{dialognodash}{itemize}{1}     \setlist[dialognodash]{label = ,labelindent = 0.25in, leftmargin = \labelindent, rightmargin = 0.35in, nosep, topsep = 0.1ex, itemsep = 0.1ex, align = left}      \newenvironment{dlgnodash}{\begin{dialognodash}\item }{\end{dialognodash}}     \def\bdlg{\begin{dlgnodash}}     \def\edlg{\end{dlgnodash}}     %End Dialogue settings <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<      **And finally, the 'child_docs.tex' file** :               \input{./chapters/part_one/part_one.tex}          \chapter{One}         \input{./chapters/chap_one/scenes/one_one.tex}         \input{./chapters/chap_one/scenes/one_two.tex}         \input{./chapters/chap_one/scenes/one_three.tex}         \input{./chapters/chap_one/scenes/one_four.tex}          \chapter{Two}         \input{./chapters/chap_two/scenes/two_one.tex}         \input{./chapters/chap_two/scenes/two_two.tex}         \input{./chapters/chap_two/scenes/two_three.tex}         \input{./chapters/chap_two/scenes/two_four.tex}              \chapter{Three}         \input{./chapters/chap_three/scenes/three_one.tex}         \input{./chapters/chap_three/scenes/three_two.tex}         \input{./chapters/chap_three/scenes/three_three.tex}         \input{./chapters/chap_three/scenes/three_four.tex}           \input{./chapters/part_two/part_two.tex}              \chapter{Four}         \input{./chapters/chap_four/scenes/four_one.tex}         \input{./chapters/chap_four/scenes/four_two.tex}         \input{./chapters/chap_four/scenes/four_three.tex}         \input{./chapters/chap_four/scenes/four_four.tex}              \chapter{Five}         \input{./chapters/chap_five/scenes/five_one.tex}         \input{./chapters/chap_five/scenes/five_two.tex}         \input{./chapters/chap_five/scenes/five_three.tex}         \input{./chapters/chap_five/scenes/five_four.tex}              \chapter{Six}         \input{./chapters/chap_six/scenes/six_one.tex}         \input{./chapters/chap_six/scenes/six_two.tex}         \input{./chapters/chap_six/scenes/six_three.tex}         \input{./chapters/chap_six/scenes/six_four.tex}              \input{./chapters/part_three/part_three.tex}              \chapter{Seven}         \input{./chapters/chap_seven/scenes/seven_one.tex}         \input{./chapters/chap_seven/scenes/seven_two.tex}         \input{./chapters/chap_seven/scenes/seven_three.tex}         \input{./chapters/chap_seven/scenes/seven_four.tex}              \chapter{Eight}         \input{./chapters/chap_eight/scenes/eight_one.tex}         \input{./chapters/chap_eight/scenes/eight_two.tex}         \input{./chapters/chap_eight/scenes/eight_three.tex}         \input{./chapters/chap_eight/scenes/eight_four.tex}              \chapter{Nine}         \input{./chapters/chap_nine/scenes/nine_one.tex}         \input{./chapters/chap_nine/scenes/nine_two.tex}         \input{./chapters/chap_nine/scenes/nine_three.tex}         \input{./chapters/chap_nine/scenes/nine_four.tex}              \input{./chapters/part_four/part_four.tex}              \chapter{Ten}         \input{./chapters/chap_ten/scenes/ten_one.tex}         \input{./chapters/chap_ten/scenes/ten_two.tex}         \input{./chapters/chap_ten/scenes/ten_three.tex}         \input{./chapters/chap_ten/scenes/ten_four.tex}              \chapter{Eleven}         \input{./chapters/chap_eleven/scenes/eleven_one.tex}         \input{./chapters/chap_eleven/scenes/eleven_two.tex}         \input{./chapters/chap_eleven/scenes/eleven_three.tex}         \input{./chapters/chap_eleven/scenes/eleven_four.tex}              \chapter{Twelve}         \input{./chapters/chap_twelve/scenes/twelve_one.tex}         \input{./chapters/chap_twelve/scenes/twelve_two.tex}         \input{./chapters/chap_twelve/scenes/twelve_three.tex}         \input{./chapters/chap_twelve/scenes/twelve_four.tex}              \chapter{Thirteen}         \input{./chapters/chap_thirteen/scenes/thirteen_one.tex}         \input{./chapters/chap_thirteen/scenes/thirteen_two.tex}         \input{./chapters/chap_thirteen/scenes/thirteen_three.tex}         \input{./chapters/chap_thirteen/scenes/thirteen_four.tex}              \input{./chapters/part_five/part_five.tex}              \chapter{Fourteen}         \input{./chapters/chap_fourteen/scenes/fourteen_one.tex}         \input{./chapters/chap_fourteen/scenes/fourteen_two.tex}         \input{./chapters/chap_fourteen/scenes/fourteen_three.tex}         \input{./chapters/chap_fourteen/scenes/fourteen_four.tex}              \chapter{Fifteen}         \input{./chapters/chap_fifteen/scenes/fifteen_one.tex}         \input{./chapters/chap_fifteen/scenes/fifteen_two.tex}         \input{./chapters/chap_fifteen/scenes/fifteen_three.tex}         \input{./chapters/chap_fifteen/scenes/fifteen_four.tex}              \chapter{Sixteen}         \input{./chapters/chap_sixteen/scenes/sixteen_one.tex}         \input{./chapters/chap_sixteen/scenes/sixteen_two.tex}         \input{./chapters/chap_sixteen/scenes/sixteen_three.tex}         \input{./chapters/chap_sixteen/scenes/sixteen_four.tex}              \input{./chapters/part_six/part_six.tex}              \chapter{Seventeen}         \input{./chapters/chap_seventeen/scenes/seventeen_one.tex}         \input{./chapters/chap_seventeen/scenes/seventeen_two.tex}         \input{./chapters/chap_seventeen/scenes/seventeen_three.tex}         \input{./chapters/chap_seventeen/scenes/seventeen_four.tex}              \chapter{Eighteen}         \input{./chapters/chap_eighteen/scenes/eighteen_one.tex}         \input{./chapters/chap_eighteen/scenes/eighteen_two.tex}         \input{./chapters/chap_eighteen/scenes/eighteen_three.tex}         \input{./chapters/chap_eighteen/scenes/eighteen_four.tex}              \chapter{Nineteen}         \input{./chapters/chap_nineteen/scenes/nineteen_one.tex}         \input{./chapters/chap_nineteen/scenes/nineteen_two.tex}         \input{./chapters/chap_nineteen/scenes/nineteen_three.tex}         \input{./chapters/chap_nineteen/scenes/nineteen_four.tex}              \input{./chapters/part_seven/part_seven.tex}              \chapter{Twenty}         \input{./chapters/chap_twenty/scenes/twenty_one.tex}         \input{./chapters/chap_twenty/scenes/twenty_two.tex}         \input{./chapters/chap_twenty/scenes/twenty_three.tex}         \input{./chapters/chap_twenty/scenes/twenty_four.tex}              \chapter{Twenty-One}         \input{./chapters/chap_twentyone/scenes/twentyone_one.tex}         \input{./chapters/chap_twentyone/scenes/twentyone_two.tex}         \input{./chapters/chap_twentyone/scenes/twentyone_three.tex}         \input{./chapters/chap_twentyone/scenes/twentyone_four.tex}              \chapter{Twenty-Two}         \input{./chapters/chap_twentytwo/scenes/twentytwo_one.tex}         \input{./chapters/chap_twentytwo/scenes/twentytwo_two.tex}         \input{./chapters/chap_twentytwo/scenes/twentytwo_three.tex}         \input{./chapters/chap_twentytwo/scenes/twentytwo_four.tex}              \chapter{Twenty-Three}         \input{./chapters/chap_twentythree/scenes/twentythree_one.tex}         \input{./chapters/chap_twentythree/scenes/twentythree_two.tex}         \input{./chapters/chap_twentythree/scenes/twentythree_three.tex}         \input{./chapters/chap_twentythree/scenes/twentythree_four.tex}              \chapter{Twenty-Four}         \input{./chapters/chap_twentyfour/scenes/twentyfour_one.tex}         \input{./chapters/chap_twentyfour/scenes/twentyfour_two.tex}         \input{./chapters/chap_twentyfour/scenes/twentyfour_three.tex}         \input{./chapters/chap_twentyfour/scenes/twentyfour_four.tex}              \chapter{Twenty-Five}         \input{./chapters/chap_twentyfive/scenes/twentyfive_one.tex}         \input{./chapters/chap_twentyfive/scenes/twentyfive_two.tex}         \input{./chapters/chap_twentyfive/scenes/twentyfive_three.tex}         \input{./chapters/chap_twentyfive/scenes/twentyfive_four.tex}              \chapter*{Meet the Author}         \addcontentsline{toc}{chapter}{Meet the Author}         \input{./chapters/d_back/back.tex}


title: LaTeX Extensible Delimiters Definitions

text: I'm writing a new font (in Metafont) and am working on the OMX-encoded math font. I've properly defined the parts of the extensible parentheses and included the fairly straightforward ligature programs for the TFM:               extensible oct"060": oct"060",0,oct"100",oct"102";     extensible oct"061": oct"061",0,oct"101",oct"103";      I'm pretty confident that the TFM file correctly reflects these ligature programs, as shown in the output of tftopl:               (CHARACTER C 0         (CHARWD R 0.63999)         (CHARHT R 2.4)         (CHARDP R 0.800001)         (VARCHAR         (TOP C 0)             (BOT O 100)             (REP C B)             )         )     (CHARACTER C 1         (CHARWD R 0.63999)         (CHARHT R 2.4)         (CHARDP R 0.800001)         (VARCHAR             (TOP C 1)             (BOT C A)             (REP C C)             )         )      I've also written a LaTeX package file that, as far as I can tell from fntguide.pdf, should enable the extensible characters. Follows is a MWE, which isn't really helpful because the font files aren't available, but for whatever it's worth:               \documentclass{article}      \DeclareMathVersion{drmmath}     \DeclareFontFamily{OMX}{drm}{}     \DeclareFontShape{OMX}{drm}{m}{n}{ <-> drmomx10 }{}     \DeclareSymbolFont{drmmathomx}{OMX}{drm}{m}{n}     \SetSymbolFont{drmmathomx}{drmmath}{OMX}{drm}{m}{n}     \DeclareMathDelimiter{(}{\mathopen}{operators}{"28}         {drmmathomx}{"00}     \DeclareMathDelimiter{)}{\mathclose}{operators}{"29}         {drmmathomx}{"01}     \mathversion{drmmath}     \begin{document}          $$\left(\frac{%         \frac{x^4}{2a\vartheta^{-\gamma}}         }{\frac{\xi_4^\kappa}{\frac{37\alpha^4 +         b}{\frac{3}{4}y^a}}}         \right)$$          $$\left(\frac{2}{3}\right)$$          $$\left(2\right)$$          \end{document}      If I change "drmmathomx" to "largesymbols", the extensions work; however, if I don't, they don't. The glyphs are coming from the proper font; but they're not extending. I've scoured the available literature as best as I could and honestly have no idea what's failing to work here. Any assistance would be greatly appreciated.


title: Algorithm2e caption separator with language package options

text: Please see the difference in the style of the caption separator. In the first example the `:` is typed directly after the word `Algorithm 1`. In the second MWE with language option german (also french or ngerman) there is a white space between the word `Algorithm 1` and the `:`. Is that the intended behaviour and how can I avoid the white space? Redefining with `\SetAlgoCaptionSeparator{:}` doesn't work. MWE (without the package option):               \documentclass{scrartcl}     \usepackage{algorithm2e}     \begin{document}     \begin{algorithm}     \SetAlgoLined     \KwData{this text}     \KwResult{how to write algorithm with \LaTeX2e }     initialization\;     \While{not at end of this document}{     read current\;     \eIf{understand}{     go to next section\;     current section becomes this one\;     }{     go back to the beginning of current section\;     }     }     \caption{How to write algorithms}     \end{algorithm}     \end{document}       MWE (with package option)               \documentclass{scrartcl}     \usepackage[german]{algorithm2e}     \begin{document}     \begin{algorithm}     \SetAlgoLined     \KwData{this text}     \KwResult{how to write algorithm with \LaTeX2e }     initialization\;     \While{not at end of this document}{     read current\;     \eIf{understand}{     go to next section\;     current section becomes this one\;     }{     go back to the beginning of current section\;     }     }     \caption{How to write algorithms}     \end{algorithm}     \end{document}


title: Pdf in bookmark dimensions using geometry

text: Trying to make my own bookmarks, I began with using geometry to get the right dimensions (for some reason this is 20cm x 5.5cm). Using the first two answers to another question, I wrote the following:               \documentclass{article}     \usepackage[margin=0cm,paperheight=20cm,paperwidth=5.5cm]{geometry}     %\usepackage[pass,paperwidth=5.5cm,paperheight=20cm]{geometry}     \begin{document}     \noindent hello world     \end{document}      (Switching between the two geometry lines to test both.) Strangely, this gives a pdf file that is 22cm by 6cm. Compiling to png using the following script (in TeXworks this time, as I don't know how to do it with TeXstudio), it even becomes 2476px x 331px (which would be 41 by 5.5cm).               /C     texify.exe     --tex-option=$synctexoption     $fullname     &     dvipng.exe     -D 300x     $basename.dvi      Why do the dimensions of the output file of the first method differ from the second, and why is neither of them the right size? As this clearly isn't, what would be the right way to define the paper size?


title: Why do the standard siunitx settings not detect font weight?

text: Using KOMA-script I got a bold font for chapter/section titles. I had a unit, `\SI{1}{\something}`, in one of them which was not set in bold font. Giving `siunitx` the following options               detect-weight=true, detect-family=true      helped. Probably there are good reasons not to enable this by default. Which are they?


title: Default values in \newcommand & renewing \maketitle

text: I am working on customizing a thesis document class according to my needs. I am trying to renew the `\maketitle` command to modify my title page, and I am facing two problems:   1. I wish to define a newcommand for the logo in the title page. If there is no user-defined parameter, a default value called "logo.pdf" should be passed to the `\includegraphics` command to load the default logo.              \newcommand{\logo}[1][logo.pdf]{\includegraphics[width=40mm]{#1}}      Is this correct?   2. There seems to be some problem with my class file, as I keep getting the `Undefined control sequence in \maketitle` error. Below is my document class: **`mythesis.cls`:**               \NeedsTeXFormat{LaTeX2e}     \ProvidesClass{mythesis}[2013/07/25 v1.0 My thesis class]     \LoadClass[a4paper]{report}          \RequirePackage{graphicx} % needed for logo and pictures          \newcommand{\logo}[1][logo.pdf]{\includegraphics[width=40mm]{#1}}     \newcommand{\college}[1][My School]{{#1}}     \newcommand{\degree}[1][My degree]{{#1}}     \newcommand{\university}[1][My university]{{#1}}          \newenvironment{alwayssingle}{%            \@restonecolfalse            \if@twocolumn\@restonecoltrue\onecolumn            \else\if@openright\cleardoublepage\else\clearpage\fi            \fi}%            {\if@restonecol\twocolumn            \else\newpage\thispagestyle{empty}\fi}          \makeatletter     \renewcommand\maketitle{     \begin{alwayssingle}         \begin{center}             {\Huge {\bfseries {\@title}} \par}             {\large \vspace*{10mm} {\@logo \par} \vspace*{15mm}}             {{\Large \bf \@author} \par}             {\large \vspace*{1ex} {{\@college} \par}             {\large \@university \par}             {\Large \it {\@degree} \par}             \vspace*{2ex}             {\today}}         \end{center}     \null\vfill     \end{alwayssingle}     }     \makeatother      **`thesis.tex`:**               \documentclass[12pt]{mythesis}          \begin{document}     \title{My research}     \author{My name}     \logo{logo_new.pdf}     \maketitle     \end{document}      Any help on this is appreciated. P.S.: I am a newbie, especially in document class creation.


title: tcolorbox: designing a definition with \tcbmaketheorem

text: I want to make a `tcolorbox` that says Definition: in the title and that is it.               \documentclass{article}     \usepackage[most]{tcolorbox}     \tcbuselibrary{theorems}     %  defi enviro                                                                           \tcbset{       theorem/.style args = {#1}{%                                                               title = {\mbox{#1} :},       }     }     \tcbmaketheorem{Definition}{Definition}{%                                                colframe = gray!black!50,       fonttitle = \bfseries     }     \begin{document}     \begin{Definition}{Definition}       Some definition.     \end{Definition}     \end{document}


title: Adding a legend for many subfloats: unlabeled subfloat

text: I am using `memoir` and adding `subbottom` to `figure` environments like this:               \begin{figure}     \subbottom[Blah......]     {     First figure     }     \subbottom     {     Legend goes here     }     \subbottom[Blah.....]     {     Second figure     }     \end{figure}      How do I make it so that the legend subfigure does not use up a letter so that the first and second real figures get labeled 1.a) and 1.b) (rather than 1.c)? I considered letting the legend be part of one of the existing figures, but it creates an imbalance that I don't like.


title: How to put \dots in front equation numbers in amsmath

text: By default the style is               \renewcommand{\theequation}{\thechapter.\arabic{equation}}      for example                           x+y =4         (2.1)      How to put `\dots` in front equation numbering such as                           x+y =4      ...(2.1)      while in the text reference remain (2.1). and how to make it for the array by using \begin{eqnarray} \end{eqnarray}                     x = y+ 4                       -Z+ E                      + 4gh     ...(2.1)


title: Using \vspace in articles

text: Is using a `\vspace{}` command a stable/proper way to remove the white space in the figures while using it in an article? If not, then can anyone suggest me a quick fix to this? FYI, I am making `.eps` out of matlab `.fig` files. Thanks in advance.


title: Changing footnote marker position

text: I am using `\footmisc` to customize footnotes, but I just can't get the footnote marker where I want it to be(the one that appears at the bottom of the page; not the one in the text, to which I don't want to make any changes). Let's say the default is:               ____________        1. Footnote text      What I would like to achieve is something of this sort (notice the space before and after the marker):               ____________       1.     Footnote text      But I can only get:               ____________     1.     Footnote text      Basically, I can't/don't know how to set space before the footnote marker. The only thing I can indent is the footnote text itself. Example of what I currently have (played around with other options, but so far this is the closest I've gotten):               \documentclass{article}     \usepackage[hang]{footmisc}     \setlength{\footnotemargin}{0.5in}     \renewcommand{\hangfootparindent}{0.195in}     \renewcommand{\hangfootparskip}{0\baselineskip}     \begin{document}     Something.\footnote{Here is a footnote.} Something else.\footnote{Lorem ipsum dolor sitamet, consectetur adipiscing elit. Morbi risus lacus, suscipit vehicula ullamcorper a, tempus consectetur felis.          I set up this indentation for subsequent paragraphs (I'm happy with it.)}     \end{document}      Any help would be appreciated.


title: Using glossaries with bibtex

text: I hope someone can help with this. I am trying to generate a document with a glossary. I am using TexnicCenter. It appears to work when there is no bibtex file but not when there is and then not even when the bibtex file is then removed. I have amended the postprocessor to include makeglossaries. Here is an MWE:               \documentclass[a4paper,10pt]{report}     \usepackage{textcomp}          \linespread{1.6}     \usepackage{graphicx}     \usepackage{float}     \graphicspath{images/}     \usepackage{amsmath}     \usepackage{appendix}     \usepackage{subfig}     \usepackage{rotating}     \usepackage{lscape} % or {pdflscape}     \usepackage{longtable}     \usepackage[section]{placeins}     \usepackage{hyperref}     \usepackage[xindy]{glossaries} \include{litrev.gls}     \makeglossaries     \makeindex     \usepackage{makeidx}     \begin{document}     \include{litrev.glo}     \gls{hrt}     \gls{usa}     \Section{Introduction:}          \gls{usa}               \printindex     \printglossary     \end{document}      I then run this through latex and then run makeglossaries litrev. At this point I get these errors in my .glg file: *** Unable to execute: 'xindy -L english -I xindy -M "litrev" -t "litrev.glg" -o "litrev.gls" "litrev.glo"' *** Status report: Opening logfile "litrev.glg" ERROR: Opening logfile "litrev.glg" failed! I hope this is all relevant information. Any help would be Greatly appreciated. Many Thanks.


title: two mathcal families in the same document

text: Is it possible to use two math fonts from the calligraphy families in the same document? Something like `$\mathcal{P}$` from Zapfino and `$\mathcal{T}$` from XITS math?


title: Is there a program that allows to move sections and automatically adjusts the level of subsections?

text: How would one go about to move a [sub..]section to a different position in the document structure? The sectioning commands would have to be changed according to the new parent level. Is there a program that does that? An editor via drag and drop? A cli call like this should do it (given that the section numbering is default):               texsectionmove main.tex 3.2 root


title: How to cite an online brochure

text: I want to cite an online brochure, but there is no author name, it is a brochure of a company. How can I cite this in BibTeX?


title: Changing color and header of beamer with CambridgeUS

text: How to change the red color for \- the titles \- the topics How to adjust the position of the header1 and 2?               \documentclass{beamer}          \usetheme{CambridgeUS}               % Set Color ==============================          % Custom colors     \usepackage{xcolor}          % http://www.computerhope.com/htmcolor.htm     \definecolor{gold}{HTML}{FDD017}     \definecolor{deep sky blue}{HTML}{3BB9FF}     \definecolor{light sky blue}{HTML}{82CAFA}          \makeatletter     \definecolor{mybackground}{HTML}{82CAFA}     \definecolor{myforeground}{HTML}{0000A0}          \setbeamercolor{normal text}{fg=black,bg=white}     \setbeamercolor{alerted text}{fg=red}     \setbeamercolor{example text}{fg=black}          \setbeamercolor{background canvas}{fg=myforeground, bg=white}     \setbeamercolor{background}{fg=myforeground, bg=mybackground}          \setbeamercolor{palette primary}{fg=black, bg=gray!30!white}     \setbeamercolor{palette secondary}{fg=black, bg=gray!20!white}     \setbeamercolor{palette tertiary}{fg=black, bg=gold}     \makeatother     % Set Color ==============================                    \title{Title1}     \subtitle{Title2}     \author{Author}     \institute{Institute}     \date{Date}               \begin{document}          \frame{          }          \section[Outline]{}     \frame{\tableofcontents}          \section{Header1}     \subsection{Header2}     \frame{\frametitle{Topic1}     %     HTML color codes are the \textbf{hexadecimal triplets} representing the colors red, green, and blue.     \vspace{0.25cm}     %     These color codes can be used to change the color of the background, text, and tables on a web page.     }     %     %     \end{document}      Title1 and 2 ![Title](http://i.stack.imgur.com/veAdz.jpg) Topic1 and Header1 & 2 ![Topic](http://i.stack.imgur.com/AlHlp.jpg) Align text left or right, center ![Align text left or right, center](http://i.stack.imgur.com/15UE1.jpg)


title: Trying to use biblatex-historian with a BibTeX backend and XeLaTeX

text: I'm currently working with a large bibliography that I've assembled for my PhD studies that I've edited in several different programs (KBibTeX, JabRef, and ebib from emacs primarily) and that was annoyingly rendered non-compliant with unicode by KBibTeX (I think). This means that I can only compile documents referencing it with XeLaTeX. I'm okay with this, and I'm not even sure it's relevant to the problem I'm having. The problem is that when I compile the document with this header:               \documentclass[a4paper,12pt]{scrartcl}     \usepackage[utf8]{inputenc}     \usepackage[citestyle=authoryear, bibstyle=mla, backend=bibtex]{biblatex}     \bibliography{General}      it works, but once I change it to `bibstyle=historian`, it can't find the document. I am running the standard Arch Linux package of TexLive, with the package including the Historian package installed. Any ideas what the issue is?


title: Strange behaviour of \renewpagestyle from the titlesec package

text: The following code uses the `pagestyles` option and `\renewpagestyle` from the `titlesec` package to redefine the `plain` style:               \documentclass{book}     \usepackage[paperheight=12cm]{geometry}     \usepackage[pagestyles]{titlesec}          \renewpagestyle{plain}       {\setfoot{}{}{}\sethead{}{}{}}          \begin{document}          \tableofcontents          \end{document}      The expected behaviour would be to clear all fields in both the header and footer; however, the result of the above example code is the following: ![enter image description here](http://i.stack.imgur.com/OIx30.png) Why is the word "Contents" appearing in the header and in the footer?


\def\A{E=mc^2}     \def\B{%     I can find a tool to convert PDF to EPS     in my neither bathroom nor kitchen.}          \documentclass{article}     \begin{document}     $\A$ is my favourite equation and the following is my favourite quote.     \begin{quote}     \B     \end{quote}     \end{document}      Is it OK to define a macro before document class? What is the side effect?


title: Is there any specific reason to use LaTeX over XeLaTeX?

text: Is there any situation in which it would be easier to do things in LaTeX rather than XeLaTeX?


title: tikz-timing: text labels in symbols other than D, and time axis discontinuities

text: This is (more-less) two (or more) questions in one - however related; so I'll try to cover all in one post. I have a specific timing diagram layout in mind, and I'm almost there: ![sigdisc_tikz.png](http://i.stack.imgur.com/Gwtuy.png) The complete code for that example can be found below. In brief, this is what I want to achieve:   1. I want to be able to display a multi-line (two line) text label inside the `L` and `H` logic characters/symbols: the first line is the value of the signal (0 or 1) - the second line is some sort of an indexing label (which could be plainly numeric '`1`', or alphanumeric '`a1`' - passed as an argument, e.g. `h{a1}`)   2. I want to be able to show a discontinuity in the time axis; the example shows the following variants:      1. Based on `D` character (with Low and High parallel lines; capital letter name `B` or `V`) _or_ based on `Z` character (line in middle; lowercase letter name `b` or `v`)     2. Uses ellipsis (`...`, that is, `\cdots`; `B` or `b`) _or_ uses "a curvy widget" (here `$\iint$`) as separator characters (`V` or `v` metacharacter macros)        * (sort of) off topic: I believe ellipsis is an appropriate character/symbol for "discontinuity" in time diagrams, as it also means "omission"; this with the "curvy widget" is something I have from back in the (high school) days (last century). _Does anyone know a name for this sort of a "curvy widget" symbol, used in the graphical/diagram sense for discontinuity/skip/omission_? I used a double integral symbol, `$\iint$`, simply because I couldn't find anything more appropriate; I simply need two parallel '`S`'-like shapes, but I don't like the clef-like "dot serifs" ( _how are these called in typography_?) that the integral sign has; closest I could find is the Unicode symbol U+2240 '`≀`' for wreath product \- however, I'd need the 'wreath' symbol rotated 180 degrees so its oriented rightly (to the right) ... and here is an overview of the problems:   1. Only `D` can accept text characters/labels 'inside' itself - this is, however, not really a problem, because in the metacharacter macro, I can first draw a `D` with thin dashed lines ( _which also helps me visually - so those dashed lines in the image are on purpose_ ) and the text label, then 'restart' the macro drawing, and draw an `L` or `H` symbol... but, then:      1. `D` cannot accept paragraphed content (with linebreaks) - so I have to "cheat" with TeX primitives (`\raise`/`\lower` `\hbox` and `\kern`) to simulate two lines; as a result these text lines inside are **not** center-aligned    2. I have to apply the same TeX primitive (`\raise`/`\lower` `\hbox` and `\kern`) approach, to be able to align the "time-discontinuity" symbol to the Low and High lines of the `D`-derived logic symbols (`B` and `V`); as the alignment is done "by hand", again these symbols are **not** properly center aligned (in respect to the entire width of the logic symbol)      1. I cannot visually "interrupt" the `D` lines (if I try to "break" in code, I'll get a D transition, which I do not want) - so I have to use `\colorbox{white}{...}` to specify a white background; but then, this background "spills over" the grid, which again I do not want - I'd simply want a white "interruption" of the same height as the line        * I'd also like the signal lines to touch exactly the "curvy widget" symbols     2. For the `Z` derived symbols - I cannot "write" text labels "in" them, so I have to specify a "named node" (`N(b)`, `N(v)`); and then draw a TikZ text node aligned to these "named nodes" in the `\extracode` section - however, I don't want this, because I do not want to manually keep track of 'named node' references, depending on how many time discontinuities I want to show in any number of given signals        * the ellpsis is not properly centered in this case either       * the white background of the TikZ nodes is not as broad as in the `\colorbox` case, but I'd still like to make it as high as the signal line strokewidth only       * Also here, I'd like the signal line to touch the "curvy widget" symbol  So, basically, those are the problems I have. I'm aware that there may not be a simple answer to these problems - however, the thing is that I (sort of) "hacked" my way through to getting this image; so, I was hoping maybe there is a more proper way of doing this, where the above problems are already handled - which I may have missed... Many thanks in advance for any answers,   Cheers! The code:               % sigdisc_tikz.tex     % pdflatex sigdisc_tikz.tex                                   # to obtain sigdisc_tikz.pdf     % convert -density 300x sigdisc_tikz.pdf sigdisc_tikz.png   # to obtain sigdisc_tikz.png          % \documentclass[border=0]{standalone} % incorrectly crops image - use minimal + preview     \documentclass{minimal}          % minimal doesn't have \scriptsize, \tiny:     % see also http://wiki.lyx.org/FAQ/ChangeFontUsingLatex ;     % copied from IEEEtran.cls (for 12 pt doc)     \makeatletter     \def\ttiny{\@setfontsize{\ttiny}{4}{5pt}}     %     \def\tiny{\@setfontsize{\tiny}{6}{7pt}}     \def\scriptsize{\@setfontsize{\scriptsize}{8}{9pt}}     \def\footnotesize{\@setfontsize{\footnotesize}{9}{10.5pt}}     \def\small{\@setfontsize{\small}{10}{12pt}}     %     \def\normalsize{\@setfontsize{\normalsize}{12}{13.92pt}}%     %     \def\large{\@setfontsize{\large}{14}{17pt}}     \def\Large{\@setfontsize{\Large}{17}{20pt}}     \def\LARGE{\@setfontsize{\LARGE}{20}{24pt}}     \def\huge{\@setfontsize{\huge}{22}{26pt}}     \def\Huge{\@setfontsize{\Huge}{24}{28pt}}          % \let\tthtext\tikztiming@handletext % ! Undefined control sequence.     % \def\tthtext{\tikztiming@handletext} % ! Improper alphabetic constant.     \makeatother                    \usepackage{tikz}     % \usetikzlibrary{arrows,chains,matrix,positioning,scopes,snakes,decorations.markings} % Package tikz Warning: Snakes have been superseded by decorations.     \usetikzlibrary{arrows,chains,matrix,positioning,scopes,decorations}     \usepackage{tikz-timing}     \usetikztiminglibrary[rising arrows]{clockarrows}     \usetikztiminglibrary{advnodes}     \usetikztiminglibrary{overlays}          \usetikztiminglibrary{nicetabs} % a bit strange with \Huge; use belowrulesep to adjust     % \typeout{\the\abovetopsep} % no - belowrulesep     % \typeout{\the\belowrulesep} % yes     %% \belowrulesep=10pt % ok; but not anymore? Not with ex (1ex)?!     %% \setlength{\belowrulesep}{10ex} % ok, but not with ex/em anymore?     % use current font size in \f@size (note, it's in pt, but "without the unit"); works only for normalsize     % for others, use a new def (let):     \let\mainsize\Large     \makeatletter     {\mainsize\global\let\myfontsize\f@size}     \makeatother     \newlength{\myfontsizelen}     \setlength{\myfontsizelen}{\myfontsize pt}          \setlength{\belowrulesep}{0.4\myfontsizelen} % ok, but not with ex/em anymore?          \usepackage{amsmath}     \usepackage[graphics,tightpage,active]{preview}     \PreviewEnvironment{tikzpicture}     \newlength{\imagewidth}     \newlength{\imagescale}          \usepackage{type1cm} % to avoid "LaTeX Font Warning: Font shape `OML/cmm/m/it' in size <2> not available"; tlmgr install type1cm     \usepackage{helvet}          \begin{document}          % have a D with bleak color to allow text;     % then restart, and in overlay, draw a H     % \tikztimingmetachar{h}{H; O{$1$}} % nothing happens     % \tikztimingmetachar{h}{ [gray] D{1}; [black] O{H} } % all is gray     % \tikztimingmetachar{h}{ [[timing/.style={dotted,gray}]] D{1}; [black] O{H} } % all is black     % \tikztimingmetachar{h}{ [timing/.style={dotted,gray}] D{1}; [black] O{H} } % all is black     % \tikztimingmetachar{h}{ ; [dotted,gray] D{1}; [black] O{H} ; } % late?     % NOTE: `before` - O{background} - foreground - `after`     % \tikztimingmetachar{h}{ ; O{ [dotted,gray] D{1} } [solid,black] H ; } % ok     % \tikztimingmetachar{h}{ O{ [dotted,gray] D{1} } [solid,black] H  } % not ok     % \tikztimingmetachar{h}{ O{ [dotted,gray] D{1} } [solid,black] H ; } % not ok     % \tikztimingmtachar{h}{ ; O{ [dotted,gray] D{1} } [solid,black] H } % ok     % \tikztimingmetachar{h}{ ; O{ [dotted,black!10] D{1} } [solid,black] H } % ok     % \tikztimingmetachar{h}{ ; O{ [dotted,black!10,line width=1pt] D{[black]1} } [solid,black] H } % line width don't reset; default def: line width=0.15ex     % \tikztimingmetachar{h}{ ; O{ [dotted,black!10,line width=1pt] D{[black]1} } ; H } % line width, solid, black restored with the `;` before `H`          % these were OK:     % \tikztimingmetachar{h}{ ; O{ [dotted,black!40,line width=0.07ex,timing/dslope=0] D{[black]$1$} } ; H }     % \tikztimingmetachar{l}{ ; O{ [dotted,black!40,line width=0.07ex,timing/dslope=0] D{[black]$0$} } ; L }               % \linebreak inside D char has no effect;     % cannot have parbox, minipage inside D char: "Runaway argument? Paragraph ended before \tikztiming@metachar was complete."     % \parbox, \node next to D: "! Improper alphabetic constant."     % \vspace inside D passes, but no effect     % \lower1.1em\hbox{\kern-0.5em{b}} works (tex approach, as in \LaTeX logo)     % '\hbox to' does not really work there; \parbox neither ("! A <box> was supposed to be here.")     % note: #1 is always width of metacharacter     % also used: A, W, E, Q, I          % comments (code must be otherwise in one line!):     % \tikztimingmetachar{h}[2]{     %   ; % RESTART     %   O{                % start overlay     %   [dotted,black!40,line width=0.07ex,timing/dslope=0] % overlay options     %     D{                    % start D; `inside` text:     %       [black]             % option for D `inside` text     %       \parbox{2em}{       % start parbox, 2em width     %         \centering        % make stuff inside parbox centered (refers to first line)     %         $1$               % write out the value (text character) "1" in math mode     %         \lower1.1em\hbox{ % now \lower, and start a hbox     %           \kern-1.0em{    % pull the lowered content left a bit (so its almost centered with first line     %             (#2)          % write out string "(arg)"     %           }             % close \kern     %         }     %       }     %     }                 % close (insides of) D     %   }                 % close overlay     %   ; % RESTART     %   H % draw H logic character     % }          \tikztimingmetachar{h}[2]{ ; O{ [dotted,black!40,line width=0.07ex,timing/dslope=0] D{ [black] \parbox{2em}{\centering$\mathbf1$\lower1.1em\hbox{\kern-1.0em{(#2)}}}} } ; H }          \tikztimingmetachar{l}[2]{ ; O{ [dotted,black!40,line width=0.07ex,timing/dslope=0] D{ [black] \parbox{2em}{\centering$\mathbf0$\lower1.1em\hbox{\kern-1.0em{(#2)}}}} } ; L }          % "The new ‘$’ modifier can be used to calculate the width of the group characters:"     % use phantom to give an 'anchor' to \lower     % \raisebox: "! Improper alphabetic constant."     % debug with fbox:     % \tikztimingmetachar{B}[1]{ [black!40] $#1$D{\phantom{X}{\raise1.8em\hbox{\kern-1em\fbox{$\cdots$}}}{\lower1.8em\hbox{\kern-3.5em\fbox{$\cdots$}}} }  }     % with white background - colorbox     % first semicolon prevents "leak" of B's gray to the previous (say, h or l) character     % note - [red] is placed there, to show there's no effect on the color of the dots (in other position, it is simply rendered as text)     % B - based on D (...)     \tikztimingmetachar{B}[1]{ ; [black!40]$#1$D{ [red] \phantom{X}{\raise1.8em\hbox{\kern-1.3em\colorbox{white}{$\cdots$}}}{\lower1.8em\hbox{\kern-3.4em\colorbox{white}{$\cdots$}}} } }          % b - based on Z (...)     % for Z, color spec needs to be *after* the characters, to change stroke color!     % N(b) named node is to add a \node with the \cdots afterwards     \tikztimingmetachar{b}[1]{ ; $#1/2$Z[black!40] N(b) $#1/2$Z[black!40] }          % V - based on D (≀≀ / ∬ )     \tikztimingmetachar{V}[1]{ ; [black!40]$#1$D{ [red] \phantom{X}{\raise1.8em\hbox{\kern-1.3em\colorbox{white}{$\iint$}}}{\lower1.8em\hbox{\kern-3.4em\colorbox{white}{$\iint$}}} } }          % v - based on Z (≀≀ / ∬ )     \tikztimingmetachar{v}[1]{ ; $#1/2$Z[black!40] N(v) $#1/2$Z[black!40] }                              %% --------------------------------          \mainsize % this one to make timing symbols (as default font) big!          \begin{tikztimingtable}[%         timing/nodes/advanced,         timing/dslope=0.1,         timing/name/.style={font=\sffamily\scriptsize},         timing/d/text/.style={font=\sffamily\ttiny},       ]       %       % start timing diagram       %       \textcolor{black}{Sig1} & [black]         Z H l{a1} l{2} h{3} 3B h{$N_{a}$} Z \\ %       \textcolor{black}{Sig2} & [black]         Z H h{1}  h{2} l{3} 3b l{$N_{b}$} Z \\ %       \textcolor{black}{Sig3} & [black]         Z H l{a1} l{2} h{3} 3V h{$N_{a}$} Z \\ %       \textcolor{black}{Sig4} & [black]         Z H h{1}  h{2} l{3} 3v l{$N_{b}$} Z \\ %       %       % end timing diagram       %       % there must NOT be an uncommented line before \extracode!       %     \extracode       % foreground:       \tablerules       \tablegrid       \node[%         rectangle,inner sep=0pt,align=center,draw=none,fill=white%       ] at (b) {%x         \normalsize $\cdots$%       };       \node[%         rectangle,inner sep=0pt,align=center,draw=none,fill=white%       ] at (v) {%x         \tiny $\iint$%       };       % background:       \begin{pgfonlayer}{background}       \end{pgfonlayer}     \end{tikztimingtable}          \end{document}


title: Performance of TeXLive 2011 on Ubuntu 11.10

text: I'm comparing the performance of the TeXLive 2009 packages that come with Ubuntu 11.10, to the TeXLive 2011 packages that are installed directly from TeXLive on an x86_64 platform. To my great surprise, TeXLive 2011 seems to be much slower than the TeXLive 2009. About half the speed, according to my tests. Here's a degenerate example, with a file named `test.tex`:               \documentclass{memoir}     \begin{document}\end{document}      Running `time xelatex test.tex >/dev/null` three times for each yields: ### TeXLive 2009 (native Ubuntu packages)               real   0m0.575s     user    0m0.375s     sys 0m0.199s          real    0m0.659s     user    0m0.421s     sys 0m0.237s          real    0m0.587s     user    0m0.382s     sys 0m0.205s      ### TeXLive 2011 (TeXLive packages)               real   0m1.122s     user    0m0.912s     sys 0m0.210s          real    0m1.073s     user    0m0.877s     sys 0m0.196s          real    0m1.094s     user    0m0.869s     sys 0m0.224s      Can anyone explain why TeXLive 2011 might be so much slower in this comparison? More importantly, how can one improve the performance of TeXLive 2011 on Ubuntu?


title: PDF printer decreases filesize of pdflatex output considerably. Why?

text: This is probably not exactly a TeX question, but I assume many people concerned with TeX might also have ideas about this issue. If I compile the following "minimum" example with `pdflatex` on Windows, the resulting PDF file is 92kb in size. If I then print it to a PDF file (using Acrobat 7), the resulting PDF file is 32kb in size. It looks the same (in particular it is not rasterized). Why is that and more importantly: are there any options I can give to `pdflatex` to create a file of this smaller size in the first place?               \documentclass[a4paper,12pt]{article}     \usepackage[T1]{fontenc}     \begin{document}     \textbf{Ad d}) By the residue theorem we have     \begin{eqnarray*}     \int_{\gamma }f &=& 2\pi i\sum_{z\in C\backslash \left\vert \gamma \right\vert }n(\gamma ,z)\mathop{res}(f,z) \\     &=&2\pi i(n(\gamma ,0)\mathop{res}(f,0)+n(\gamma ,\pi )\mathop{res}(f,\pi )+n(\gamma ,i\pi )\mathop{res}(f,i\pi )) \\     &=&-4ie^{\frac{1}{\pi -i\pi }}\approx 0.74-4.63i     \end{eqnarray*}     \end{document}      edit: I just tried it using the free program `pdfcreator`, and the size is even reduced to 22kb! Almost all of the size difference is due to the fonts part, as the space auditing of acrobats pdf optimizer tells me. Yet even this optimizer doesn't achieve these large savings, a printing process seems necessary. I wonder why.


title: \addvspace after a titlesec heading

text: So, I'm trying to make an environment that is always padded above and below by a certain vertical space, no more and no less (unless the previous or following elements require even more space). My attempt is               \newenvironment{hello}{\addvspace{\baselineskip}}{\addvspace{\baselineskip}}      If I then have two `hello` environments one after another, then the second `\addvspace` happily does nothing, as desired. Similarly, after a section title, I get the desired behavior.               \documentclass{article}          \usepackage{lipsum}     %\usepackage{titlesec}     \newenvironment{hello}{\addvspace{\baselineskip}}{\addvspace{\baselineskip}}          \begin{document}          \section{Hellos}     \begin{hello}         \lipsum[2]     \end{hello}     \begin{hello}         \lipsum[3]     \end{hello}          \end{document}      But when using `titlesec`, there is too much space between the section title and the first `hello` environment. It looks like there's a definite space that goes along with the title that isn't visible to the first `\addvspace` after it, so `\addvspace` adds more space. Any ideas on how to fix this? (Reasons why my entire approach is crappy are also welcome.)


title: How to draw the following table (simplex tableau)

text: I would like to draw table, ![correct table](http://i.stack.imgur.com/q5XtU.png) I tried,               \begin{equation}     \begin{array}{c}     z \\      s_1 \\     s_2 \\     s_3      \end{array}     \begin{bmatrix}     \begin{array}{c|ccccc|c}       z & x_1 & x_2 & s_1 & s_2 & s_3 & b \\ \hline       1 & 0 & 0 & 1.6 & 2.2 & 0 & 544 \\ \hline       0 & 1 & 1 & 0.4 & -0.2 & 0 & 16  \\       0 & 0 & 1 & -0.2 & 0.6 & 0 & 72 \\       0 & 0 & 0 & -0.4 & 0.2 & 1 & 19 \\     \end{array}     \end{bmatrix}     \end{equation}      However I get, with an allignment issue on the left, ![incorrect](http://i.stack.imgur.com/L3C6S.png)


title: Is it feasible to using data binding within Latex?

text: A year ago, I worked for a company doing .NET to create a customer report. They use DevExpress to generate a report based on customers' requirements. However, I realized the way it works is just painful and very time-consuming, because everytime they changed the requirement, we have to change a layout a bit due the the font and text data. At that time, I knew nothing a Latex, but I always think there must be a way to work smarter.   Today, while playing with TikZ package, I realized that Latex is just like another programming language, it's super powerful and flexible in term of drawing figure, positioning text, etc... But I'm not sure if we can use a variable inside Latex or not, for example, if I created a layout, says:               x^2 + 2x = A      Then is it possible for `A` to be a `variable` so that every time I need to pull out a new data from Database, I can just fit them in that particular position. I've just learned Latex for couple months, so there are many things that are new to me. In advance, I apologize if my question sounds a little insane or nonsense. Lastly, thank you for your time reading.


title: Bad formatting using URLs in bibtex

text: Is there a better way to include URLs in bibtex which result in a fine formatting? At the moment I do the following:               @misc{jvmti,       author        = {Oracle},       title         = {{JVM TI Reference}},       howpublished  = {WWW page},       year          = {2007},       url           = {http://download.oracle.com/javase/6/docs/platform/jvmti/jvmti.html},       note          = {\url{http://download.oracle.com/javase/6/docs/platform/jvmti/jvmti.html}},       abstract      = {},     }      This results in this very long URL and above are all the rest of information but stretched over the whole line with a lot of white spaces due to justification.


title: Biblatex bibliography quotes break when using fontspec

text: As soon as I use `fontspec` in my biblatex xelatex document, my quotes stop appearing as proper quotes `"`, and start appearing as a pair of `` and ''. My minimal working example, first:               \documentclass{book}     \listfiles     \usepackage[stretch=10]{microtype}     \usepackage[quiet]{fontspec}     \usepackage[backend=biber]{biblatex}     \usepackage{hyperref}     \addbibresource{./bibliography/references.bib}               \begin{document}     Hello world [\cite{Bonaini_Memoria}]          \printbibliography     \end{document      Everything looks good here: ![enter image description here](http://i.stack.imgur.com/kWIiq.png) then I add `setmainfont`:               \documentclass{book}     \listfiles     \usepackage[stretch=10]{microtype}     \usepackage[quiet]{fontspec}     \usepackage[backend=biber]{biblatex}     \usepackage{hyperref}     \addbibresource{./bibliography/references.bib}               \setmainfont{Linux Libertine O}     \begin{document}     Hello world [\cite{Bonaini_Memoria}]          \printbibliography     \end{document}      and the thing breaks: ![enter image description here](http://i.stack.imgur.com/aeZvK.png) For completeness here is my bibliography biblatex entry:               @Article{Bonaini_Memoria,       author="Bonaini, F.",       title={Memoria unica sincrona di Leonardo Fibonacci novamente scoperta.},       journaltitle="Giornale Storico degli Archivi Toscani.",       date=1857,       volume="Vol. I.",       pages={239--246},       language={italian}      This seems a mystery to me! Any help would be greatly appreciated. EDIT: What is weird, is if I take out the `setmainfont` directive, and instead `usepackage{libertineotf}` everything works great. :?


title: Adding more than two address lines to a document of class res

text: I'm using the res9b template and I'm trying to figure out how to add one more address line. I tried using "\\\" but the output is a comma separated list instead of a line break.


title: Stop automatic indenting of tabular in apa6e

text: In apa6e, tabular environments indent automatically. This does not match APA's guidelines. One can work around this by putting a `\noindent` in front of every `\begin{tabular}{...}` line. How can I stop the indenting of tabular environments (without using the work- around)? Example:               \documentclass{apa6e}     \shorttitle{}     \begin{document}          \begin{table}     \caption{Caption}     \begin{tabular}{l}     \hline     This appears indented. \\     \hline     \end{tabular}     \end{table}          \end{document}