title: Read table from file with mixed strings and numbers

text: I'm generating a file with comma separated values and I need to display its contents in a table. Some columns need math mode as I placed variable names in there. Here is a MWE with my problem:               \documentclass{article}          \usepackage[T1]{fontenc}     \usepackage[utf8]{inputenc}     \usepackage{lmodern}     \usepackage{pgfplotstable}     \usepackage{booktabs}          \pgfplotstableread[col sep=comma]{     ParameterC,Cellobiose,ParameterG,Glucose,ParameterXo,Xylooligomers,ParameterX,Xylose,ParameterpH,pH,Parametermu,Viscosity     E_{M_C}^{G},0.500462577695772,\alpha_C^{G},0.595034931903454,E_{M_C}^{E},0.467132253228601,K_{A_C}^{G},0.45836079026922,K_{A_C}^{G},0.937036239950334,E_{M_C}^{E},0.831652617418096     \alpha_C^{E},0.496153968086408,a_2,0.59421878635291,K_4,0.462469172623973,E_{M_C}^{E},0.448945933959748,E_{M_C}^{G},0.159665534055731,I_{G_1},0.393938611208751     I_{X_2},0.459441172005239,K_{A_C}^{E},0.21747820438974,K_{A_C}^{E},0.446548053467089,\alpha_C^{G},0.319585127620579,\alpha_X^{E},0.15522878340942,I_{G_2},0.304112048191325     I_{C_4},0.457702457871354,E_{M_C}^{G},0.192527945825199,\alpha_C^{E},0.445734897595437,K_{A_X}^{X},0.306668962811058,I_{G_4},0.114115162076442,K_{A_C}^{G},0.273157552479744     K_{A_X}^{X},0.0813359759834273,K_{A_X}^{X},0.163396355621483,I_{G_1},0.200244546104448,I_{X_2},0.30012367397621,I_{C_2},0.104368068024314,K_3,0.15774123515272     }\loadTestTable          \begin{document}     \begin{table}[htbp]         \pgfkeys{/pgf/number format/.cd,fixed relative,precision=2}         \small         \begin{center}             \caption{SRC coefficients.}             \label{table1}             \pgfplotstabletypeset[                 col sep=comma, % the seperator in our .csv file                 dec sep align,                 skip rows between index={20}{\pgfplotstablerows},                 math/.style={%                     preproc cell content/.append style={/pgfplots/table/@cell content/.add={$}{$}},                 },                 columns/ParameterC/.style={string type, column name={$\theta$}, math},                 columns/ParameterG/.style={string type, column name={$\theta$}, math},                 columns/ParameterXo/.style={string type, column name={$\theta$}, math},                 columns/ParameterX/.style={string type, column name={$\theta$}, math},                 columns/ParameterpH/.style={string type, column name={$\theta$}, math},                 columns/Parametermu/.style={string type, column name={$\theta$}, math},                 every head row/.style={                     before row={\toprule}, % have a rule at top                     after row={\midrule}},                 every last row/.style={after row={\bottomrule}} % rule at bottom             ]{\loadTestTable}         \end{center}     \end{table}     \end{document}      It looks like it's not separating the columns correctly. Can you spot the error? Thanks! ![enter image description here](http://i.stack.imgur.com/eCLGE.png)


title: How to box  verbatim to prevent page break?

text: If I try               \mbox{       \begin{verbatim}         Some looooong text...       \end{verbatim}     }      Then some compilation errors occur.


title: Pageref the "List of..."

text: In my thesis I have a "writing conventions" at the very beginning. There it is explained how abbreviations are introduced. In this explanation, I would like to say > A list of abbreviations can be found on page xxx How can I `pageref` this index ? Thank you! Here is a MWE:               \documentclass[12pt,twoside,openright,a4paper,oldfontcommands]{memoir}     \usepackage{lipsum}          \makeindex          \begin{document}          You can find the list of abbreviations at \pageref~{???}.          \appendix     \appendixpage     \chapter{myAppendix}          \backmatter     \printindex          \end{document}


title: mdframed example throwing error

text: I'm trying to get the following `mdframed`example from the package documentation to work (`mdframed-example-default` page 5), but it's throwing the following errors               Missing number, treated as zero T     Illegal unit of measure (pt inserted) T      and displays a peculiar "pt" before printing the environment contents with the title box positioned too low. How to fix this? The title box should be just on the middle of the top line.               \documentclass{article}          \usepackage{tikz,mdframed}          \begin{document}          \mdfsetup{skipabove=\topskip,skipbelow=\topskip}     \newcounter{theo}[section]      \newenvironment{theo}[1][]{%     \stepcounter{theo}%          \ifstrempty{#1}%          {\mdfsetup{%             frametitle={%                 \tikz[baseline=(current bounding box.east),outer sep=0pt]                 \node[anchor=east,rectangle,fill=blue!20]                 {\strut Theorem~\thetheo};}}%         }%         {\mdfsetup{%              frametitle={%                 \tikz[baseline=(current bounding box.east),outer sep=0pt]                 \node[anchor=east,rectangle,fill=blue!20]                 {\strut Theorem~\thetheo:~#1};}}%         }%         \mdfsetup{innertopmargin=10pt,linecolor=blue!20,%                 linewidth=2pt,topline=true,                 frametitleaboveskip=\dimexpr−\ht\strutbox\relax,}         \begin{mdframed}[]\relax%         }{\end{mdframed}}          \begin{theo}         This is an example theorem         %         \begin{equation}             a^2 + b^2 = c^2         \end{equation}     \end{theo}          \end{document}      resulting in ![enter image description here](http://i.stack.imgur.com/9id7x.png)


title: Red squiggly imitation

text: Is there an elegant way to draw red squigglies under text, to emulate what a [source] code editor does when it detects errors (either spelling mistakes, syntactical errors or semantic errors)? ![enter image description here](http://i.stack.imgur.com/lJVuK.jpg) Here is now the sguiggly looks in a very popular editor zoomed in. As you can see it's not actually a wave. ![enter image description here](http://i.stack.imgur.com/ZvbfR.png)


title: xy + overrightarrow = error

text: M(non-)WE:               \documentclass{article}     \usepackage[all]{xy}     \begin{document}     \[ \xymatrix{ \overrightarrow{C} } \]     \end{document}      produces "ERROR: Illegal parameter number in definition of \lastprentry@@.". Any ideas?


title: How do I expand a macro into a tabular head?

text: I would like to be able to define a macro that can be used in the tabular definition. How can I do this? This does not work:               \documentclass{article}          \begin{document}     \gdef\buildtabularhead{|||}          \begin{tabular}{\buildtabularhead}     1 & 2 &3\\     \end{tabular}     \end{document}


title: How to make chapter numbers in TOC as non-link (hyperref package)

text: I'm using the hyperref package to enable PDF links & bookmarks in the output file. I would like to achieve the following behavior (`[]` denotes clickable area}               1 [The first chapter] .............. 3     2 [The second chapter] ............. 8      When using the `linktoc=section` option in hyperref, I can achieve this:               [1 The first chapter] .............. 3     [2 The second chapter] ............. 8      Which is not really what I wanted. Anyone aware of a solution?


title: How to put a non-breaking space in \cite

text: How do I put a non-breaking space inside a `\cite` macro with several citations? `\cite{ref1,~ref2}` causes an error. If I leave the space out, one is inserted and this is causing the citation to span two lines. I am using bibstyle `plain`.


title: \excludecomment and \newcommand using it

text: I have a problem with `\excludecomment` from comment package and a `\newcommand`. The following codes work good, which means, it can generate the desired pdf output.               \documentclass{article}          \usepackage{comment}     \excludecomment{dontshow}          \begin{document}     This is a test.          \begin{dontshow}     test test test     \end{dontshow}          \end{document}      However, if I add the following:               \newcommand{\noshow}[2]{#1=#2 \begin{dontshow}#2=#1\end{dontshow} #1=#2}     \noshow{abc}{def}      It generates an error:               (c:/texlive/2010/texmf-dist/tex/latex/comment/comment.sty     Excluding comment 'comment') Excluding comment 'dontshow' (./test.aux))     Runaway argument?     ! File ended while scanning use of \next.     <inserted text>                      \par      <*> test.tex          ?       How can I use 'comment' in a `\newcommand`?


title: \subsubsection not appearing on document

text: My subsection titles are not appearing on the PDF rendering of my TEX document. Please help. Thank you               \usepackage{setspace}     \doublespacing          \usepackage{titlesec}     \titlespacing{\section}{24pt}{\parskip}{-\parskip}     \titlespacing{\subsection}{24pt}{\parskip}{-\parskip}     \titlespacing{\subsubsection}{24pt}{\parskip}{-\parskip}          \usepackage{fancyhdr}          \author{John Brown}     \affiliation{Brown University}          \title{TITLE HERE}     \shorttitle{SHORTTITLE HERE}               \begin{document}          \maketitle     \pagebreak          \section{Introduction}          \section{Research Data}     \subsection{Behavioural Evidence}     A 2013 study by Albouy et al. analysed the behaviour of amusics compared to controls.     \subsection{Electrophisiological Evidence}     According to Peretz et al. amusics don't show N2 and P3.     \subsection{Neuroimaging Data}     \subsubsection*{Voxel-based morphometry (VBM) Data}     Using VBM, cortical thickness of both control subjects and amusics was measured.           \bibliography{References.bib}     \end{document}


title: How to typeset inclusion arrow?

text: I would like to know what is the best way to do an inclusion arrow, using xy or tikz. I know that there is a command for an arrow, like `\to`, for inclusions, but this is not expansible. What do you use?


title: LyX is leaving a big gap between paragraphs in the place where float (figure) should be

text: I just want to ask about why is LyX leaving a big gap between paragraphs surrounding a figure?. Not all paragraphs, but only between those paragraphs where I inserted a float (figure). The figure is placed somewhere else and all I left with is a big gap! My thesis contains a lot of graphs all of which are floats and I want the figure to appear after the paragraph where it was first mentioned. I don't need big white spaces around the figures or to place a figure alone in a separate page. ![enter image description here](http://i.stack.imgur.com/EgREd.png) Here is what I have in the preamble               \usepackage{cite}     \usepackage[version=3]{mhchem}     \usepackage{setspace}     %\onehalfspacing     \usepackage[bindingoffset=0.5in,margin=1in]{geometry}     \usepackage{ifthen}     \usepackage{graphicx}      \usepackage[section,above]{placeins}     \usepackage{titlesec}     \titleformat{\section}       {\normalfont\fontsize{12pt}{14pt}\selectfont\bfseries}{\thesection}{1em}{}     %\usepackage{setlength}     %\setlength{\intextsep}{-1ex} % remove extra space above and below in-line float     \usepackage[belowskip=-10pt,aboveskip=0pt]{caption}     \raggedbottom % to kill the annoying HUGE whitespace between paragraphs      as you can see from the last line in the preamble, I have tried using `\raggedbottom` to sort out this as recommended in another forum, but had no success. LyX file: Removed as it contains unpublished data.


title: How to align a marginpar with a section title

text: I wish to have brief information in a marginpar (or other solution) that aligns with the corresponding section (not section*) heading. So far the margin information is above or below the section title. When run, the following MWE generates the margin text below the section title.               \documentclass[openany]{book}     \begin{document}     \chapter{Chapter Heading}     \section{Section Heading}\marginpar{\normalfont\normalsize Associated text}     Is it working?     \end{document}      I've searched the interwebs for help. I found Vertical alignment of marginnote and section heading, but this article deals with section*. Alas, perhaps it can't be done... But I hope that it can.


title: Including ToC from second volume in first volume, and vice versa

text: I am preparing a book which will be printed in two separate volumes, and I'd like to show in the ToC the full content in both, either in two separate ToCs (Index for Volume I / Index for Volume II), or as a single ToC where the volume number becomes an unnumbered part which contains chapters and sections for that book. I have looked around, but I can't find an answer. I am using memoir if it makes any difference.


title: Displace element from its computed position

text: Is there some command to wrap around an element `\unknown{<element>}` that gives a way to place an element, say, 5cm above where it would be placed without the `unknown` wrapper, even if it overlaps something as a result. Basically, a command that pushes an element 5cm up in any scenario. My particular use case is that I want to add an x-label to a graph after-the- fact.


title: Use choice key with choices setting booleans

text: When defining choice keys with `l3keys2e` there are two possible ways and I use the one with sub-keys in a new package. When defining watch each value should do `interface3.pdf` says that I can use `.code` which is done for `key-b` in the following example but I’d like to set the booleans directly with `.bool_set` as can be seen in `key-a`. Unfortunatly this doesn’t seem to work: When using `key-a=ch-a` as option the compilation hangs.               \begin{filecontents}{test.sty}     % load xparse and identify package     \RequirePackage{xparse}     \ProvidesExplPackage{test}{2014/05/20}{0}{}          \RequirePackage{l3keys2e}          % define bools for key-b     \bool_new:N \l_test_key_b_a_bool     \bool_new:N \l_test_key_b_b_bool     % define keys     \keys_define:nn { testkeys } {        % this won't work        key-a .choice:,           key-a / ch-a .bool_set:N = \l_test_key_a_a_bool,           key-a / ch-b .bool_set:N = \l_test_key_a_b_bool,        % this will work        key-b .choice:,           key-b / ch-a .code:n = { \bool_set_true:N \l_test_key_b_a_bool },           key-b / ch-b .code:n = { \bool_set_true:N \l_test_key_b_b_bool },     }     \ProcessKeysOptions{ testkeys }          % demo-commands (real life is more complex ...)     \NewDocumentCommand { \getChoiceA } { } {        \bool_if:NT \l_test_key_a_a_bool { ch-a }        \bool_if:NT \l_test_key_a_b_bool { ch-b }     }     \NewDocumentCommand { \getChoiceB } { } {        \bool_if:NT \l_test_key_b_a_bool { ch-a }        \bool_if:NT \l_test_key_b_b_bool { ch-b }     }     \end{filecontents}          %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%          \documentclass{article}          \usepackage[     %   key-a=ch-a,% uncomment this line to see the problem        key-b=ch-a     ]{test}          \begin{document}        Choice of key-a was: \getChoiceA             Choice of key-b was: \getChoiceB     \end{document}      Is it a bug that `.bool_set` can’t be used her or are there some smart considerations I don’t see?


title: Align leaves of a tree

text: I have the following tree in which the left-most leave is out of sync:               \documentclass{minimal}          \usepackage{tikz-qtree}          \begin{document}          \begin{tikzpicture}     \tikzset{level 1+/.style={level distance=3\baselineskip}}     \tikzset{level 2+/.style={level distance=2\baselineskip}}     \tikzset{frontier/.style={distance from root=8\baselineskip}}     \tikzset{every tree node/.style={align=left, anchor=north}}     \tikzset{every leaf node/.append style={text depth=0pt}}     \Tree[.S            [.NP er\\he ]            [.NP              [.Det das\\the ]              [.N Buch\\book ] ]            [.NP              [.Det der\\the ]              [.N Frau\\woman ] ]            [.V gibt\\gives ] ]     \end{tikzpicture}          \end{document}      I followed aligning several trees to the baseline and added `\tikzset{every leaf node/.append style={text depth=0pt}}`, but this does not have any effect.


title: Automatically insert a \newpage after chapter headings

text: I'm writing a book using `memoir`, and I'd like each chapter's text to begin on a new page after the chapter headings (so each chapter heading stands on a page by itself). Is there a way to make this automatic, so I don't have to add the `\newpage` command after each instance of `\chapter{}`? I tried `\renewcommand{\chapter{}}{\chapter{} \newpage}`, but it doesn't seem to work... Here is my MWE as it stands with my current chapter header customizations:               \documentclass{memoir}     \usepackage[american]{babel}          % Chapter headers customize     \setsecnumdepth{none}     \setlength\beforechapskip{6\baselineskip}     \renewcommand*{\chaptitlefont}{\sffamily \HUGE \bfseries}          \begin{document}     \chapter{Chapter 1}     My text.     \end{document}


title: numbering paragraph in each section

text: I wish to number the paragraph in each section, the number format is like (section number, paragraph number). for example               Section 1     1.1 subsection          1.2 subsection          (1.1) blah blah paragraph     (1.2) blah blah paragraph     (1.3) blah blah paragraph     1.3 subsection     (1.4) blah blah paragraph          Section 2     2.1 subsection     (2.1) blah blah paragraph     (2.2) blah blah paragraph     2.2 subsection     (2.3) blah blah paragraph      note that the prargraph number alway reset at each section. So far my method is               \newcounter{parnum}     \newcommand{\N}{%        \noindent\refstepcounter{parnum}%         \makebox[\parindent][l]{\textbf{(\thechapter.\arabic{parnum}\space}}}      But apparently this method do not reset the paragraph number at each section. How should I improve this. Thanks!


title: Missing font moving from writeLaTeX to PCTex

text: I'm working to take a document developed in writeLaTeX and typeset it using PCTex. When I do that I get the error: "No font mapping entry for font: ecrm0900" Is there a file I'm missing?


title: 'Wordart' in (La)TeX

text: Would it be feasible to try to reproduce something like the image below in TeX? I just wanted to ask the advice of some experts before I invested too much time trying. I've already messed around with `\raise` and `\lower`, but I can't get the lines to overlap. For horizontally stretching the font I've used `\resizebox` of the package `graphicx`. Maybe there are better ways? Btw, the example below was made using Inkscape and is suppose to be read as 'Lorem of Ipsum and Dolor'. ![Example of desired result](http://i.stack.imgur.com/zY0rA.png) P.S: I'm not sure which tags to use, so feel free to add or change them.


title: About autocompletion on TeXmaker and other LaTeX editor

text: I'm learning to use Texmaker to compile LaTeX document recently, but my problem is when Texmaker auto-complete a command, such as `\frac`, it usually add `{}` automatically and I have to use the arrow keys or mouse to navigate out of the braces. I really would like to know is there config Texmaker to allow me to use `Tab` key to jump from braces? or is there any LaTeX editor which allow me to do so?


title: Bold sans-serif font in LaTeX

text: How can one format a chapter or section heading in **bold** using a sans-serif font? I tried `\textsf{\textbf{bold sans-serif text}}`, but it does not seem to work. Any idea?


title: Querying a SharePoint list and typesetting the response with LuaLaTeX

text: I would like to generate some reports from data stored in SharePoint lists. It is possible to query the lists using web services and retrieve the data in a xml data format. For example, sending a request to my SharePoint site using the following `curl` commad               curl --ntlm --user "user:pass" -H "Content-Type: text/xml;charset=UTF-8" --data @request.txt --output answer.txt http://intranet/_vti_bin/lists.asmx      With a `request.txt` file containing               <?xml version="1.0" encoding="utf-8"?>     <soap12:Envelope          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"          xmlns:xsd="http://www.w3.org/2001/XMLSchema"         xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">         <soap12:Body>             <GetListItems xmlns="http://schemas.microsoft.com/sharepoint/soap/">                 <listName>Test</listName>                 <query>                     <Query>                         <Where>                             <IsNotNull>                                 <FieldRef Name="Title" />                             </IsNotNull>                         </Where>                     </Query>                 </query>                 <viewFields>                     <ViewFields>                         <FieldRef Name='Title' />                         <FieldRef Name='Day' />                     </ViewFields>                 </viewFields>                 <QueryOptions>                     <IncludeMandatoryColumns>FALSE</IncludeMandatoryColumns>                     <ViewFieldsOnly>TRUE</ViewFieldsOnly>                 </QueryOptions>             </GetListItems>         </soap12:Body>     </soap12:Envelope>      returns an answer from my test list in SharePoint:               <?xml version="1.0" encoding="utf-8"?>     <soap:Envelope          xmlns:soap="http://www.w3.org/2003/05/soap-envelope"          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"          xmlns:xsd="http://www.w3.org/2001/XMLSchema">             <soap:Body>             <GetListItemsResponse xmlns="http://schemas.microsoft.com/sharepoint/soap/">                 <GetListItemsResult>                     <listitems                          xmlns:s='uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882'                         xmlns:dt='uuid:C2F41010-65B3-11d1-A29F-00AA00C14882'                         xmlns:rs='urn:schemas-microsoft-com:rowset'                         xmlns:z='#RowsetSchema'>                         <rs:data ItemCount="3">                             <z:row ows_Title='Yesterday' ows_Day='2014-04-13 00:00:00' />                             <z:row ows_Title='Today' ows_Day='2014-04-14 00:00:00' />                             <z:row ows_Title='Tomorrow' ows_Day='2014-04-15 00:00:00' />                         </rs:data>                     </listitems>                 </GetListItemsResult>             </GetListItemsResponse>         </soap:Body>     </soap:Envelope>      Is it possible to send such a request directly from LuaLaTeX and process the response as part of the typesetting process? I know I can write the request to a file using the `filecontents` package and wrap the `curl` call in `\immediate\write18{curl ...}` but I was wondering if a better way exists that take advantage of additional features from LuaLaTeX? From Google I have found that LuaTeX has `luasocket` build in, and `luaxml` from the `odsfile` package also seems relevant. However, I have no idea how to start using these tools. Therefore my question: Is it possible to query a SharePoint list (or some other web service that returns data in xml format) and parse the result using LuaLaTeX?


title: Biblatex doesn't produce spaces between citations with footcite or footcites

text: When I use \footcites for multiple citations, I get a semicolon delimited list of citations, but I don't get any space.![an example of a poorly formatted citation](http://i.stack.imgur.com/cvrQj.png) In what may be a related problem, if I use the prenote field in \footcite, I similarly do not get a space between the prenote and the citation. (I've worked around this by using a citation command within \footnote.) These are my biblatex macros:               \RequirePackage[style=historian,autopunct=true,abbreviate=false,citestyle=verbose-ibid,bibstyle=historian,backend=biber,isbn=false,language=american,sorting=nyt,pagetracker=false,printseries=true]{biblatex}     \DefineBibliographyStrings{american}{%         namedash={---------},%         volumeof={of},         editor={Edited by},         translator={Translated by},         ibidem={Ibid.},         phdthesis={Ph.D. diss.,}     }     \DeclareNameAlias{labelname}{first-last}


title: How can I indent the paragraphs which follow a heading?

text: I am trying to write a text where the first line of each paragraph has an indent(tab). But for some reason, in a chapter or a section or subsection, except the first paragraph, the rest of the paragraphs have an indent(tab). Is there any way to add an indent to the first paragraph in a chapter or section or subsection?


title: Paragraph after \section doesn't indent

text: > **Possible Duplicate:**   >  How can I indent the paragraphs which follow a heading? I want to ask why "Hello!" doesn't indent.               % work1.tex     \documentclass{article}     \begin{document}        \section{Introduction}             Hello!             Hi          \end{document}


title: Why does indentation immediately after a section heading not work?

text: When I start a section and attempt to indent the first paragraph with `\indent`, the command has no effect:               \documentclass{article}               \begin{document}            % Section 0              \indent Paragraph 1. % indented              \noindent Paragraph 2.            \section{Section 1}              \indent Paragraph 1. % not indented              \noindent Paragraph 2.            \section{Section 2}              \leavevmode\indent Paragraph 1. % indented              \noindent Paragraph 2.          \end{document}      I found that `\leavevmode\indent` solves the problem (as does `\indent\indent`), but why is this happening in the first place?


title: first line of section/subsection has no indentation

text: > **Possible Duplicate:**   >  How can I indent the paragraphs which follow a heading?                           \tableofcontents             \pagestyle{empty}                  \newpage                  \section{intro}             \setcounter{page}{1}             \subsection{sub}        First text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text          \\        Second text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text              \subsection{sub}             \subsection{sub}      Basically that's my code and what happens when I generate the pdf is that where it says "first" no indendation appears, despite me trying to use `\indent`. However, where it says "second" the indentation works. I've tried `\paragraph` and it doesn't help.


title: Changing text below \section to be indented

text: > **Possible Duplicate:**   >  How can I indent the paragraphs which follow a heading? I'm using the report class in LaTeX and when I use, say               \section{Foo}     This is a section about Foo.      I get (arrows indicate white space) > 1.1 -> Foo > > This is a section about Foo. When what I REALLY want (don't judge me, I just do) is: > 1.1 -> Foo > > \----> This is a section about Foo. (i.e. the text "This is a section about Foo" is vertically aligned with Foo, not with 1.1. I also want the rest of the paragraph indented across (not just the first line).) How do I do this?


title: In a tabular, how do I reduce the vertical space in a wrapped text?

text: In a tabular, I am using the commands that allows you to wrap your text:               \begin{tabular}{m{5cm} m{13cm} m{5cm}}      but I would like to change the vertical space between the different lines of the wrapped up text: that is, if I write               \documentclass[a4paper]{slides}          \usepackage[landscape,top=0.01pt, bottom=0.01pt, left=0.01pt, right=0.01pt]{geometry}     \usepackage{array}          \begin{document}     \begin{tabular}{m{5cm} m{13cm} m{5cm}}       \large{Journee} & \huge{Le Tour de France des dechiffreurs} & Confer'ENS      \end{tabular}     \end{document}      I want the space between the different lines of "Le tour de France des Dechiffreurs" to be smaller. Anyone knows how to do this?


title: Line spacing with mixed font sizes in itemize environment

text: I'd like to mix in footnote-sized text with normal-sized text in `beamer`. The problem is that when I use `\footnotesize` the line spacing still corresponds to `\normalsize` spacing. Here's a minimal sample document demonstrating the problem:               \documentclass{beamer}     \begin{document}     \begin{frame}{Line spacing for footnote-sized text in itemize environment}     Problem: footnote-sized text still has normal-sized line spacing.         \begin{itemize}         \item The problem is below:\\          \footnotesize This is some footnote-sized text. When it wraps around it still has normal-sized line spacing.      \normalsize         \item Some other items for comparison         \item I would like the footnote-sized text to have single spacing relative to the footnote size.          \end{itemize}     \end{frame}     \end{document}      I was hoping to use the footnote-sized text to write parenthetical comments in a way which visually distinguishes them from the main items in the list.


title: Difference between ProTeXt-3.1.3-060313.exe and protext.exe?

text: I want to download the necessary software to use LATEX. There are three files presented at http://get- software.net/systems/windows/protext/ Two of the files, which are each about 1.6 GB, are named ProTeXt-3.1.3-060313.exe and protext.exe. Does it matter which one I choose? What is the difference? Also, what is the purpose of the third file, named ProTeXt-3.1.3-060313.exe.md5, which is only 59 bytes?


title: Problem in StatWeave

text: I visited http://www.stat.uiowa.edu/~rlenth/StatWeave/ and installed StatWeave according to the instructions. But my problem is that there are no Step by Step instructions given in the manual, and also that example .tex files are not provided so that I can check it. Test files are given with .odt and .swv extensions, and I don't know how to use them in the StatWeave. Any suggestions?


title: How to automate introduction of section titles in book

text: I'm using Spundun's method for automating inputing the entries in a diary, in turn inspired by Peter Grill (Using LaTeX to keep a diary), and I would like to add section dividers by year. This should be easily achieved by introducing an if-then clause with an existential quantifier in it, but I don't know how to do this. _Clarification about directory structure:_ The directory is of the form /Year/Month/Day.tex (e.g. 2014/Jan/25.tex), and each of the entries starts with \mytitle{Title}. The main .tex file is in the father directory of \Year. _How I think this could be solved:_ I thought one way to do what I want would be to introduce a clause like the following: for every /year, if there's a file in /Year/Month, input the file /Year.tex --which would include only a line: \section{Year} (say \section{2014}). Unfortunately, I'm not familiar enough with LaTeX to implement the solution. Here's the code I'm using:               \documentclass{tufte-book}     \usepackage{tikz}     \usepackage{xifthen}          \title{Title}     \author{Author}          \newenvironment{loggentry}[2]%date, heading     {\noindent\textbf{#2}\marginnote{#1}\par}{\vspace{0.5cm}}          \def\?#1{}          \pgfmathtruncatemacro{\StartYear}{2014}     \pgfmathtruncatemacro{\EndYear}{2016}          \newcommand{\writetitle}{0}     \newcommand{\mytitle}[1]     {   \ifthenelse{\writetitle=1}{#1}{}     }          \newread\mysource          \begin{document}     \maketitle          \foreach \Year in {\StartYear,...,\EndYear}     {   \foreach \Month in {Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec}         {   \foreach \Day in {1,...,31}         {       \openin\mysource=\Year/\Month/\Day.tex                     \read\mysource to \firstline                     \closein\mysource                     \xdef\writetitle{1}                     \begin{loggentry}{\Year - \Month - \Day}{\firstline}                             \xdef\writetitle{0}                         \input{\Year/\Month/\Day}                     \end{loggentry}          }         {   % files does not exist, so nothing to do         }              }         }     }          \end{document}      Here's what I would like the result to look like: ![journal](http://i.stack.imgur.com/SaSpH.png) Thanks!


title: How to create a list like description environment?

text: > **Possible Duplicate:**   >  Add bullet points to description lists I want to create a new environment, called `usecase` that will function like `description` environment:               \begin{usecase}        \item[Request item] Item is requested        \item[Response] System returns requested item     \end{usecase}      And I want it to look like a regular billeted list with italicized terms, the same as the result of this code:               \begin{enumerate}       \item \emph{Request item} Item is requested       \item \emph{Response] System returns requested item     \end{enumerate}      However, I am not sure how to get to the argument of the `item`, e.g. "Request item". Thanks


title: enumitem: newlist with description and bullet

text: I've seen quite a few questions here on how to use `enumitem` with descriptions and bullets. I couldn't however find a solution where they created a `newlist` and that's where I have my problem: I defined in the preamble               \usepackage{enumitem}     \newlist{codescription}{description}{1}     \setlist[codescription]{label=\textbullet}      And then in the document               \begin{codescription}     \item[title] test2     \end{codescription}      But even this small example (I was actually trying to set the font of the description element to a monospaced font) doesn't work. Did I get something completely wrong?


title: TeX Live OS X users: testing needed for "download on the fly" script?

text: Not sure if this is a strictly appropriate question (I hope so, because it has to do with TeX-related tools) but I need to know whether or not my texliveonfly.py script runs successfully on OS X. Unfortunately, I don't have access to a mac, or I would test it myself! While it seems theoretically solid, I need practical test results before submitting the update to CTAN. Steps to testing: 0) ~~Please make sure you have python 3 (can be downloadedhere).~~ Python 2 should be available by default (though feel free to try using python 3 as well). 1) Right click and save this link as texliveonfly.py and make sure the file is executable. (Addendum: if you just want to read the script, see here.) *Update: Script is now version 1.10 and should graphically prompt you for the admin password. Furthermore, run with option **\--speech_when=always** to test the speech-synthesized notifications.* 2) Create a minimal .tex file of the following form (though, of course, you should feel free to test with arbitrary .tex files):               \documentclass{memoir}          \usepackage{package(s) you have not yet downloaded}     \usepackage{package(s) you have not yet downloaded}          \begin{document}     placeholder     \end{document}      3) Run the command `texliveonfly.py yourfilename.tex` in a terminal (once assuring everything's in the same folder, of course). * * * Expected output: new terminals should pop up, at least one asking your sudo password in order to perform updates. The new terminals should quit when they're done. Most will start with text similar to:               This is texliveonfly.py's 'install packages on the fly' feature.     -------------          Attempting to install LaTeX packages [packagenames].      The terminals might take 3-20 seconds to pop up, depending on internet connection (the tlmgr repository access is slower than you're used to). Several may pop up in total, because what the script does is keeps recompiling and searching for missing package errors until there are none left. * * * Should the script fail to update packages or for whatever reason, please paste its terminal output somewhere (if it's too long, perhaps on pastebin!) If the applescript command is somehow messed up (unlikely), there is also the possibility of an infinite loop. Just Ctl + C or kill your terminal if that's the case, though please wait a while to allow for repository lag. (As of version 1.00, the default compiler is now the more mainstream "pdflatex". You can change it by, for example, `texliveonfly.py --compiler=lualatex yourfilename.tex`). * * * Additional things you can test for, if you're feeling eager:   1. The script should allow you to interact with the compiler when you don't pass `-interaction=nonstopmode`. You can do this by setting `--arguments=""` in the texliveonfly.py command.   2. The script should provide (with a few added lines) the same terminal output as your compiler. And finally, the ultimate test:   3. The script should allow you to, starting from a minimal TeX Live installation, download precisely the additional packages you require.


title: What is the "simplest" to install restructured-text to TeX software (for windows)

text: I am looking for a simple software (for windows) that can turn the reStructured-text format into TeX. "Simple" to install means that you can basically unzip a file with the software, and you could then run in CMD something like:               reST2TeX.exe input.reST output.tex      And it would work. I know of docutil, but I want something that doesn't first require me to download python just to compile it. Something more like tth for TeX -> HTML.


title: TikZ: how to find the intersection of two extended lines?

text: From How to draw a line passing through a point and perpendicular to another? I learned to use `shorten` to extend lines. But the extended part doesn't seem to "really exist". For example, I would like to connect two predefined dots and extend the line segment by 1cm and then define the new end as "C" for later use. But `\draw[shorten >=-1cm] (A) -- (B) coordinate (C)` will only give me a C which is actually still B. What I really need to do is to find the intersection of two extended lines, but I think the tough part is to make the extended lines "real".


title: About LaTeX for a beginner

text: Hullo, Im just starting up with LaTeX. I keep getting error messages even though I feel as though everything has been done correctly. I am just doing the intro exercise which is shown from the help tab from my MikTeX install. I am getting errors like article.cls not found. Can I download a LaTeX editor from somewhere, or is the MikTeX which I installed mising some files. Can someone please help me?


title: Is there a way to tell LaTeX to use smaller margins without setting an absolute margin length?

text: So, I generally like letting LaTeX make most of my typesetting decisions for me--- it generally knows what is typographically "good" better than I do. One area I just haven't been able to turn control over to LaTeX for is margin size. As has been noted before, the default margins are fairly large in LaTeX. I understand that this is so in order to allow for a reasonable number of characters per line (I've seen 60-80 characters frequently quoted as the target range). Currently, I am just setting exact margins with geometry (e.g., with `\usepackage[margin=1in]{geometry}` in the preamble, because 60 characters is just too strange looking for me. Lines of around 80 characters I'm fine with, though. Is there any way to tell LaTeX to set the margins larger without having to fix an absolute length (like 1 inch above)? Say by telling LaTeX to aim more for the 80 character-per-line limit?


title: TikZ: clipping nodes outside current picture

text: I would like to clip a node that is outside the current picture. (I do this so that I can re-use a relatively complicated TikZ picture that I use several times in different places.) I can't get it to work, however. The MWE is:               \documentclass[10pt]{standalone}          \usepackage{tikz}          \begin{document}          \begin{tikzpicture}      \draw[clip] (0,0) circle (1cm);     \end{tikzpicture}          \begin{tikzpicture}       \fill[red] (1,0) circle (1cm);     \end{tikzpicture}          \end{document}      I would like to achieve the same effect as if I had a single tikzpicture environment and moved the fill command just below the draw command:               \begin{tikzpicture}     \draw[clip] (0,0) circle (1cm);     \fill[red] (1,0) circle (1cm);     \end{tikzpicture}      I tried the "remember picture" option without success. If this cannot be made to work, I can refactor my TikZ picture and use the \input command. Thanks for any help.


title: Beamer - Put a picture right of the table of contents

text: I have problems to put a picture right to the table of contents. This is how it should look like: ![enter image description here](http://i.stack.imgur.com/xW3xK.png) I have two MWE's, becuase I already tried two different approaches. (All the empty frames are needed to create the TOC) The first one works with columns:               \documentclass{beamer}     \begin{document}     \begin{frame}         \begin{columns}             \column{7cm}                 \tableofcontents             \column{3cm}                 \includegraphics{picture.png}         \end{columns}     \end{frame}     \section{A section with a name}     \begin{frame}     \end{frame}     \section{A longer section name, ....................}     \begin{frame}     \end{frame}     \section{another section}     \begin{frame}     \end{frame}     \section{a medium long section name}     \begin{frame}     \end{frame}     \end{document}      In this approach the `vspace` between the items in the TOC disappears. This is my second approach:               \documentclass{beamer}     \begin{document}     \begin{frame}         \hspace{7cm}\includegraphics{picture.png}         \tableofcontents     \end{frame}     \section{A section with a name}     \begin{frame}     \end{frame}     \section{A longer section name, ....................}     \begin{frame}     \end{frame}     \section{another section}     \begin{frame}     \end{frame}     \section{a medium long section name}     \begin{frame}     \end{frame}     \end{document}      People more experienced than me already know what happens before compiling. The TOC is shifted down. I already thought about using this solution: Backround in TOC with beamer But that wouldn't be a nice solution, becauase I would have to create a whole background image, just to insert one little picture. There must be a better solution. Is here anyone who knows it?


title: How can I make vfill to work without adding any text before?

text: Using `\vfill` between two texts works:               \newpage     bla     \vfill     blabla      but it doesn't work if there is no text before it:               \newpage     \vfill     blabla      How can this be achieved?


title: Modifying toc & bib titles

text: I would like to `\flushright` the toc's and bibliography's title, but the font size and spaces above and below should be the same as for regular chapters. Here is what I did:               \documentclass{report}     \usepackage{titlesec}     \usepackage[titles]{tocloft}          \titlespacing*{\chapter}{0pt}{-20pt}{20pt}     \titleformat{\chapter}{\Large\bfseries}{}{0pt}{}{}          \begin{document}          {\titleformat{\chapter}{\Large\bfseries}{}{0pt}{\flushright}{}\tableofcontents}     \chapter{First line of title\\second line of title}          \end{document}      There are two issues I cannot solve:   1. The toc's title is aligned with the second line of the chapter's title, and I would like it to be so with the first   2. A minor issue, but when calling the scope limited `\titleformat` I have to redefine the title's format, can that be avoided?


title: How to find out the counter of theorems etc. in LyX

text: I have a document that has a lot of theorems - all introduced in LyX via the "Theorems"-Module (for those who don't know LyX, that means, that I didn't define my own theorem environment via `\newtheorem`..., LyX did!). Now I want do to reference to some of my theorems. As far as I know, this is done by giving the theorem I want to reference a label and then using `\hyperref[LABEL]{TEXT}`, where "TEXT" is then the colored link to the theorem (somehow `\ref` isn't working in LyX, if anyone is wondering why `hyperref`). And now my question comes in: I need a command that somehow returns the number of the theorem (all my theorem are numbered continuously with one number through the whole text) that has the label "LABEL" - like `\findnumber{LABEL}` \- so that I can use `\hyperref[LABEL]{\findnumber{LABEL}}`. Thus, if I add another theorem the number that is the link to that theorem also changes. I don't know if this solution is the "correct" one. If it isn't, please let me know.


title: Putting an equation with a long tag on a single line

text: I m trying to put this equation with the author tag (Oppenheimer & Volkoff 1939) but the tag is too large to fit in one line. how do I put the equation and then the tag on the right side fitting in one line ?               \frac {dP}{dr}=- \frac {(P+\rho c^2 )\nu '} {2} \tag {Oppenheimer & volkoff 1939}      * * *               \documentclass[12pt,a4paper]{article}     \usepackage[a4paper, total={6in, 8in}]{geometry}         \usepackage[utf8]{inputenc}         \usepackage[T1]{fontenc}         \usepackage{fourier}     \begin {document}     \frac {dP}{dr}=\frac {-(P+\rho c^2 )\nu '} {2} \tag {Oppenheimer \& Volkoff 1939          \end{document}        and it's simply not working.


title: Matrices as labels in xymatrix

text: How can I use a matrix as label in the `xymatrix` environment? I tried to nest matrices (naively) but it seems to be rather complicated.               \xymatrix{     A \ar[r]^{\xymatrix{f \\ g}} & B     }


title: How to present source code RDF/Notation 3 in LaTeX?

text: I give a second try to present RDF in Notation 3 serialization in LaTeX. I tried with the `listings` package but its not so nice the restuls for the eye- there is much spacing between the letters, the font is not so ok,...So, can you suggest better way to present the code from your own experience presenting rdf/notation3 in LaTeX? I spend much time solving this problem but..... **SOLVED** with help of you guys. Solution:               \usepackage[T1]{fontenc}     \usepackage[scaled=0.9]{beramono}     \usepackage{microtype}     \newcommand\Small{\fontsize{8}{10}\selectfont}     \newcommand*\LSTfont{%       \Small\ttfamily\SetTracking{encoding=*}{-50}\lsstyle}          ...          \lstset{ basicstyle=\LSTfont, columns=fullflexible, xleftmargin=5mm, framexleftmargin=5mm, numbers=left, stepnumber=1, breaklines=true, breakatwhitespace=false, numberstyle=\footnotesize, numbersep=5pt, tabsize=2, frame=lines, captionpos=b, caption={Your caption}}         \lstinputlisting{Code.n3}      Cheers, Milan


title: Trying to replicate a table from academic paper

text: I have this table: ![enter image description here](http://i.stack.imgur.com/6Wr7r.png) I'm trying to replicate something like this table: ![enter image description here](http://i.stack.imgur.com/Gsubh.png) The main things that I wish to replicate are (i) How the text is appended very neatly to the top and bottom of the table (ii) The table is the exact same width of the text on the page (iii) The width of the columns (which space between columns) seems to have automatically widened to fill up the page width. My code for my table is the following:               \documentclass[a4paper,11pt]{article}     \begin{document}          \begin{table}[h]     \begin{center} {\footnotesize     \begin{tabular}{lccc}     \hline      & \multicolumn{3}{c}{AFC Window 1}  \\       & \multicolumn{1}{c}{gmt} & \multicolumn{1}{c}{jfk} &     \multicolumn{1}{c}{fbi}\\\hline     & $0.025^*$ & -0.002 & $1.155^*$ \\[-2ex]     \raisebox{2ex}{Constant} & (1.22) & (2.22) & (0.56)\\[0ex]     & $0.025^*$ & -0.002 & $1.155^*$ \\[-2ex]     \raisebox{2ex}{Constant} & (1.22) & (2.22) & (0.56)\\[0ex]     & $0.025^*$ & -0.002 & $1.155^*$ \\[-2ex]     \raisebox{2ex}{Log(assets)$^a$} & (1.22) & (2.22) & (0.56)\\[0ex]     \hline     \end{tabular} }     \end{center}     \caption{\footnotesize Number of turns and distance between top and bottom.}     \label{turns}     \end{table}          \end{document}      I really have no idea how to proceed.


title: Why does \DTLgetkeyforcolumn not work?

text: I'm currently learning how to use the `datatool` package. I have a lot of `.txt`-files that need to be processed automatically. But if `datatool` loads a wrong kind of `.txt`-file I need to be able to check it. The way I want to do it is to check the key's of the columns, but the command `\DTLgetkeyforcolumn` returns the error:               Undefined control sequence.     <argument> \db@row@id@w          l.58 \DTLgetkeyforcolumn{\colkey}{data}{1}      I have absolutely no clue what that means... The source code can be found in the `datatool` manual. Search for the function and you will get to it. I really don't understand it, and can't see anywhere `\db@row@id@w`. Could it be a bug in the package? Trying to redefine the function only results in errors. Edit:   **Minimal working example:**               \documentclass{article}          \usepackage{datatool}     \DTLloadrawdb{data}{data.txt} %load data.txt, store in database data          \begin{document}       % Display the table, bold are the headers       \DTLdisplaydb{data}            % Search for header ColTwo and store index into \colindex       \DTLgetcolumnindex{\colindex}{data}{ColTwo}       \colindex % returns 2            % Search the index and store the header into \colkey       \DTLgetkeyforcolumn{\colkey}{data}{\colindex} % Error       \colkey          \end{document}      **data.txt**               ColOne,ColTwo,ColThree     a,b,2     c,d,5      Gives no output at all.


title: Diacritics inside an Epigraph in LyX

text: I can use letters marked with diacritics in most parts of my document. Now, I'm making an epigraph               \epigraph{,evlos t'nac uoy melborp a si ereht fI''\\     ''.ti dnif :evlos nac uoy melborp reisae na si ereht neht}{aylóP egroeG}      (the quote is written in reverse because I'm using LyX in Hebrew and that's the way to make it write left-to-right in an ERT). Anyway, it doesn't compile. It does compile if I remove the 'ó'. The error is: > Could not find LaTeX command for character 'ó' (code point 0xf3). And its description is: > Some characters of your document are probably not representable in the > chosen encoding. Changing the document encoding to utf8 could help. Changing to utf8 _does_ help if I don't use Hebrew in my document. The way I did it is through Document->Settings->Language->Encoding->Unicode (utf8). But, if I do write anything in Hebrew in the document, then changing to utf8 causes the following error (per Hebrew character): > Package inputenc Error: Unicode Character '\u8' not set up for use in LaTeX.


title: How to check proper nesting of heading levels

text: How can we check that heading levels in a LaTeX file are coming in sequence, i.e., `\section`, `\subsection`, `\subsubsection`, `\paragraph` and `\subparagraph`. How to catch if `\section` is followed by `\subsubsection` or `\subsection` is followed by `\paragraph` etc.


title: Is there a LaTeX package for conference event programs?

text: I'm helping to organize a symposium, and I'd like to generate the event programs with LaTeX. Is there an appropriate package for this, or should I do it by hand? Thanks in advance!


title: Texstudio: modify size of line numbers

text: With more than 1000 lines the line numbering in Texstudio 2.7.0 takes up a sizeable chunk of my display. I already discovered that it's possible to disable the line numbers in `Options -> Advanced Editor -> Appearance -> Line Numbers` in this thread. But what i'd really like would be to make the number or column smaller (for exampling when i'm working in the sub 1000 line range it could be one character smaller). Is there a way to make the line numbering smaller? (for example via fontsize?)


title: Numbered examples in linguistics that I can refer back to

text: I do linguistics and I'm looking for a way to enumerate language examples that lets me reference to them in the text.                     (1) This is an example.          Sentence \ref{...} provides a good example of basic English.      Bonus points if it's usable with `\item`, which makes it easy to use with `org-mode`.


title: The § character

text: I need information about § character. I have seen it used for numbering (equivalent to nº) and as a separator. Which is its name or code? Where can it be used?


title: Box around minted environment

text: I'm using the minted package to produce nice looking java-code but I would like to make a box around the code so it is easier to separate the code from the rest of the document. What is the easiest way to do this? Here is an example of my document. I'd like the java-code to be inside a box. : ![enter image description here](http://i.imgur.com/7BST4zo.jpg) * * * Thanks for the suggestions. Torbjørn T's solution seems to work perfect but some of my code is too wide for the normal width defined by the margins. The minted environment is ignoring the margins (I can't really decide wether or not this is a bad thing) but the frame produced by minted follows the margin- rule. Would it be best to make the frame ignore the margins or make my code fit into the box (which probably will look pretty stupid with those lines consisting of a few words)? ![enter image description here](http://i.imgur.com/7BST4zo.jpg)


title: install packages in ubuntu

text: I wonder if there is a convenient way to install packages on Ubuntu, except through `tlmgr`. I cannot find many packages with `apt-get install` texlive- package, don't know why. As for manual installation, it's too complicated and since the packages have all different files (.ino .sty .dtx...). I don't know what to do. Thanks.


title: “Literal” and numerical numbering of chapters

text: I ask another question related to this one "Literal" numbering of chapters but not in contents which was not "precise"... This question is the exact one, with an example... This example gives me chapters "one" and "two" in the first pages of chapters (and this is what I want), and in the contents "1" and "two" (and this isn't what I want..). I want to obtain the same thing in the text but, in the contents, "1" and "2".. Then how to change the chapterhead, to be numeric.. I want it "1.1" for the section 1 not "one.1" like in my example. I write all the packages for preventing eventual conflicts because I use all this packages in my book (of probability in arabic)...                   \documentclass[14pt,a4paper]{extbook}%{article}%              \usepackage{titletoc}         \usepackage{etoolbox}         \usepackage{multicol}         \usepackage{amsmath,amssymb}         \usepackage[most]{tcolorbox}         \usepackage{boxedminipage}         \usepackage{slashbox}         \usepackage{titlesec}         \usepackage{enumitem}         \usepackage{minitoc}         \usepackage{rotating}         \usepackage{fmultico}         \setlength{\columnseprule}{0.1pt}         \usepackage{fancyhdr}         \pagestyle{fancy}         \usepackage{pdflscape}         \usepackage{array}              \usepackage{polyglossia}         \setmainlanguage{english}         \setotherlanguage[numerals=maghrib]{arabic}              \makeatletter         \let\old@makechapterhead\@makechapterhead         \def\@makechapterhead{\def\thechapter{\words{chapter}}\old@makechapterhead}         \makeatother              \newcommand\words[1]{\expandafter\xwords\csname c@#1\endcsname}         \def\xwords#1{\ifcase#1\or         one\or                   two\or                   three\or                         \else             I need more words\fi}                   \begin{document}         \tableofcontents         \chapter{Simulation}         \section{Introduction 1}          Simulation         \section{Introduction 2}          \chapter{Simulation}           Simulation          \end{document}


title: Modifying \part style in KOMA

text: I've got the design for `part` style in my KOMA document. It requires:   * removing "Part" text   * changing font   * flushing text to bottom right. I have already done some reading, removed "Part" text and changed font. But I have no idea how to make text flush to bottom right. Please, can you help me with this? MWE:               \documentclass[11pt]{scrbook}     \usepackage{newtxtext}     \usepackage{xcolor}     \usepackage[paperwidth=210mm,paperheight=235mm,top=20mm,bottom=25mm,inner=25mm,outer=65mm,marginparsep=7mm,marginparwidth=48mm,headsep=4mm,headheight=6mm]{geometry}          \definecolor{basic}{cmyk}{1.0,0.7,0.5,0}     \setkomafont{disposition}{\rmfamily}     \setkomafont{part}{\fontsize{36pt}{36pt}\selectfont\color{basic}}     \setkomafont{partnumber}{\fontsize{36pt}{36pt}\selectfont\color{basic}}     \renewcommand*{\partformat}{\thepart.}          \begin{document}          \part{Teorija in problemi}          \end{document}      Result: ![enter image description here](http://i.stack.imgur.com/njWnd.png)Design: ![enter image description here](http://i.stack.imgur.com/7lnnA.png)


title: Producing doc/docx from LaTeX

text: Is there any way to produce doc/docx files from LaTeX?


title: Latex unable to recognize Fontin fonts

text: I am trying to adapt the following to my needs - https://www.sharelatex.com/templates/cv/professional_cv/ I am using Lyx, on Ubuntu 12.04.   * the .fonts folder in my home directory contains  a) .otf fonts - Fontin.otf, Fontin-SmallCaps.otf, Fontin-Bold.otf, Fontin- Italian.otf b) .ttf fonts - Fontin-Regular.ttf, Fontin-SmallCaps.ttf, Fontin-Bold.ttf, Fontin-Italian.ttf   * the folder /usr/share/fonts/truetype contains all the fonts in (b) above and /usr/share/fonts/opentype contains all the fonts in (a) above. When i try to compile cv.tex file in the above mentioned link in lyx using Xetex, i get the following error: > ! Font \zf@basefont=Fontin.otf at 10.0pt not loadable: Metric (TFM) file or > installed font not found. > > ! Undefined control sequence. > > ! Font \zf@basefont=Fontin.otf at 10.0pt not loadable: Metric (TFM) file or > installed font not found. > > ! Font \@tempfontb=Fontin.otf at 10.0pt not loadable: Metric (TFM) file or > installed font not found. > > ! Font \@tempfontb=Fontin-Bold.otf at 10.0pt not loadable: Metric (TFM) file > or installed font not found. > > ! Font EU1/Fontin.otf(0)/m/n/12=Fontin.otf:mapping=tex-text; at 12.0pt not > loadble: Metric (TFM) file or installed font not found. > > ..... > > ! Font \zf@basefont=[ at 10.0pt not loadable: Metric (TFM) file or installed > fo nt not found. > > ! Font \@tempfontb=[ at 10.0pt not loadable: Metric (TFM) file or installed > fon t not found. > > ... and so on. What should i do? Please help. I have spent many hours and tried all solutions on the net, but none are working.


title: Color Code for Warsaw (Upper Right Corner)

text: > **Possible Duplicate:**   >  In beamer use colors that are already defined in a given color scheme In the `warsaw` theme, under the default color scheme, in the upper right corner the color is blue / purple. How do I extract this color code? I want to use it in `/setbeamercolor{frametitle}{fg=white, bg=unknown_color_code}`. Basically, I will be replacing `unknown_color_code` with whatever color is in the upper right.


title: Removing ligatures when using fontspec

text: This is a follow-up question to Currency symbol: French franc. Consider the following code:               \documentclass{article}     \usepackage{fontspec}     \usepackage{siunitx}          \DeclareRobustCommand*{\myfranc}{%       \begingroup         \fontspec{FreeSerif.otf}%         ^^^^20a3%       \endgroup     }     \DeclareSIUnit{\franc}{\myfranc}          \begin{document}     Horse fififif \SI{123.45}{\franc}.     \end{document}      How do I remove the `fi` ligature to get a seperate `f` and `i` instead? **Update** A setup that works for me is the following:               \documentclass{article}          \usepackage{siunitx}     \DeclareRobustCommand*{\myfranc}{%       \begingroup         \fontspec{FreeSerif.otf}%         ^^^^20a3%       \endgroup     }     \DeclareSIUnit{\franc}{\myfranc}          \usepackage{fontspec}     \defaultfontfeatures{       Ligatures={         NoCommon,         NoRequired,         NoContextual,         NoHistoric,         NoDiscretionary,         TeX       }     }     \setmainfont[       BoldFont=lmroman10-bold.otf,       ItalicFont=lmroman10-italic.otf,       BoldItalicFont=lmroman10-bolditalic.otf,       SlantedFont=lmromanslant10-regular.otf,       BoldSlantedFont=lmromanslant10-bold.otf,       SmallCapsFont=lmromancaps10-regular.otf     ]{lmroman10-regular.otf}          \begin{document}     \section{Horse}     off fit fly office baffle -- \SI{123.456}{\franc}     \end{document}


title: Colors that work well with beamer color scheme albatross

text: Is there a color scheme made using `\definecolor` that defines colors that work well with the beamer color scheme albatross?


title: How to plot coordinate between two xticks?

text: I want to plot some data using pgfplot. Here is a code I have written:               \documentclass{article}     \usepackage{pgfplots}     \pgfplotsset{compat = 1.3}     \begin{document}     \begin{tikzpicture}     \begin{axis}[       legend style={legend pos = north west, font=\footnotesize, draw=none},       legend cell align=left,       xtick=data,       ytick={0,5,10,...,45},       xticklabels={0,2,4,...,16,18},       every axis label={font=\footnotesize},       tick label style={font=\footnotesize},       label style={font=\footnotesize},       enlarge x limits=false,       enlarge y limits=false]       \addplot[lightgray, mark=*] table [x expr = \lineno, y = Time] {Data.dat};       \addlegendentry{x}       \end{axis}     \end{tikzpicture}     \end{document}      The content of Data.dat file is as follows:                Points Time        0        0        2000     1.11        4000     3.54        6000     7.35        8000     12.43        10000    18.15        12000    24.51        14000    31.52        16000    38.59        17791    45.35      As I'm new to this site, I'm not able to post the output graph. In the output graph, the last point (17791, 45.35) is wrongly plotted at x=18 and y=45.35.   So my question is: How do I make the last point plotted correctly between points x=16 and x=18?


title: How to Create Comparison Tables in LaTeX?

text: I am a new user (both to LaTeX & this forum). I want to create a Comparison Table for an Article (like the one shown here): ![enter image description here](http://i.stack.imgur.com/0L3vC.png) Can someone please help me with this.


title: Missing abstract with amsart class

text: I'm not very good at LaTeX but I've been using it to write my dissertation. Have just come to the end and trying to format everything correctly. Whenever I try to put my Abstract paragraph into the form `\begin{abstract}` (writing here) `\end{abstract}` and click play the whole abstract section just disappears. What am I doing wrong?               \documentclass[12pt]{amsart}          \begin{document}          \begin{abstract}     (my abstract here)     \end{abstract}     \end{document}


title: Svmono and "real page dimensions''

text: I'm writing a document with the Springer's template `svmono`. Clearly the margins and more generally the page layout is automatically setted. Despite this, the output file is displayed as an A4 pdf file. I want to print my document ''like a book'', namely in a format that is smaller than an A4 paper; so which is the best way to set the page dimensions? Clearly the text should result centered into the page. **Addenda:** I've tried this solution:               \documentclass[envcountsame,envcountchap]{svmono}      \usepackage{subfiles}     \usepackage[utf8]{inputenc}      \usepackage[bottom]{footmisc}     \usepackage{microtype}     \usepackage{stmaryrd}        \usepackage{amsmath}     \usepackage{mathrsfs}      \usepackage{amssymb}      \usepackage[all,cmtip]{xy}     \usepackage{faktor}     \usepackage[colorlinks={true},linkcolor={blue},citecolor={blue}]{hyperref}     \usepackage[frame,width=15truecm,height=23.5truecm,center]{crop}     \begin{document}      blablabla     \end{document}      but in this way the paper is cutted. I'd like to mantain the above dimensions (i.e. `width=15truecm,height=23.5truecm`) but with some crop marks to underline the ''real'' printable area.


title: How do I list the available classes in my installation?

text: I am using TeXLive in Linux and want to learn and experiment. How can I list available document classes in my installation?


How to make the font smaller in IEEE trans? I wish to make the font within the minipage smaller               \fbox{\begin{minipage}{8.5cm}$(t_{HSbak}{<}1){\land} (t_{FSbak}{<}1) {\land} (t_{HS}{\geq}2){\land} (t_{FS}{+}t_{HSbak}{\leq}1)$\\\         \end{minipage}}


title: Why autoref lets text ignore wrapfigure

text: I just ran into a problem concerning `autoref` in combination with the `wrapfigure` environment of the `wrapfig` package. Minimal example:               \documentclass{article}          \usepackage{wrapfig}     \usepackage{hyperref}     \usepackage[demo]{graphicx}          \usepackage[english]{babel}     \usepackage{blindtext}          \begin{document}          \begin{wrapfigure}{R}{0.5\textwidth}     \includegraphics[width=0.5\textwidth]{}     \end{wrapfigure}          \autoref{ref} % arbitrary reference     \blindtext          \end{document}      The result looks like:                              ######################     REFtextextextex|extextextextextext  |     textextextextex|extextextextextext  |     textextextextex|...                 |                    |                    |                    |      PICTURE       |                    ######################      When I use ref instead of `autoref` the text is correctly aligned beside the `wrapfig`. EDIT: Both _pdflatex_ and _texi2pdf_ produce this result. Any ideas? **SOLVED** : Updating from TeX Live 2009 (default for Ubuntu 10.04 at the moment) to TeX Live 2012 solved the problem. Old file list:               [...]     wrapfig.sty    2003/01/31  v 3.6     hyperref.sty    2009/10/09 v6.79a Hypertext links for LaTeX     [...]      Note the old version of `hyperref`. Under Ubuntu TeX Live can be upgraded by adding the repository `ppa:texlive-backports/ppa` and calling `apt-get upgrade`.


title: Is there a simple way to "brighten" or "darken" a color?

text: For example, I have color `#009b55` (ForestGreen), and I want to get a slightly brighter version of it - `#00a85c`. Is there a function that can do it for me?


title: How to add cyrillic text to tikz image?

text: I tried the following:               \documentclass[landscape]{article}     \usepackage{tikz}     \usetikzlibrary{backgrounds, shapes, arrows}     \begin{document}     \begin{tikzpicture}       \node at (10pt, 50pt) {Й};     \end{tikzpicture}     \end{document}      and compiled with               xelatex test.tex      But the output is empty. What am I doing wrong?


title: pgfplots: Splitting xlabel on two lines

text: I want to split xlabel into lines. My MWE is below:               \documentclass{standalone}     \usepackage{pgfplots}     \pgfplotsset{compat=1.7}          \begin{document}          \begin{tikzpicture}         \begin{axis}[            % xlabel = Temp, $N$ \newline Slice at X             xlabel = Temp $N$ \newline Slice at X                     , ylabel = $P$             , zlabel = Response             , xmin = -1             , xmax = 1             , ymin = -1             , ymax = 1             %, x dir = reverse             , view={-40}{30}]        \addplot3        [         surf        ,  faceted color=blue        , samples  = 15        , domain   = -1:1        , y domain = -1:1        ]         {56+ 1* x + 2* y + 3*x*y};         \end{axis}     \end{tikzpicture}          \end{document}      ![enter image description here](http://i.stack.imgur.com/uIzeu.png) I wonder how to split xlabel into two lines and also how to put comma (,) in the xlabel. Thanks


title: How to generate random closed shape and draw a line bisecting it

text: Similar to this question, except I also want a single line bisecting the shape in both area and perimeter. So the dream is to end up with a shape like the ones shown here, and a single line through the shape, where the area of the shape to one side of the line is equal to the other and ditto for perimeter. I don't even know if this is possible or not. How would one even begin to compute the area/perimeter of the shape?


title: Getting Quattrocento as math font in article class

text: in beamer I can do this               \documentclass{beamer}     \usepackage{quattrocento}          \begin{document}     \begin{frame}     Quattrocento ${30\cdot40}$     \end{frame}     \end{document}      and both the text and the math font will be printed in the Quattrocento font. How do I achieve the same in the article class? If I do:               \documentclass{article}     \usepackage[sfdefault]{quattrocento}          \begin{document}          Quattrocento ${30\cdot40}$          \end{document}      only the text font is changed and not the math Pics: beamer ![http://imgur.com/svyPgVM](http://i.stack.imgur.com/vsWEf.jpg) article ![http://imgur.com/t1zeC7w](http://i.stack.imgur.com/JDZr6.jpg)


title: Combine \listoflistings and \listofalgorithms into one list

text: The title said it all...I want to combine the two under one list with the title "Algorithms and program code". Style wise the page should match the usual style of the other lists (`\listoffigures`, `\listoftables`, ... itd.). Is there a way to do this?


title: How can I remove a line running across the top of the first page of the pages for references?

text: I used               \usepackage{etoolbox}% http://ctan.org/pkg/etoolbox     \patchcmd{\chapter}% <cmd>       {plain}% <search>       {main}% <replace>       {}{}% <success><failure>          \fancypagestyle{main}{       \fancyhf{}% Clear all headers/footers       \fancyhead[R]{\thepage}% Page in Right header       \renewcommand{\headrulewidth}{0.4pt}% Header rule       \renewcommand{\footrulewidth}{0pt}% No footer rule     }      to put the page number for the first page of the list of references at the top right corner, but it also gave a line running across the top of the page. How do I delete this line? Also, I am using `biblio.sty` for references.


title: pgfplots \closedcycle command inside \foreach returning error

text: The following code demonstrates the problem. It builds fine, but if I add the commented `\closedcycle` command, it won't build (undefined control sequence).               \documentclass[tikz]{standalone}      \usepackage{pgfmath}     \usepackage{pgfplots}     \usepgfplotslibrary{fillbetween}     \usepackage{calc}     \pgfplotsset{compat=newest}     \begin{document}           \begin{tikzpicture}       \begin{axis}[           %title=title,           %xlabel={xlabel},           %ylabel={ylabel},         ]         \foreach \i/\j in            {             1/red!0!blue,             2/red!20!blue,             3/red!40!blue,             4/red!60!blue,             5/red!80!blue,             6/red!100!blue           }{           \edef\temp{\noexpand             \addplot[               color=\j,               fill=\j,               fill opacity=0.05               ]                table                {expNum3D2\i1.dat};%\closedcycle;           }           \temp         }       \end{axis}     \end{tikzpicture}          \end{document}      Without `\closedcycle`, it looks like: ![without closedcycle](http://i.stack.imgur.com/srvrJ.png) However, I want the filling to be to the axis. **additional inquiry** I struggled to programmatically construct the array I'm looping over. I'd like to be able to set the number of plots `\n`, and create the array, including the color mixing from `blue` to `red`. Any help on this would also be very much appreciated!


title: Conditional structure based on \rand value comparison

text: I have a simple code that inserts a complex layout for figures and I would like to randomly alternate the position options (for instance, alternating between top and bottom positioning: `begin{figure}[t]` / `[b]`). So far, I have been doing this:               \documentclass[11pt, a4paper, frenchb]{article}     \usepackage{polyglossia}     \usepackage[first=0, last=1, quiet]{lcg}          \begin{document}     rand sequence: \rand\arabic{rand}\rand\arabic{rand}     \rand\arabic{rand}\rand\arabic{rand}\rand\arabic{rand}     \rand\arabic{rand}\rand\arabic{rand}\rand\arabic{rand}          \ifthenelse{\equal{\rand\arabic{rand}}{1}}             {align figure to TOP}{align figure to BOTTOM}          \end{document}      but I've got an `Undefined control sequence`. How can I compare the value returned by the `lcg \rand` to something common so I can have my figures evenly inserted at the top or bottom across pages.


Beamer navigation bar with sections ans SUBsections but without SUBSUBsections?? I'm using `PaloAlto` theme.


title: Numbering subfigures

text: In case I have about 100 subfigures how should I name them to be arranged in a correct way in the TeX file on converting it into PDF file. I need to arrange them in a way that a -> z is followed by aa -> az , then ba -> bz and etc.,


title: Very large tcolorbox

text: I have a very large `breakable` `tcolorbox`               \documentclass{article}          \usepackage{blindtext}     \usepackage{tcolorbox}     \tcbuselibrary{breakable}          \begin{document}          \begin{tcolorbox}[breakable]     \blindtext[150]     \end{tcolorbox}          \end{document}      that exceeds the maximal dimension and causes the following error.               ! Dimension too large.     <argument> \ht \tcb@upperbox                                   +\dp \tcb@upperbox      l.11 \end{tcolorbox}      When I use the `batchmode` as suggested for a very large `mdframed` environment I get a document with a single page and a colorbox that does not surround the content. The `tcolorbox` documentation states the following               The box content is a TEX \vbox register which has a restricted capacity`.     Therefore, you cannot place hundreds of pages inside a tcolorbox.      What is the appropriate way of dealing with very large color boxes? **Edit** To add some context as there might as well be a better solution for my problem, I have a large list of small paragraphs (probably one or two lines). I don't know statically how many there are or how long a single paragraph is. I would like to put these paragraphs one after the other on a page as long as they fit and make a page break otherwise. The content of each page should be surrounded by a box. In fact, I additionally would like to separate each pair of consecutive paragraphs by a separator as described here. I also looked for multi page tabular environments but did not find a fit either.


title: How to use unicode-math with beamer and lualatex?

text: According to a recent article in "Die TeXnische Komödie", this should be the way to get Latin Modern Math to work with lualatex and the latest TeXLive 2011:               \documentclass[professionalfonts]{beamer}     \usepackage[english]{babel}     \usepackage{iftex}     \ifPDFTeX       \usepackage[utf8]{inputenc}       \usepackage[T1]{fontenc}       \usepackage{lmodern}     \else       \ifLuaTeX         \usepackage{luatextra}         \defaultfontfeatures{Ligatures=TeX,Numbers=OldStyle}         \usepackage{unicode-math}          \setmathfont{Latin Modern Math}       \fi     \fi     \newcommand{\ip}[2]{(#1, #2)}     \begin{document}     \begin{frame}{Speaker's Name}{About Our Next Speaker}     \LaTeX\ is good at typesetting mathematical formulas     like            \( x-3y + z = 7 \)      or            \( a_{1} > x^{2n} + y^{2n} > x' \)     or              \( \ip{A}{B} = \sum_{i} a_{i} b_{i} \).     \end{frame}     \end{document}      It works (at least according to `pdffonts`), but unicode-math complains:               * unicode-math warning: "disable-beamer"     *      * Disabling beamer's math setup.     * Please load beamer with the [professionalfonts] class option.      And this message is repeated a dozen times:               * fontspec warning: "icu-feature-not-exist-in-font"     *      * OpenType feature 'Numbers=OldStyle' (+onum) not available     * for font 'LatinModernMath',     * with script 'Math', and language 'Default'.      What's wrong with my setup? **EDIT:** The fontspec warnings go away if one removes the `Numbers=OldStyle` from the `\defaultfontfeatures`. **EDIT2:** I removed the `ifxetex` package and changed the `\ifluatex` to `\ifLuaTeX`.


title: My prime symbol is not superscript

text: I'm learning math mode and having an issue here with the prime symbol.               $y\in[0,1]^{d\prime}$      In this inline math formula, the prime symbol is supposed to be superscript, but it shows up at the regular text level and size.


title: Problems with column alignment in the `lstlisting` environment

text: I'm having some problems with the column alignment in the `lstlisting` environment provided by `listings.sty`. In fixed-width column alignment mode, whatever the typeface being used, listings are supposed to be presented with one character per column, where the columns have uniform widths (which may be set by the author). However, I find this not actually to be the case with certain input. **Minimal example:**               \documentclass{article}     \usepackage{listings}     \begin{document}          \begin{lstlisting}[columns=fixed]     columnar alignment maligned multiple narrow characters?     1234 6789 1234 6789 1234 6789 1234 6789 1234 6789 1234     \end{lstlisting}          \end{document}      **Result:** ![result of lstlisting environment with improper column alignment](http://i.stack.imgur.com/mKmCZ.png) Note that the second line is exactly one character shorter than the first, which is observed at the far right-hand side. However, the alignment in the middle is somewhat ruined at the occurance of every `l` character (ambiguous alignment of `u` in `columnar` with `3` or `4`; ambiguous alignment of `i`, `g`, and `n` in `alignment` with `1`, `2`, `3`, and `4`; _etc._ ). This problem is not helped by tweaking the alignment, by _e.g._  replacing `fixed` with `{[l]fixed}` for the column alignment. Is this a known problem? Is there any fix for it?


title: Expanding (edef) a lipsum command?

text: Just trying to debug some stuff, and I thought about 'expanding' a `\lipsum[1-2]` statement using `\edef` into a new command (that would contain the "raw" text); strangely I cannot get it to work; this example:               \documentclass{article}          \usepackage{lipsum}          \begin{document}          % \lipsum[1-2] % works fine          \edef\mycommand{\lipsum[1-2]}     \mycommand          \end{document}      ... crashes with:               ! Undefined control sequence.     \GenericError  ...                                                                                #4  \errhelp \@err@     ...     l.9 \edef\mycommand{\lipsum                                [1-2]}      How would I go about "unpacking" the 'contents' of the `\lipsum` command into a new command? Thanks in advance for any answers,   Cheers!


title: Debugging - any packages that will draw individual line (and word) frame boxes?

text: I was just wandering if there is a package ( _or an option to a package, like`\usepackage[showframe]{geometry}`_) that could emphasize/draw borders(/lines/frame) around _each_ (and every) word; and/or _each_ line. I'd prefer if this could work with `lipsum` ( _noting that something like`\uline{\lipsum[1-10]}` [via `ulem` package] crashes LaTeX_). As the title says, I'd primarily need this for debugging purposes ( _e.g., say, seeing why and where rows do not align in a two-column document_ ). EDIT: found something similar in macros - Iterate over space-separated list - TeX - LaTeX - Stack Exchange;               \documentclass{article}          \makeatletter     \def\mboxed#1{%         \@mboxed#1 \@empty     }     \def\@mboxed#1 #2{%        \fbox{#1}\space  % fbox here to have a visual test        \ifx #2\@empty\else         \expandafter\@mboxed        \fi        #2%     }     \makeatother          \begin{document}          \def\ptest{Hello there, some words here.}     \mboxed{This should be tested \ptest}          \end{document}      ... however, you will notice that only the 'verbatim' words in the `\mboxed{}` argument are boxed individually; while the contents of the command `\ptest` are boxed as a whole (and I want them too as individual words; think as using `\lipsum` instead); furthermore, there is no guarantee that this `\mboxed` macro doesn't disturb the typesetting (that would occur, if `\mboxed` wasn't present at all).


title: manually control header and page numbering

text: I am writing a report, where if i use the command `\pagestyle{plain}` the page numbering comes to the bottom, thats good. However i also want the heading of the chapter to come on the top left hand corner, hows that possible. If i remove the `\pagestyle{plain}`, then the heading comes on the top left corner but the page numbering as well comes on the top right, when i want it in the bottom!               \documentclass[letterpaper,11pt,oneside,final]{book}               %-----------------------------------------------------------------------------%     % Margins:     %-----------------------------------------------------------------------------%     \setlength{\marginparwidth}{0pt} % width of margin notes     \setlength{\marginparsep}{0pt} % width of space between body text and margin notes     \setlength{\evensidemargin}{0.125in} % Adds 1/8 in. to binding side of all      \setlength{\oddsidemargin}{0.125in} % Adds 1/8 in. to the left of all pages     \setlength{\textwidth}{6.375in} % assuming US letter paper (8.5 in. x 11 in.) and      \raggedbottom     \setlength{\parskip}{\medskipamount}          \renewcommand{\baselinestretch}{1.1} % this is the default line space setting          \let\origdoublepage\cleardoublepage     \newcommand{\clearemptydoublepage}{%       \clearpage{\pagestyle{empty}\origdoublepage}}     \let\cleardoublepage\clearemptydoublepage               \usepackage[pdftex,letterpaper=true,pagebackref=true]{hyperref} % with basic options     \usepackage{hypcap}               \usepackage{grffile}     \usepackage{libertine}     \usepackage[T1]{fontenc}     \usepackage{lmodern}     \usepackage{textcomp}     \usepackage{mathpazo}     \usepackage{stmaryrd}     \usepackage{rotating}     \usepackage{dsfont}               \hypersetup{pdfpagemode=UseNone}               %\fancyhf{}               \usepackage{fancyhdr}          \fancyhf{} % clear header and footer     \fancyhead[L]{\leftmark}     \fancyfoot[C]{\thepage}     \pagestyle{fancy}     \fancypagestyle{plain}{} % inherit the settings from fancy style               \begin{document}          snippet                As any dedicated reader can clearly see, the Ideal of practical reason is a rep-     resentation of, as far as I know, the things in themselves; as I have shown else-     where, the phenomena should only be used as a canon for our understanding.     The paralogisms of practical reason are what rst give rise to the architectonic     of practical reason. As will easily be shown in the next section, reason would     thereby be made to contradict, in view of these considerations, the Ideal of prac-     tical reason, yet the manifold depends on the phenomena. Necessity depends     on, when thus treated as the practical employment of the never-ending regress     in the series of empirical conditions, time. Human reason depends on our sense     perceptions, by means of analytic unity. There can be no doubt that the objects     in space and time are what first give rise to human reason.          \section{Test 1}     As any dedicated reader can clearly see, the Ideal of practical reason is a rep-     resentation of, as far as I know, the things in themselves; as I have shown else-     where, the phenomena should only be used as a canon for our understanding.     The paralogisms of practical reason are what rst give rise to the architectonic     of practical reason. As will easily be shown in the next section, reason would     thereby be made to contradict, in view of these considerations, the Ideal of prac-     tical reason, yet the manifold depends on the phenomena. Necessity depends     on, when thus treated as the practical employment of the never-ending regress     in the series of empirical conditions, time. Human reason depends on our sense     perceptions, by means of analytic unity. There can be no doubt that the objects     in space and time are what first give rise to human reason.     \pagestyle{empty}          \bibliographystyle{alpha}               \nocite{*}     \hfill \today               \end{document}


title: Tables or other ways to achieve complex page layout

text: Posting it as a new question, also related to this question as well as maybe relevant in this context of table formatting... What about some things that, to my knowledge, no (other) word processor can achieve at all? I am desperately looking for a way to write a table (or what ever way is possible to achieve this layout) in LaTeX that contains 4 columns and 3 rows where the cells 1&2 of the first, cell 1 of the second and cells 1&2 of the third row are merged and 3&4 of the first, cell 4 of the second and cells 3&4 of the third row, too, are merged. the two cells in the middle also should be merged. Is there any way to implement this with any table environment in LaTeX? for a better idea of what I am trying to achieve, here is how it should roughly look like: ![table](http://farm8.staticflickr.com/7379/10686132526_533df394c1.jpg) Anyone any idea how to achieve this? This is related to another question, which, too, hasn't lead to an answer yet...


title: Powerdot - create both slides and notes via command line

text: I would like to create both slides and notes from a powerdot presentation easily. Currently, the options in the preamble of the file need to be changed and the file saved to produce the different products. Here is a sample of file which will produce the PDF of the slides via `latex`->`dvips`->`ps2pdf`               \documentclass[        nohandoutpagebreaks,        mode=present,        display=slides]{powerdot}          \begin{document}          \begin{slide}[toc=]{Slide 1}     First Slide     \end{slide}          \begin{note}     First Note     \end{note}          \begin{slide}[toc=]{Slide 2}     Second slide     \end{slide}     \end{document}       In order to produce the handouts I go into the file and change the document options, save the file, and recreate the PDF.               \documentclass[        nohandoutpagebreaks,        mode=handout,        display=slidesnotes]{powerdot}      Finally to create a handout with just the notes the file is updated a last time, saved, and the PDF is recreated.               \documentclass[        nohandoutpagebreaks,        mode=handout,        display=notes]{powerdot}      Is there are way that I can do this through the command-line, using a variable that is set in a shell script, or some other option? Thanks!


title: Reset slide counter after \pause in Latex Beamer

text: \begin{itemize}     \item text1     \pause\item text2     \pause\item text3     \end{itemize}          \begin{figure}          \includegraphics<1>[width=\textwidth]{pics/graphic1.jpg}          \includegraphics<2-3>[width=\textwidth]{pics/graphic2.jpg}          \end{figure}      I want to make images appear one after the other along with the text that describes them. I've tried these:   * http://stackoverflow.com/questions/1088761/how-to-change-an-image-on-a-slide-in-latex   * http://stackoverflow.com/questions/4683093/beamer-how-to-show-images-as-step-by-step-images But none seems to work. I came to suspect that the `\pause` is the problem. Latex seems to start counting the slides on which to let the images appear after the pauses, as if the code after the `\pause` is still affected by it, even though the itemize environment is closed. Is there a way to reset the counter? I am aware that putting the images before the itemize environment helps, but I would like to know how to make my slides exactly the way I want them.


title: Multiple listings in one box with sub captions and using listings counter

text: I am using separate counters for (graphics) figures and listings. I am using the `caption` and `subcaption` packages. I construct sub-figures using `subfigure`:               \begin{figure}     \begin{subfigure}{0.34\textwidth}     ...     \caption{sub-1}\label{fig:sub1}     \end{subfigure}     \begin{subfigure}{0.34\textwidth}     ...     \caption{sub-2}\label{fig:sub2}     \end{subfigure}     \end{figure}      Now I need the same construction for listings. Like               \newsavebox{\verbsavebox}          \begin{figure}     \begin{lrbox}{\verbsavebox}     \begin{minipage}{.34\textwidth}     \begin{Verbatim}     ...     \end{Verbatim}     \end{minipage}     \end{lrbox}%     \begin{subfigure}{0.34\textwidth}     \usebox{\verbsavebox}     \caption{sub-1}\label{lst:sub1}     \end{subfigure}     \begin{lrbox}{\verbsavebox}     \begin{minipage}{.34\textwidth}     \begin{Verbatim}     ...     \end{Verbatim}     \end{minipage}     \end{lrbox}%     \begin{subfigure}{0.34\textwidth}     \usebox{\verbsavebox}     \caption{sub-2}\label{lst:sub2}     \end{subfigure}     \end{figure}      The problem is that this uses the figure counter, and the main caption is named "Fig...". What I want is use the listings counter and have the main caption named "Listing...". * * * **EDIT** Here is another try using `lstlisting`:               \documentclass{article}     \usepackage{verbatimbox}     \usepackage[T1]{fontenc}     \usepackage{fancyvrb}     \usepackage{listings}     \usepackage[scaled=.73]{beramono}     \fvset{baselinestretch=0.94}     \parindent=0pt     \parskip = 6pt          % "define" Scala     \lstdefinelanguage{scala}{       morekeywords={abstract,case,catch,class,def,%         do,else,extends,false,final,finally,%         for,if,implicit,import,match,mixin,%         new,null,object,override,package,%         private,protected,requires,return,sealed,%         super,this,throw,trait,true,try,%         type,val,var,while,with,yield,then}, % we use `then` in the pseudocode       otherkeywords={=>,<-,<\%,<:,>:,\#,@},       sensitive=true,       morecomment=[l]{//},       morecomment=[n]{/*}{*/},       morestring=[b]",       morestring=[b]',       morestring=[b]"""     }          % activate the language and predefine settings     \lstset{         basicstyle=\linespread{0.94}\ttfamily,%         language=scala,%         commentstyle=\itshape,%         keywordstyle=\bfseries,%         fancyvrb=true,%         mathescape=true,%  for pseudocode         captionpos=b, % captions at the bottom     }          \begin{document}          In Fig.~\ref{fig:label} versus Listings~\ref{lst:label1} and \ref{lst:label2}.          \begin{figure}     Empty     \caption{fig}\label{fig:label}     \end{figure}          \begin{figure} % [htp]     \begin{lstlisting}{caption={list1},label={lst:label1}}     trait Sys[S <: Sys[S]] {       type ID <: Ident[S#Tx]       type Tx     }          trait Muta[S <: Sys[S]] {       def id: S#ID       // well defined:       def dispose(tx: S#Tx) =         id.dispose(tx)     }          trait Ident[Tx] {       def dispose(tx: Tx): Unit     }     \end{lstlisting}     \begin{lstlisting}{caption={list2},label={lst:label2}}     trait Sys {       type ID <: Ident[Tx]       type Tx     }          trait Muta[S <: Sys] {       def id: S#ID          // incompatible type:       def dispose(tx: S#Tx) =         id.dispose(tx)     }     \end{lstlisting}     \begin{lstlisting}{caption={list3},label={lst:label3}}     trait Sys {       type ID <: Ident[Tx]       type Tx     }          trait Muta[S <: Sys] {       // evidence required:       val s: S       def id: s.ID       // well defined:       def dispose(tx: s.Tx) =         id.dispose(tx)     }     \end{lstlisting}     \caption{Total caption}\label{lst:total}     \end{figure}          \end{document}      The problem is, the listings box gets numbered "Figure 2" instead of "Listing 1", and there are no sub captions (a) (b) (c). The reference in the text is broken, too. And the three listings should appear in three columns next to each other. So this is how the preceding code looks: ![enter image description here](http://i.stack.imgur.com/Z2Ifn.png) And this is a mock up of how it _should_ look: ![enter image description here](http://i.stack.imgur.com/FnY1N.png) * * * **EDIT 2** Ok, so I compiled paracol.sty and tried:               \documentclass{article}     \usepackage{verbatimbox}     \usepackage[T1]{fontenc}     \usepackage{fancyvrb}     \usepackage{listings}     \usepackage[scaled=.73]{beramono}     \fvset{baselinestretch=0.94}     \parindent=0pt     \parskip = 6pt     \usepackage{caption}          % "define" Scala     \lstdefinelanguage{scala}{       morekeywords={abstract,case,catch,class,def,%         do,else,extends,false,final,finally,%         for,if,implicit,import,match,mixin,%         new,null,object,override,package,%         private,protected,requires,return,sealed,%         super,this,throw,trait,true,try,%         type,val,var,while,with,yield,then}, % we use `then` in the pseudocode       otherkeywords={=>,<-,<\%,<:,>:,\#,@},       sensitive=true,       morecomment=[l]{//},       morecomment=[n]{/*}{*/},       morestring=[b]",       morestring=[b]',       morestring=[b]"""     }          % activate the language and predefine settings     \lstset{         basicstyle=\linespread{0.94}\ttfamily,%         language=scala,%         commentstyle=\itshape,%         keywordstyle=\bfseries,%         fancyvrb=true,%         mathescape=true,%  for pseudocode         captionpos=b, % captions at the bottom     }          \usepackage{capt-of}     \usepackage{paracol}          \begin{document}          In Fig.~\ref{fig:label} versus Listings~\ref{lst:label1} and \ref{lst:label2}.          \begin{paracol}{3}     \begin{lstlisting}[caption={list1},label={lst:label1}]     trait Sys[S <: Sys[S]] {       type ID <: Ident[S#Tx]       type Tx     }          trait Muta[S <: Sys[S]] {       def id: S#ID       // well defined:       def dispose(tx: S#Tx) =         id.dispose(tx)     }          trait Ident[Tx] {       def dispose(tx: Tx): Unit     }     \end{lstlisting}     \switchcolumn     \begin{lstlisting}[caption={list2},label={lst:label2}]     trait Sys {       type ID <: Ident[Tx]       type Tx     }          trait Muta[S <: Sys] {       def id: S#ID          // incompatible type:       def dispose(tx: S#Tx) =         id.dispose(tx)     }     \end{lstlisting}     \switchcolumn     \begin{lstlisting}[caption={list3},label={lst:label3}]     trait Sys {       type ID <: Ident[Tx]       type Tx     }          trait Muta[S <: Sys] {       // evidence required:       val s: S       def id: s.ID       // well defined:       def dispose(tx: s.Tx) =         id.dispose(tx)     }     \end{lstlisting}     \end{paracol}          \begin{figure}     Empty     \caption{fig}\label{fig:label}     \end{figure}          \end{document}      This produces three identical caption numbers and not 1a, 1b, 1c: ![enter image description here](http://i.stack.imgur.com/km7az.png)


title: Subfigure numeration inside the section

text: > **Possible Duplicate:**   >  Numbers of figure references I'm having some problem about subfigure numeration. The figures in my work are numbered inside the section using the line `\numberwithin{figure}{section}`, so they are like figure 2.1, 2.2, 2.3... I tried to use the subfigure command and make reference to that figure, so the numeration should be 2.1(a), but it ignores the section number, showing just "figure 1(a)".               \documentclass{article}     \usepackage{graphicx}     \usepackage{amsmath}     \usepackage{subfigure}     \numberwithin{figure}{section}     \begin{document}          \begin{figure}     \subfigure[subfigure a]{\includegraphics{image1} \label{image1}}     \subfigure[subfigure b]{\includegraphics{image2} \label{image2}}     \end{figure}          According to figure \ref{image1} we ...     \end{document}      Is that a way I could use this kind of numeration and the subfigure command? If I remove the line `\numberwithin{figure}{section}` the numeration is fine


title: parametric naming of nodes in Tikz

text: I would like to generate a graph with nodes and edges names by their coordinates in the graph, something like:               \foreach \x in {0,1,...,6}       \foreach \y in {1,...,4}          \draw (1.5*\x,2.5*\y) circle (3mm) node (\x and \y);      that is naming node by its coordinates as (2 and 4). How can I do this? Note that later I want to use this node names to generate connections in another loop, something like               \foreach \x in {1,...,5}     \draw[->] (1.5*\x and 4) -- (1.5*(\x+1) and 4);      Can this, or something equivalent to this be done?


title: Switching between arabic, roman and alph frame numbering

text: I just wonder how can I easily switch to arabic, roman or alph frame numbering between frames? I don't want to use `\appendix`! I want, for instance: three slides in arabic numbering, then two slides in alph, then two slides in arabic, then three slides in roman, etc. Is it possible?


title: How can I update the array package? Warning from tabu

text: I am trying to use the `tabu` package, but it returns a warning which does not seem like a good sign. Does anyone know how to resolve the following issue? > LaTeX Warning: You have requested, on input line 68, version '2008/09/09' of > package array, but only version '2008/07/23' is available. I am using MikTex on windows and I have updated my complete MikTex library with the update manager, but the warning still occurs. _UPDATE_   It seems to be a bit more complicated than I thought. The `array` package requested is emulated by the `memoir` package. The log file outputs: > Package array [2008/07/23] emulated by memoir. This is my preamble, which I hope is sufficient:               \documentclass[twoside,a4paper,11pt]{memoir}     \usepackage{times}     \usepackage{pslatex}     \usepackage{url}     \usepackage{mscthesis}     \usepackage{cleveref}     \usepackage{tabu}          \usepackage{algorithm}          \usepackage[dvips]{graphicx}     \usepackage[table]{xcolor}