title: TOC - number of chapter in other line than its title (with memoir class)

text: Do you have any idea on how to combine this solution of putting the number of chapter and its name+page in different lines? Please have a look at the picture. I want to achieve this with memoir lass (ideally if we could have in centralized). ![](http://i.stack.imgur.com/llsJL.png) My problem is that I usage memoir class (no way to change the class now) and it doesn't work for me. Minimal not MWE is:               \documentclass{report}     \usepackage{tocloft}     \setlength{\cftchapnumwidth}{0pt}     \renewcommand{\cftchappresnum}{\chaptername\ }     \renewcommand{\cftchapaftersnum}{.}     \renewcommand{\cftchapaftersnumb}{\newline}     \renewcommand{\cftchapdotsep}{\cftdotsep}     \begin{document}     \tableofcontents     \chapter{A Chapter}     \chapter{Another Chapter}     \end{document}      I also tried to redefine way of setting TOC with               \documentclass{memoir}          % redefinition for the ToC title     \renewcommand\printtoctitle[1]{\HUGE\sffamily#1}          % redefinitions for chapter entries     \renewcommand\chapternumberline[1]{}     \renewcommand\cftchapterfont{\sffamily}     \renewcommand\cftchapterpagefont{\huge\sffamily}          \makeatletter     \newcommand\l@mychap[3]{%       \vskip2ex%       \par\noindent       \parbox{15em}{%         \hfill\cftchapterfont#1%       }\hspace*{3em}%       \parbox{\dimexpr\textwidth-5.5em-15pt\relax}{%     {\cftchapterpagefont#2}    %       }\par%     }          \renewcommand*\l@chapter[2]{\\%       \l@mychap{#1}{#2}{\chaptername}%     }     \makeatother          \begin{document}          \tableofcontents*          \chapter{Down the Rabbit Hole}     \chapter{The Pool of Tears}     \chapter{The Caucus Race and a Long Tale}     \setcounter{page}{14}% just for the example          \end{document}      that comes from here. Any ideas regarding the solution? Thanks and regards. **EDIT:** Would you be so kind and have a look at further problem I have regarding this issue. I don't feel like creating next question would be good now. I used two lines of code:               \usepackage{fmtcount}     \renewcommand{\thechapter}{\NUMBERstring{chapter}}      to change digits to words, to make it look like Chapter ONE, Chapter TWO, etc. Instead, I'd need simply ONE, TWO, THREE that would be centralized correctly. It looks like this at the moment. ![](http://i.stack.imgur.com/BUEhU.png) It looks like it's alignedto te left at the center, instead I want to have it centered correctly. The code is:               \documentclass{memoir}          \usepackage{fmtcount}     \renewcommand{\thechapter}{\NUMBERstring{chapter}}               \newlength\mylen     \settowidth\mylen{\thechapter}     \addtolength\mylen{0pt}     \renewcommand{\cftchapteraftersnum}{\ }     \renewcommand{\cftchapteraftersnumb}{\newline\normalfont}     \renewcommand{\cftchapterleader}{}     \renewcommand{\cftchapterafterpnum}{\cftparfillskip}               \makeatletter     \renewcommand*{\l@chapapp}[3]{%       \ifnum \c@tocdepth >\m@ne         \cftchapterbreak         \vskip\cftbeforechapterskip%         \centering%         {\memRTLrightskip\@tocrmarg%          \@afterindenttrue%          \interlinepenalty\@M%          \leavevmode%          \let\@cftbsnum\cftchapterpresnum          \let\@cftasnum\cftchapteraftersnum%          \let\@cftasnumb\cftchapteraftersnumb%          \def\@chapapp@head{}%          \setlength{\@tempdima}{\mylen}%          {\cftchapterfont\sffamily#1}\nobreak%         ~ --- \cftchapterfillnum{\sffamily#2}}%       \fi}     \makeatother                              \begin{document}          \tableofcontents*     \chapter{A Chapter}     \chapter{Another Chapter}     \chapter{A Chapter}     \chapter{Another Chapter}     \chapter{A Chapter}     \chapter{Another Chapter}     \chapter{A Chapter}     \chapter{Another Chapter}     \chapter{A Chapter}     \chapter{Another Chapter}     \chapter{A Chapter}     \chapter{Another Chapter}     \chapter{A Chapter}     \chapter{Another Chapter}     \chapter{A Chapter}     \chapter{Another Chapter}     \chapter{A Chapter}     \chapter{Another Chapter}          \end{document}      Any ideas? Thank you in advance!


title: Getting \bm to pass thru siunitx macros

text: It seems that macros form the `\siunitx` package have a `\bm` problem, but no problem with `\textcolor`: ![enter image description here](http://i.stack.imgur.com/BJcTo.png) Note that the `180` passed thru the `\ang` macro is not bold. So, how do I change the `\MyFormat` macro so that `\bm` passes thru the `siunitx` macros. ## Code:               \documentclass{article}     \usepackage{xcolor}     \usepackage{bm}     \usepackage{siunitx}          \newcommand*{\MyFormat}[2][blue]{\bm{\textcolor{#1}{#2}}}%          \begin{document}          \[          \MyFormat{\frac{180}{\pi}} = \MyFormat{\frac{\ang{180}}{\pi}}     \]          \end{document}


title: Switch to LyX Code Keyboard Shortcut

text: In LyX, is there a keyboard shortcut to switch from the standard input to LyX code input?


title: Abbreviations for AM, PM (small caps) for use within \textbf

text: I have been using `\textsc` for the abbreviations for `AM`, `PM`, but it does not work within `\textbf{}`. As you can see in the image, within a `\textbf{}`, it reverts to the normal lower case letter. Ulrike Fischer suggests in bold small caps with mathpazo, to switch to uppercase characters when attempting to use a bold weight font, but that does not look right as the result lablelled `MyTextsc` shows (I modified it slightly to apply a `\tiny` size change): ![enter image description here](http://i.stack.imgur.com/wjASw.png) The results are not very good, so wondering if others have other suggestions? ## Code:               \documentclass{article}     \usepackage{lmodern}%     \usepackage[T1]{fontenc}%          \usepackage{graphicx}     \usepackage{xspace}          \makeatletter     \newcommand*{\AMorPMTextModeTextsc}[1]{%             \@ifnextchar{.}%                 {\textsc{\,{\small#1}}}%                 {\textsc{\,{\small#1}}\xspace}%     }%          % http://tex.stackexchange.com/a/24635/4301     \DeclareRobustCommand{\MyTextsc}[1]{%      \edef\@tempa{\f@series}\edef\@tempb{\bfdefault}%      \ifx\@tempa\@tempb%       \uppercase{{\tiny#1}}% \small here seems to do nothing      \else       {\scshape\small#1}%      \fi }          \newcommand*{\AMorPMTextModeMyTextsc}[1]{%             \@ifnextchar{.}%                 {\MyTextsc{\,{#1}}}%                 {\MyTextsc{\,{#1}}\xspace}%     }%          \makeatother               \newcommand{\PrintText}[1]{%     \makebox[8.0em][l]{Using \textbackslash#1:} 5:00\PM to 8:00\PM.\par     \makebox[8.0em][l]{Using \textbackslash#1:} \textbf{5:00\PM to 8:00\PM.}     }%          \begin{document}     \newcommand{\AM}{\AMorPMTextModeTextsc{am}}%     \newcommand{\PM}{\AMorPMTextModeTextsc{pm}}%     \PrintText{textsc}          \bigskip     \renewcommand{\AM}{\AMorPMTextModeMyTextsc{am}}%     \renewcommand{\PM}{\AMorPMTextModeMyTextsc{pm}}%     \PrintText{MyTextsc}     \end{document}


title: Appendices title before list of appendices

text: My table of contents has the following form:               1. Foo ............................. 1     2. Boo ............................. 2     A. something 1 ..................... 3     B. something 2 ..................... 4      But I would like it to look the following way:               1. Foo ............................. 1     2. Boo ............................. 2     Appendices     A. something 1 ..................... 3     B. something 2 ..................... 4      I use `scrbook` if it makes a difference.


title: How to draw dash-dotted curves using MetaPost?

text: Is it possible to (easily) draw dash-dotted curves in MetaPost, i.e. curves that alternate between a dash and a dot? For either dashed or dotted curves, I use the `draw` command and end it with `dashed evenly` or `dashed withdots`, respectively. Does MetaPost include a similar option for dash-dotted curves?


title: What is a suitable package for drawing term algebra style trees

text: I want to be able to draw something like nested triangles that are arranged in a tree-like fashion. Or explicitly, a node of a tree is represented as an isosceles triangle pointed upward. Each subtree should be drawn as a subtriangle. Here is an image ![enter image description here](http://i.stack.imgur.com/aaXgr.jpg) Are there any nice packages for doing things like this? Or should I use a geometry drawing package.


title: TikZ Region bounded by points

text: I have a set of points. I would like to "enclose" the points by a region. Since a picture is worth a thousand words: ![enter image description here](http://i.stack.imgur.com/Bu0le.jpg) The dots are the points I want to enclose. I want the ability to control the enclosure "rate". A parameter that allows me to go from the convex hull of the points to the minimal area(but within a padding). The Yellow region is the convex hull while the red region is a sort of "minimal" region(with padding). I would like to be able to get any region "in between". e.g., 0 would be minimal, 1 would be "maximal"(convex hull) and 1/2 would sort of be an average The point of this is to "highlight" a group of points(which you can see from the picture that regions do a good job) but I in some cases I'll need to prevent overlap by not using the convex hull(for example, if you combined the points from the blue and red then the convex hull of those points would overlap with the green while the minimal region would not). This maybe more of a mathematics problem than tikz but maybe someone knows of an easy way to accomplish this. (I am using lualatex and would prefer lua code(or possibly C/C++) since it would surely run faster) BTW, the point is to make it easy to use. I would like to simply specify the points, the parameter, and the color and that's it else it will become too tedious as there are a lot of regions to deal with.


title: SumatraPDF Inverse Search

text: I wanted to set the SumatraPDF Inverse-Search option on Inlage, according to instructions on this page. For some reason, my "options" menu ends at "Make SumatraPDF my default PDF reader" and doesn't show the "set inverse-search command-line" option. I have the latest 2.0.1 version. Any ideas?


title: unicode-math and amsmath incompatible

text: When I compile the following mwe with xelatex, I am told:               ERROR: LaTeX Error: Command \dddot already defined.          --- TeX said ---                    Or name \end... illegal, see p.192 of the manual.          l.571    \hbox{\normalfont ...}\vss}}}}      (That's line 571 of amsmath.sty).               \documentclass{minimal}     \usepackage{fontspec}     \setmainfont{LinLibertine_R.otf}     \usepackage{unicode-math}     \setmathfont{STIXGeneral}     \usepackage{amsmath}          \begin{document}          Hello, world.          \end{document}      Is there a bug, or am I doing something wrong? That allows compilation, but the braces are minuscule (the first one is supposed to span Ordinarium/Extraordinarium). Here's the longer example.               \documentclass{minimal}     \usepackage{mathtools}     \usepackage{unicode-math}     \setmainfont {LinLibertine_R.otf}     \setmathfont{STIXGeneral}          \begin{document}          \[     \begin{tabular}{c}     Somnium\\         proprie\\         dictum      \end{tabular}       \left\{\begin{array}{@{}l@{}}           \text{Ordinarium}         \left\{\begin{array}{@{}l@{}}           \begin{tabular}{@{}l@{}}             Vulgare seu commune\\             physicum ortum\\             ex principiis           \end{tabular}           \left\{\begin{tabular}{@{}l@{}}             Externis\\[3\jot]             Internis           \end{tabular}\right.\\[6\jot]           \text{Proprium aliquibus.}\\           \text{Præsagiens}         \end{array}\right.\\[12\jot]         \text{Extraordinarium}         \left\{\begin{array}{@{}l@{}}           \begin{tabular}{@{}l@{}}             θεῖον diuinum\\             θεόπεμπτον             immissum à Deo           \end{tabular}           \left\{\begin{tabular}{@{}l@{}}             Mediate per\\             bonos angelos\\[3\jot]             Immediate           \end{tabular}\right.\\[6\jot]           \text{Diabolicum}\\           \text{Δαιμονιόπεμπτον}         \end{array}\right.       \end{array}\right.     \]               \end{document}


title: Hypersetup to underline only cite texts

text: Is there a way to only _box_ my cite or _underline_ only my cite? I dont want to change the font color of my cite or anything. Is there a way to do that with hypersetup? In the image below, I just want the cite text to be underlined or boxed with a color. How to do it? ![Gustaffson and Webb](http://i.stack.imgur.com/id9jT.png)


title: Set chapters at section level in the table of contents

text: I have:               \chapter{My first chapter}     \chapter{My second chapter}     \phantomsection     \addcontentsline{toc}{chapter}{Appendixes}     \appendix     \makeatletter     \def\toclevel@chapter{1}\def\toclevel@section{2}     \makeatother     \chapter{My first appendix}     \chapter{My second appendix}      So my `hyperref` table of contents looks like:               - My first chapter     - My second chapter     + Appendixes       - My first appendix       - My second appendix      But my `\tableofcontents` still looks like:               1 My first chapter     2 My second chapter     Appendixes     A My first appendix     B My second appendix      And what I want is that the appendixes look like sections:               1 My first chapter     2 My second chapter     Appendixes       A My first appendix       B My second appendix      I can figure out, that there is a really small trick to do the job, but I can't find it...


title: How to plot data from multiple filters using pgfplots

text: I'm searching for a way to apply multiple filters to a data input and plot the result of each filter in one axis environment. I found the following question which applies one filter but uses the filter in an axis environment. Having multiple axis environment in a tikz picture ends up in weird results. Any idea how to achieve that for multiple filters/plots. EDIT: here an example:               P X Y     0 1 0.882352941176     0 2 11.0     0 3 11.0     0 4 6.0     0 5 3.0     0 6 1.0625     0 7 0.689655172414     0 8 0.541125541126     0 9 0.519576719577          1 1 1.13333333333     1 2 7.0     1 3 4.0     1 4 2.66666666667     1 5 1.2     1 6 0.594594594595     1 7 0.447368421053     1 8 0.423202614379     1 9 0.410808614384      I want to plot a parametrized plot For each `P` I want to create a line plot with `X` and `Y` values from the according `X` and `Y` column. I want to filter for each `P` and then plot all the results in one axis. Sorry for providing this only after being asked for.


title: etoolbox: trouble with boolean expressions

text: I'm new at making macros and am in the process of building a package to produce course outlines. I want the user to input room/day/time information as below (where everything has been simplified to just using the room)               \newcounter{RoomCount}     \NewDocumentCommand\Room{R(){TBA}}{%         \stepcounter{RoomCount}%         \expandafter\newcommand\csname Room\theRoomCount\endcsname{#1}%     }      At this point I would like to feed this information into a tabular environment to format the room/day/time information. To do so, I would like a macro that spits out 1 row for each room/day/time combination that has been input. This macro would then be executed in a tabular environment to build the table.               \NewDocumentCommand\buildrows{}{%     \newbool{myBool}%     \booltrue{myBool}%     \newcounter{rownum}%     \whileboolexpr{myBool}{%         \stepcounter{rownum}%         \ifcsdef{Room\therownum}%         {\csname Room\therownum\endcsname\\}%         {\boolfalse{myBool}}%     }%     }      The intention of the loop is: check whether the user has input a second room, if so, then write a row for tabular, if not, then set myBool to false so that the loop exits. The following, however, produces many "package etoolbox error: invalid boolean expression" errors               \begin{document}     \Room(C244)          \begin{tabular}{l}       \buildrows{}     \end{tabular}          \end{document}      At this point I don't have enough "tools in my toolbox" to figure out what I'm doing wrong so any help/suggestions would be greatly appreciated. Thanks! ps. The full example would be:               \documentclass{report}     \usepackage{xparse}     \usepackage{etoolbox}          \newcounter{RoomCount}     \NewDocumentCommand\Room{+R(){TBA}}{%     \stepcounter{RoomCount}%     \expandafter\newcommand\csname Room\theRoomCount\endcsname{#1}%     }          \NewDocumentCommand\buildrows{}{%     \newbool{myBool}%     \booltrue{myBool}%     \newcounter{rownum}%     \whileboolexpr{myBool}{%         \stepcounter{rownum}%         \ifcsdef{Room\therownum}%         {\csname Room\therownum\endcsname}%         {\boolfalse{myBool}}%     }%     }          \begin{document}     \Room(C244)          \begin{tabular}{l}     \buildrows{}     \end{tabular}          \end{document}


title: How to draw a quarter car model in LaTex? Which is basically a two masses and spring system

text: This is the code that i have been able to write up but i would like to make it better and label the springs and dampers and draw the ground. Also i need to draw the direction of the motion which would be y1 and y2 for two masses pointing up and i need to draw the free body diagram for this model. It would be really helpful if you can help me make this look good. I am having lot of trouble getting this done please help me.                   \documentclass{article}         \usepackage{tikz}          \usetikzlibrary{calc,patterns,decorations.pathmorphing,decorations.markings}               \begin{document}               \begin{tikzpicture}[every node/.style={draw,outer sep=0pt,thick}]          \tikzstyle{spring}=[thick,decorate,decoration={zigzag,pre length=0.3cm,post length=0.3cm,segment length=6}]          \tikzstyle{dampener}=[thick,decoration={markings, mark connection node=dmp,mark=at position 0.5 with {          \node (dmp) [thick,inner sep=0pt,transform shape,rotate=-90,minimum width=15pt,minimum height=3pt,draw=none] {};          \draw [thick] ($(dmp.north east)+(2pt,0)$) -- (dmp.south east) -- (dmp.south west) -- ($(dmp.north west)+(2pt,0)$); \draw [thick] ($(dmp.north)+(0,-5pt)$) -- ($(dmp.north)+(0,5pt)$);}}, decorate]          \tikzstyle{ground}=[fill,pattern=north east lines,draw=none,minimum width=0.75cm,minimum height=0.3cm]               \begin{scope}          \node at (0,0) [draw,name=A,rectangle, minimum width=2cm,minimum height=1cm,anchor=south,,transform shape] {$m1$};          \node at (0,-2) [name=B,rectangle, minimum width=2cm,minimum height=1cm,anchor=north,,transform shape] {$m2$};          \draw [spring] (-0.5,-2) -- (-0.5,0) node[left] {k1};           \draw [dampener] (0.5,-2) -- (0.5,0);           %\node (ground1) at (-1,-5)  [ground, anchor=north] {};            \draw [ground] (-1,-5) -- (1,-5);           \draw [spring] (-0.5,-5) -- (-0.5,-3) ;            \draw [dampener] (0.5,-5) -- (0.5,-3);                \end{scope}             \end{tikzpicture}            \end{document}


title: How to allow line breaks before the numbers in paragraph enumerations in ConTeXt?

text: I have some enumerated items, in paragraph form, like this:               \setuppapersize[A5]     \showgrid          \setupitemize[text, r]          \starttext         \startcolumns[n=2]             \startitemize                 \item This is a sentence.                 \item This is another sentence.                 \item This is yet another sentence.                 \item This sentences comes after the one before.             \stopitemize         \stopcolumns     \stoptext      This should make two distinct columns, however, text from the left column ends up running long and overlapping the second column. ConTeXt does not appear to allow a break to appear before an `\item` or between an `\item` and the first word following immediately after the `\item`, so I often find content is pushed into the neighboring column, e.g.:                                                 |     (i.) This is some text. (ii.) This|     is some more text. (iii.) This is |     yet some more text in a sentence. (iv.) This     is the last sentence.             |      How can I allow breaks to appear before `\item`, so that the text will not flow into the neighboring column? E.g.:                                                 |     (i.) This is some text. (ii.) This|     is some more text. (iii.) This is |     yet some more text in a sentence. |     (iv.) This is the last sentence.  |


title: How to have an amsart-like subsection style

text: If you use the `amsart` class, then it puts a period after the subsection title, but not if there is no title. For example, if I write               \subsection{Title}     Blah1     \subsection{}     Blah2      Then `amsart` produces > 0.1. **Title.** Blah1 > > 0.2. Blah2 I tried to achieve this in the article class using titlesec package, but so far I can make the period always appear or never appear. So, with the same coding as above, I get either > 0.1. **Title.** Blah1 > > 0.2. **.** Blah2 (notice the extra period after 0.2.) or > 0.1. **Title** Blah1 > > 0.2. Blah2 Does anyone know how to have the period appear after the subsection title only when there is actually a title?


title: How to switch to upright greek in math mode?

text: tI use `libertine` and `newtxmath` font packages, they provide upright greek letters. However, there is no way to automatically swith between italic and upright greek letters. I need a command, simillar to what is discussed here, to change normal greek letters to upright bold symbols. None of the commands `\mathrm`, `\mathbf`, `\boldsymbol` or `\bm` makes`\theta` to appear as `\uptheta`. Moreover, `isomath` package does not work with the encoding and its typeface is not desired. I don't want to globally switch to upright greek letters or change the font shape.               \documentclass{report}     \usepackage[T1]{fontenc}     \usepackage[type1]{libertine}     \usepackage[libertine]{newtxmath}     \usepackage{bm}           \begin{document}     What I get: $\theta \bm{\theta} \mathrm{\theta} \bm{\mathrm{\theta}}$          What I want: $\theta \bm{\theta} \uptheta \bm{\uptheta}$      \end{document}      **--- Partial Solution ---** I found that a new `upgreek` command may be defined to replace all greek letter macros (e.g. `\theta`) with their upside variants (e.g. `\uptheta`) in its argument. Following example does it for three greek letters. The scope of the command is local, so both variants can be used in a single equation.               \documentclass{report}     \usepackage[T1]{fontenc}     \usepackage[type1]{libertine}     \usepackage[libertine]{newtxmath}     \usepackage{bm}           \newcommand{\upgreek}[1]{{     \renewcommand{\beta}{\upbeta}     \renewcommand{\theta}{\uptheta}     \renewcommand{\zeta}{\upzeta}     #1     }}          \begin{document}     $\upgreek{\theta} \bm{\upgreek{\theta}} \theta \bm{\theta}$      \end{document}      **Questions:**   * Is it safe to patch `\mathrm` to run `\upgreek` on its argument?


title: How to format a Scenario text

text: I writing currently on a paper and i have a short scenario, how my product can be used in the future. i saw that most people use italic font and indention to mark it as a story. Is it possible that there is allready a command for that or do i need to just format my paragraph?


title: How to automatically put a space after the first parenthesis in f(x) g(y)?

text: When I write               \documentclass{article}     \usepackage{mathtools}     \DeclarePairedDelimiter\p{\lparen}{\rparen}          \begin{document}         \[             w = \int f\p*{x} g\p*{\frac{y}{2}} h\p*{z}\ dx         \]     \end{document}      I get ![](http://i.stack.imgur.com/aHsi3.png) but the three functions are squeezed too close to each other.   In fact, it's so bad that it looks like `g` is attached to `f(x)` rather than to `(y/2)`. So I need to add some space after the `)`. Clearly it's easy to fix via `\,` as follows:                       w = \int f\p*{x}\,g\p*{\frac{y}{2}}\,h\p*{z}\ dx      ![](http://i.stack.imgur.com/E1FdH.png) but I obviously don't want to litter the code with `\,` everywhere! Is there a way to make the space after a closing right parenthesis do this automatically?   (Note, this shouldn't affect behaviors in other situations -- so, for example, the spacing after a closing parenthesis should stay the same as it is originally if it is followed by a `+` sign instead of another function.)


title: "Grid" of background images in Beamer frame

text: I am trying to get a 2x2 grid of background images in a Beamer frame. I'd like the images to touch on all side (i.e., no whitespace around images). I am able to get a tabular environment inside `\usebackgroundtemplate{}`, but I have to play with negative `\hspace{}` to eliminate the left "margin" (feels like a hack). The problem is that the top row of images is behind the Beamer titles. When I use a single background image, I am able to use something like `\includegraphics[width=\paperwidth,height=\paperheight,trim=0cm 0cm 0cm -5cm,clip]{image.jpg}}` to push the image down below the Beamer titles. That also feels like a hack, but it works. However, I can't figure out how to do something similar with the tabular environment. A MWE follows which also contains an attempt at using `minipage` environments, but all images end up in the same row despite trying many iterations of `\linebreak`, `\pagebreak`, etc.:               \documentclass{beamer}          \usetheme{Madrid}     \usecolortheme{default}     \usefonttheme[onlylarge]{structurebold}     \useinnertheme{rectangles}     \useoutertheme{smoothbars}     \setbeamertemplate{navigation symbols}{}          % Code for placeholder images     \makeatletter       \AtBeginDocument{%         \def\Ginclude@graphics#1{%           \begingroup\fboxsep=-\fboxrule           \fbox{\rule{\@ifundefined{Gin@@ewidth}{150pt}{\Gin@@ewidth}}{0pt}%             \rule{0pt}{\@ifundefined{Gin@@eheight}{100pt}{\Gin@@eheight}}}\endgroup}}     \makeatother          \usepackage{graphicx}          \begin{document}     \usebackgroundtemplate{%     \def\arraystretch{0}     \renewcommand{\tabcolsep}{0cm}     \hspace*{-0.4cm}     \begin{tabular}{@{}cc@{}}         \includegraphics[width=0.5\paperwidth,height=0.5\paperheight]{} &         \includegraphics[width=0.5\paperwidth,height=0.5\paperheight]{} \\         \includegraphics[width=0.5\paperwidth,height=0.5\paperheight]{} &         \includegraphics[width=0.5\paperwidth,height=0.5\paperheight]{} \\     \end{tabular}     }     \begin{frame}       \frametitle{Using tabular...}     \end{frame}     \usebackgroundtemplate{}          \usebackgroundtemplate{%     \begin{minipage}{1.0\paperwidth}       \includegraphics[width=0.5\paperwidth,height=0.5\paperheight]{}       \includegraphics[width=0.5\paperwidth,height=0.5\paperheight]{}     \end{minipage}     \begin{minipage}{1.0\paperwidth}       \includegraphics[width=0.5\paperwidth,height=0.5\paperheight]{}       \includegraphics[width=0.5\paperwidth,height=0.5\paperheight]{}     \end{minipage}     }     \begin{frame}       \frametitle{Using minipage...} % All images end up on one line...     \end{frame}     \usebackgroundtemplate{}          \end{document}      ![Result](http://i.stack.imgur.com/iLW3H.png) Image posted by JLDiaz


title: full page table within paragraph

text: I have several large tables in my thesis. Some of them are about 2/3 of a page, and placing them at the top of a page works fine, even when a paragraph has to be broken to allow for the space. My problem is that a few of my tables are full page tables, and LaTeX _always_ puts them in between paragraphs (leaving lots of white spaces before the table). What I want is for the text to be typeset as if the page with the table weren't there, and then just insert the page with the table in between. Is that possible? Here is a minimum working example:               \documentclass[12pt,a4paper,openany]{report}     \textheight 9.5in\topmargin -.5in\textwidth 6in\hoffset 0.2cm     \renewcommand{\arraystretch}{1.25}     \usepackage[Lenny]{fncychap}     \usepackage{amsmath}      \usepackage{ctable}     \usepackage{caption}     \usepackage{lscape}     \usepackage[english]{babel}     \usepackage{blindtext}     \usepackage{fancyhdr}                    \begin{document}     \fancypagestyle{plain}{\fancyhf{}\renewcommand{\headrulewidth}{0pt}}     \makeatletter     \def\cleardoublepage{\clearpage\if@twoside \ifodd\c@page\else     \hbox{}     \thispagestyle{plain}     \newpage     \if@twocolumn\hbox{}\newpage\fi\fi\fi}     \makeatother\clearpage{\pagestyle{plain}\cleardoublepage}     %     \setlength{\arraycolsep}{0.02in}     \lineskip=.5ex \baselineskip 5ex      %     % Define pagestyle     %     \pagestyle{fancy}     \renewcommand{\chaptermark}[1]{\markboth{\chaptername\ \thechapter}{}}     \fancyhf{}     \fancyhead[LO,RE]{\leftmark}     \fancyfoot[LE,RO]{\thepage}               \chapter{Introduction}     This is randomly generated text. \blindtext     \begin{table}[ht!]     \centering     \renewcommand{\arraystretch}{1.2}     \caption{Long table caption\newline     \footnotesize{\blindtext }      }\label{tab:firsttable}      {\footnotesize       \renewcommand{\arraystretch}{1.1}      \begin{tabular*}{\columnwidth}{@{\extracolsep{\fill}}lccccc}\toprule     dep. var.:  $\sigma^M_{\tau+15\text{min}}$ & \textbf{I} & \textbf{II} &      \textbf{III} & \textbf{IV} & \textbf{V} \\      \midrule     $\overline{\text{GD}}^{\text{buy}}_\tau(\widehat{\lambda})$ &   & -0.034 &   -0.030 & -0.030 & -0.028 \\       &  & (-6.82) & (-6.83) & (-5.44) & (-5.23) \\      $\overline{\text{GD}}^{\text{sell}}_\tau(\widehat{\lambda})$ &   & -0.021 &  -0.017 & -0.011 & -0.011 \\       &  & (-3.51) & (-3.14) & (-1.50) & (-1.56) \\      $\overline{\text{SLOPE}}_\tau$ &  &  & 0.013 & 0.017 & 0.015 \\      &  &  & (1.87) & (2.79) & (2.26) \\      $\overline{\text{relSPR}}_\tau$ &  &  & 0.028 & 0.022 & 0.021 \\       &  &  & (5.41) & (2.28) & (2.12) \\      $\overline{\text{NT}}_\tau$ &  &  & 0.008 &  & 0.008 \\       &  &  & (1.34) &  & (1.24) \\      $\overline{\text{AQ}}_\tau$ &  &  & -1.17 &  & 0.001 \\       &  &  & (-0.02) &  & (0.28) \\      $\overline{\text{AMR}}_\tau$ &  &  &  & 0.002 & 0.002 \\       &  &  &  & (0.47) & (0.58) \\      $\overline{\text{logQS}}_\tau$ &  &  &  & 0.014 & 0.014 \\       &  &  &  & (0.94) & (0.96) \\      $\overline{\text{DHW}}_\tau$ &  &  &  & 0.003 & 0.003 \\       &  &  &  & (0.62) & (0.60) \\      $\sigma^M_\tau$ & 0.038 & 0.023 & 0.013 & 0.015 & 0.011 \\       & (6.82) & (4.96) & (2.51) & (3.30) & (2.19) \\      constant & 0.179 & 0.749 & -0.796 & -0.947 & -0.889 \\       & (7.94) & (8.07) & (-2.54) & (-3.14) & (-2.87) \\       &  &  &  &  &  \\      adj. $R^2 (\%)$ & 16.94 & 24.62 & 28.81 & 28.88 & 28.95 \\      \bottomrule     \end{tabular*}      }     \end{table}     \Blindtext     \begin{landscape}     \begin{table}[p]     \centering     \renewcommand{\arraystretch}{1.2}      \caption{Another long caption\newline       \footnotesize{\blindtext}}\label{tab:secondtable}      {\footnotesize       \renewcommand{\arraystretch}{1.1}        \begin{tabular*}{\columnwidth} {@{\extracolsep{\fill}}lccccccccccc}\toprule      & \textbf{IC$_t$} & \textbf{RC$_t$} & \textbf{VRP$_t$} &      \textbf{$\overline{\text{VRPi}}$} & \textbf{log(P$_t$$/$D$_t$)} &  \textbf{log(P$_t$$/$E$_t$)} & \textbf{CAY$_t$} & \textbf{DS$_t$} & \textbf{TS$_t$} & \textbf{RREL$_t$} & \textbf{$\textbf{R}_{\textbf{m}t}-\textbf{R}_{\textbf{f}t}$} \\      \midrule     \multicolumn{ 12}{l}{\textbf{Panel A: Summary Statistics}} \\      mean & 0.50 & 0.33 & 2.39 & -25.69 & 3.99 & 3.24 & -0.59 & 1.01 & 1.68 & -1.63 & 0.33 \\       min & 0.19 & 0.05 & -325.93  & -603.13 & 3.16 & 2.71 & -3.73 & 0.55 & -0.53 & -23.17 & -20.49 \\       max & 0.81 & 0.78 & 48.62& 37.44 & 4.41 & 4.83 & 3.14 & 3.38 & 3.70 & 12.83 & 10.37 \\       st. dev. & 0.14 & 0.14 & 33.82 & 66.14 & 0.24 & 0.42 & 2.00 & 0.49 & 1.21 & 7.24 & 4.99 \\       AC(1) & 0.81 & 0.61 & 0.51 & 0.46 & 0.97 & 0.93 & 0.98 & 0.96 & 0.98 & 0.85 & 0.15 \\       AC(2) & 0.73 & 0.46 & 0.26 & 0.30 & 0.94 & 0.86 & 0.95 & 0.89 & 0.94 & 0.82 & -0.05 \\       \midrule       &  &  &  &  &  &  &  &  &  &  &  \\       \multicolumn{ 12}{l}{\textbf{Panel B: Unconditional Correlation Matrix}}  \\       IC$_t$ & 1.00 &  &  &  &  &  &  &  &  &  &  \\       RC$_t$ & 0.57 & 1.00 &  &  &  &  &  &  &  &  &  \\       VRP$_t$ & -0.01 & -0.39 & 1.00 &  &  &  &  &  &  &  &  \\       $\overline{\text{VRPi}}$ & -0.05 & -0.24 & 0.90 & 1.00 &  &  &  &  &  &  &  \\       log(P$_t$$/$D$_t$) & -0.49 & -0.53 & 0.23 & 0.13 & 1.00 &  &  &  &  &  &  \\       log(P$_t$$/$E$_t$) & 0.16 & 0.04 & 0.04 & -0.12 & -0.13 & 1.00 &  &  &  &  &  \\       CAY$_t$ & 0.18 & -0.25 & 0.04 & -0.14 & 0.19 & 0.12 & 1.00 &  &  &  &  \\       DS$_t$ & 0.26 & 0.54 & -0.51 & -0.51 & -0.65 & 0.41 & -0.20 & 1.00 &  &  &  \\       TS$_t$ & 0.47 & 0.39 & -0.06 & -0.02 & -0.40 & 0.39 & -0.08 & 0.42 & 1.00 &  &  \\        RREL$_t$ & -0.31 & -0.27 & 0.08 & 0.14 & 0.22 & -0.39 & -0.21 & -0.45 & -0.47 & 1.00 &  \\       $\text{R}_{\text{m}t}-\text{R}_{\text{f}t}$ & -0.02 & -0.29 & 0.32 & 0.28 & 0.10 & 0.12 & 0.00 & -0.23 & 0.01 & 0.13 & 1.00 \\      \bottomrule     \end{tabular*}     }     \end{table}     \end{landscape}     \Blindtext          \end{document}       When you compile this you will get 6 pages of random text. Table 1.2 is inserted (as I expected it to be) at the top of page 2, within a paragraph that starts on page 1 and continues after the table on page 2. Table 1.2, which takes a full page, starts after a paragraph leaving a white space at the end of page 3. I would like the new paragraph (which now starts at the top of page 5) to start on page 3 and to continue at page 5, inserting table 1.2 on page 4 (which would be the same behaviour as table 1.2).


title: How do I make a subsection title visible in a header on page with chapter / section

text: Could someone please give me a hand to correctly use `\markboth{}{}` within redefinition of the `\sectionmark`? I am struggling to apply the second parameter in `\markboth`. The article I am writing needs to have both section and subsection titles on all pages. I read Header not displaying correctly on chapter page due to subsection and understood that `\chapter` or `\section` commands make the `\markright` field empty and therefore subsection does not appear on pages where `\chapter` or `\section` is issued. I still cannot understand how to make this work. I will be grateful for any help. PS. Below is the LaTeX code. I am compiling the article using XeLaTeX.               \documentclass[11pt]{article}     \special{papersize=210mm,297mm}          \title{\bfseries Factor Analysis}     \author{J. Smith}          % Set font     \usepackage{unicode-math}     \setmainfont[Ligatures=TeX]{Cambria}     \setmathfont{Cambria Math}          % if then     \usepackage{ifthen}          \usepackage[a4paper,portrait,hmargin=2.54cm,vmargin=2.54cm,bindingoffset=0cm,includehead,includefoot]{geometry} % Document margins     \geometry{headheight=14pt}          % Multi columns     %\usepackage{paralist} % Used for the "compactitem" environment which makes bullet points with less space between them     \usepackage{multicol} % Used for the two-column layout of the document     \setlength{\columnsep}{20pt}          % Fancy headers     \usepackage{fancyhdr} % Headers and footers     \pagestyle{fancy} % All pages have headers and footers     \fancyhf{} % clear all headers and footers - equivalent to %\fancyhead{} and \fancyfoot{}     \renewcommand{\headrulewidth}{0.4pt}     \renewcommand{\footrulewidth}{0.4pt}     \newcommand{\mymarks}{         \ifthenelse{\equal{\rightmark}{}} % is \rightmark empty?             {\leftmark} % when empty             {\leftmark\ --\ \itshape\rightmark} % when not empty     }     \renewcommand{\sectionmark}[1]{\markboth{\thesection.\ #1}{}}     \renewcommand{\subsectionmark}[1]{\markright{#1}}     \fancyhead[C]{\mymarks} % Custom header text     \fancyfoot[C]{\thepage} % Custom footer text          \usepackage{graphicx}     \usepackage{url} % allows escaping special characters inside a hyper links in a bibliography such as %20 etc.     \usepackage[round]{natbib}     \usepackage{setspace}     \usepackage[format=hang,font=small,labelfont=bf]{caption} % Custom captions under/above floats in tables or figures          % Links in PDF     %\usepackage[hidelinks]{hyperref}     \usepackage{hyperref}     \hypersetup{         bookmarks=false,         % show bookmarks bar?         pdftoolbar=true,        % show Acrobat’s toolbar?         pdfmenubar=true,        % show Acrobat’s menu?         pdffitwindow=false,     % window fit to page when opened         pdfstartview={FitH},    % fits the width of the page to the window         pdftitle={Exposure response relationship to noise in the presence of vibration},    % title         pdfauthor={Zbigniew Koziel},     % author         pdfsubject={Environmental Noise and Vibration},   % subject of the document         pdfcreator={Zbigniew Koziel},   % creator of the document         pdfproducer={Zbigniew Koziel}, % producer of the document         pdfkeywords={noise} {vibration} {exposure response-relationship}, % list of keywords         pdfnewwindow=true,      % links in new window         colorlinks=true,         citecolor=blue,         linkcolor=red,      % color of internal links (change box color with linkbordercolor)         urlcolor=blue,         filecolor=black      % color of file links     }          % Change default commands     \renewcommand{\thefigure}{\arabic{section}.\arabic{figure}}     \renewcommand{\theequation}{\arabic{section}.\arabic{equation}}          % New commands     \newcommand{\defaultvspacing}{\doublespacing}     \newcommand{\compactvspacing}{\onehalfspacing}     \newcommand{\tidyvspacing}{\singlespacing}     \newcommand{\myterm}[2]{$#1_{\mathrm{#2}}$}     \newcommand{\defvspace}{12pt}     \newcommand{\clearthepage}{\clearpage} % depending on one or two side     \newcommand{\mysection}[2]{\clearthepage\markright{#2}\section{#1}}          \begin{document}     \tidyvspacing     \maketitle     \begin{abstract}         The abstract     \end{abstract}     \tableofcontents          \compactvspacing     \include{introduction}     \include{conceptual_view}     \include{fa_and_sm}     \include{the_factor_model}     \include{interpeting_factor_tables}          \bibliography{thesis} % Here from this place, the Bibliography should appear !     % \bibliographystyle{plain} % Standard commands for BiBTeX     \bibliographystyle{plainnat} % Extended commands from package natbib     \end{document}


title: Tikzpicture and matrix

text: I want use `tikzpicture` for draw my matrix, U=[matrix], using this code               \begin{align*}     U&=     \begin{tikzpicture}[decoration=brace]     \matrix (m)[matrix of math nodes,left delimiter=[,right delimiter={]},ampersand replacement=\&] {         \dfrac{2}{N}-1 \& \dfrac{2}{N} \& \cdots \& \dfrac{2}{N} \& \cdots\& \dfrac{2}{N} \\         \vdots \& \vdots \& \ddots \& \cdots \& \vdots \& \vdots \\         \,\,\,\,\,\dfrac{2}{N}\,\,\,\, \& \dfrac{2}{N} \& \dfrac{2}{N} \& \dfrac{2}{N}-1 \& \cdots \& \dfrac{2}{N} \\         \vdots \& \vdots \& \vdots \& \vdots \& \ddots \& \vdots\\         \dfrac{2}{N} \& \dfrac{2}{N} \& \cdots \& \dfrac{2}{N} \& \cdots  \& \dfrac{2}{N}-1\\     };         \draw[decorate,transform canvas={xshift=-1.4em},thick] (m-3-1.south west) -- node[left=2pt] {$m$} (m-1-1.north west);         \draw[decorate,transform canvas={yshift=0.5em},thick] (m-1-1.north west) -- node[above=2pt] {$m$} (m-1-4.north east);     \end{tikzpicture}     \end{align*}      but I can not get align `U=`. How I will be able to make this? ![enter image description here](http://i.stack.imgur.com/Ugluk.png)


title: \bfseries and alignment in table

text: I'm trying to highlight some decimal-point aligned entries in two large tables which are arranged in two columns. I'm using `\bfseries` to do this and unfortunately this seems to be affecting the alignment. I have read the documentation and have made `\bfseries` robust by prepending `\robustify`, however the result is still somewhat misaligned. Here is an example which contains a small part of the table:               \documentclass{article}          \usepackage{comment}          \usepackage[left=1.5cm, right=1.5cm]{geometry}     \usepackage{subcaption}     \usepackage{booktabs}     \usepackage{multirow}     \usepackage{tabularx}     \usepackage{ragged2e}     \usepackage{etoolbox,siunitx}          \begin{document}          \begin{table}       \begin{subtable}[b]{0.47\textwidth}       \resizebox{1\textwidth}{!}       {%         \large         \robustify\bfseries         \sisetup{detect-weight=true,detect-inline-weight=math}         \begin{tabular}{S[table-format=1.2(2)]S[table-format=1.2(2)]S[table-format=2.2(2)]S[table-format=2.2(2)]}         \toprule             1.68(2) & 2.66(16) & 8.39(12) & 13.11(25)\\             0.95(1) & 1.38(4)  & 4.64(18) &  9.76(32)\\             0.80(1) & 1.18(5) & 7.52(31) & 12.64(24)\\             0.95(1) & 1.32(3) & 3.13(15) & \bfseries 8.68(29)\\             0.21(0) & 0.30(1) & 5.59(63) & 12.07(23)\\             0.36(0) & 0.50(1) & \bfseries 1.26(16) &  9.42(57)\\             0.15(0) &  0.22 (1) & 3.49(98) & 12.19(34)\\           \cmidrule(l{\dimexpr 0.5em}r{\dimexpr 0.5em}){1-4}             0.83(1) & 1.22(5) & \bfseries 5.08(26) & \bfseries 10.95(32)\\         \bottomrule         \end{tabular}       }       \end{subtable}       \hspace{0.05\textwidth}       \begin{subtable}[b]{0.47\textwidth}       \resizebox{1\textwidth}{!}       {%         \large         \robustify\bfseries         \sisetup{detect-weight=true,detect-inline-weight=math}         \begin{tabular}{S[table-format=1.2(2)]S[table-format=1.2(2)]S[table-format=2.2(2)]S[table-format=2.2(2)]}         \toprule             \bfseries 1.68(2) & \bfseries 2.66(1) & 8.39(12) & 13.11(25)\\             0.95(1) & 1.38(4)  & 4.64(18) &  9.76(32)\\             0.80(1) & 1.18(5) & 7.52(31) & 12.64(24)\\             0.95(1) & 1.32(3) & 3.13(15) & 8.68(29)\\             0.21(0) & 0.30(1) & 5.59(63) & 12.07(23)\\             0.36(0) & 0.50(1) & 1.26(16) &  9.42(57)\\             0.15(0) &  0.22 (1) & 3.49(98) & 12.19(34)\\           \cmidrule(l{\dimexpr 0.5em}r{\dimexpr 0.5em}){1-4}             0.83(1) & 1.22(5) & \bfseries 5.08(26) & \bfseries 10.95(32)\\           \bottomrule         \end{tabular}       }       \end{subtable}     \end{table}               \end{document}      This is the result I get, the decimal points are not aligned. Any ideas how to fix this? I'm using TexLive 2012 installed via the Ubuntu package manager. ![](http://i.stack.imgur.com/kKDBu.png)


title: Custom intervals in x-axis

text: I'm trying to add a custom interval to the x-axis. In the image below, this is what I'd like to achieve (from Excel). ![enter image description here](http://i.stack.imgur.com/vsBcy.png). Latex is putting its own interval as seen below: ![enter image description here](http://i.stack.imgur.com/7gAc1.png) My graph is defined as follows (I'm leaving out the co-ordinates and labels):               \begin{figure}[p]     \centering     \begin{tikzpicture}     \begin{axis}[     ylabel near ticks,     scale only axis,     x dir=reverse,     width=12cm]     \addplot [mark=none] coordinates {     };     \end{figure}      How could I achieve this?


title: Conversion of big "amount" of seconds into HH:MM:SS when plotting timeseries with pgfplots

text: My aim is to plot a timeseries (experimental data) using pgfplots in LaTeX (pdfLaTeX, TexLive on Mac). The data I'm using is seperated with semicolons (columnwise) and has the following structure:               -- some additional information here --          time;val1;val2;val3     sec;unit1;unit2;unit3     0.0000;1.0000;5.0000;560.0000     1.0000;7.0000;14.0000;845.0000     2.0000;5.0000;28.0000;874.0000     3.0000;9.0000;30.0000;125.0000     4.0000;12.0000;4.0000;359.0000     5.0000;25.0000;17.0000;254.0000     -- further data --     10630.0000;13.0000;27.0000;679.0000      As you can see, my timestamp is in elapsed seconds since the experiment started. Because they took some time it is unhandy to simply use seconds as a x axis label. Furthermore I have to convert the elapsed time from seconds to corresponding hours, minutes and seconds (HH:MM:SS). My first plan was to use Gnuplot and import the data file using "%s" as timefmt to do the conversion into HH:MM:SS. This implies that every experiment would start at 1970-01-01 00:00:00 which isn't a problem because they do not take longer than a day, so the elapsed time is just a question of defining the beginning of the experiment. However I was not happy with the visual results getting out of Gnuplot. Customizing layout and design of the plotted diagram becomes much easier when using pgfplots. There are several examples of plotting timeseries in the manual, but in contrast to my case they are only using small "amounts" of elapsed seconds, so that it isn't necessary to use HH:MM:SS as the timeformat. Therefore I'm looking for a convenient way to plot my data using pgfplots, especially converting the timestamp in the needed format. So is there a way to plot timeseries with pgfplots and convert elapsed seconds to HH:MM:SS directly (without converting the timestamp with perl, python or awk)? Any hint would be appreciated. --- edit --- I was asked to deliver a MWE. Here it is: mwe.tex:               \documentclass{scrbook}     \usepackage[T1]{fontenc}     \usepackage[utf8]{inputenc}     \usepackage{pgfplots}     \pgfplotsset{compat=1.6}          \begin{document}         \begin{tikzpicture}             \begin{axis}[width=\textwidth, height=0.6\textwidth, no markers, xlabel = time, ylabel = values]                 \addplot table[col sep = semicolon, x = time, y = val1] {mwe.dat};             \end{axis}         \end{tikzpicture}     \end{document}      mwe.dat:               time;val1;val2;val3;val4;val5;val6;val7     0.0000;988.9041;386.0514;60.9407;999.7958;0.0000;0.0000     1.0000;989.7011;386.0415;60.9728;976.1486;0.0000;0.0000     2.0000;990.0765;385.9371;60.9987;952.5087;0.0000;0.0000     3.0000;990.4712;385.8035;61.0285;928.8734;0.0000;0.0000     4.0000;990.9448;385.5937;61.0698;905.2437;0.0000;0.0000     5.0000;990.6617;385.4375;61.0748;881.6223;0.0000;0.0000     6.0000;989.9383;385.3135;61.0587;858.0044;0.0000;0.0000     7.0000;988.5733;385.1901;61.0135;833.6808;0.0000;0.0000     8.0000;987.3644;385.0865;60.9733;806.8475;0.0000;0.0000     9.0000;986.4483;385.0294;60.9415;780.0141;0.0000;0.0000     10.0000;986.0016;385.0210;60.9238;753.1808;0.0000;0.0000     11.0000;985.8277;385.0401;60.9147;726.3475;0.0000;0.0000     12.0000;984.4391;385.1332;60.8492;723.1921;0.0000;0.0000     13.0000;983.3045;385.2164;60.7955;728.9315;0.0000;0.0000     14.0000;982.8382;385.2735;60.7722;734.7187;0.0000;0.0000     15.0000;982.9965;385.3436;60.7717;740.5941;0.0000;0.0000     16.0000;983.4755;385.4198;60.7830;746.5047;0.0000;0.0000     17.0000;984.9704;385.6830;60.8148;752.4778;0.0000;0.0000     18.0000;986.2632;385.9315;60.8405;758.4951;0.0000;0.0000     19.0000;987.0770;386.1411;60.8520;764.5697;0.0000;0.0000     20.0000;987.3939;386.3976;60.8385;770.7164;0.0000;0.0000     21.0000;987.4412;386.6834;60.8108;776.8907;0.0000;0.0000     22.0000;987.9269;387.0912;60.7888;783.1180;0.0000;0.0000     23.0000;988.1399;387.3974;60.7663;789.3953;0.0000;0.0000     24.0000;987.8219;387.4927;60.7442;795.7339;0.0000;0.0000     25.0000;988.0637;386.9380;60.8090;802.1863;0.0000;0.0000     26.0000;988.5963;386.0614;60.9175;808.6687;0.0000;0.0000     27.0000;987.6652;385.7920;60.9090;815.1513;0.0000;0.0000     28.0000;986.6169;385.6135;60.8860;821.6718;0.0000;0.0000     29.0000;985.3884;385.5848;60.8385;828.2465;0.0000;0.0000     30.0000;985.4399;385.5550;60.8437;834.8711;0.0000;0.0000     31.0000;986.2023;385.5266;60.8778;841.5231;0.0000;0.0000     32.0000;986.9324;385.4412;60.9145;848.2865;0.0000;0.0000     33.0000;987.5075;385.3449;60.9463;855.0678;0.0000;0.0000     34.0000;987.7267;385.2306;60.9663;861.8730;0.0000;0.0000     35.0000;987.6674;385.1904;60.9675;886.9654;0.0000;0.0000     36.0000;987.4361;385.1904;60.9575;916.8582;0.0000;0.0000     37.0000;987.4476;385.3017;60.9467;947.5736;0.0000;0.0000     38.0000;987.5697;385.4517;60.9363;978.3246;0.0000;0.0000     39.0000;987.9338;385.6803;60.9278;1009.1204;0.0000;0.0000     40.0000;987.7699;385.9028;60.9005;1039.9814;0.0000;0.0000     41.0000;987.2990;386.1220;60.8622;1070.8631;0.0000;0.0000     42.0000;988.3801;386.4268;60.8735;1101.7662;0.0000;0.0000     43.0000;989.3858;386.7080;60.8840;1132.7088;0.0000;0.0000     44.0000;990.1323;386.9273;60.8908;1163.7107;0.0000;0.0000     45.0000;990.7607;387.1280;60.8950;1194.7748;0.0000;0.0000     46.0000;991.3162;387.3188;60.8977;1225.8631;0.0000;0.0000     47.0000;991.1619;387.5554;60.8675;1256.9812;0.0000;0.0000     48.0000;990.6974;387.7468;60.8295;1288.1291;0.0000;0.0000     49.0000;989.6294;387.8324;60.7783;1319.3191;0.0000;0.0000     50.0000;988.8349;387.9233;60.7372;1350.5206;0.0000;0.0000     51.0000;988.1823;388.0189;60.7010;1381.7315;0.0000;0.0000     52.0000;988.3326;387.9931;60.7097;1412.9950;0.0000;0.0000     53.0000;988.5325;387.9609;60.7210;1444.2736;0.0000;0.0000     54.0000;988.8032;387.9228;60.7355;1475.5712;0.0000;0.0000     55.0000;988.9989;387.9708;60.7383;1506.9010;0.0000;0.0000     56.0000;989.1569;388.0661;60.7350;1538.2455;0.0000;0.0000     57.0000;989.0603;387.4017;60.7977;1569.6309;0.0000;0.0000     58.0000;988.9272;386.1502;60.9180;1601.0924;0.0000;0.0000     59.0000;988.7421;383.7395;61.1525;1632.6452;0.0000;0.0000     60.0000;988.4541;380.8603;61.4303;1664.2852;0.0000;0.0000      Unfortunately I realized that plotting those 10.000 somewhat datapoints is not possible out of the box because LaTeX-Memory is too small.   Due to that I will switch back to gnuplot and use the standalone terminal function with tikz. However, after reading the manual of pgfplots again, it doesn't seem that pgfplots is able to convert seconds to HH:MM:SS. Furthermore pgfplots needs timestamps in YYYY-MM-DD HH:MM and seconds are always zero, according to the manual. Do you have any idea how to combine the huge advantages of customizing the diagram's layout of pgfplots with gnuplot?


title: Figure with four subfigures using epslatex

text: I'm trying to make a figure with four epslatex subfigures. I found A.Elletts answer in Minipage with four figures - avoiding too much whitespace to be very helpful. However, it only deals with imagefiles which are included and resized using the "\includegraphics" command. For my epslatex files, I have to use "\input{foo.tex}" which leaves me unable to resize the images from my tex- document. Would I have to do this in the tex-files of the eps image files, or is there some other neat way?


title: How could I type the symbol of an ideal

text: I wish to type the symbol of an ideal B. See the link below (I cannot attach a picture since I am new here) http://kobotis.net/math/ec/ShortNotes/sn_GaloisExtensionOfLocalField.pdf But it is different from what I will get from `\mathfrak{B}`. How should I type it?


title: Problems citing letters published in articles in biblatex-chicago

text: I'm having trouble citing `@letter`s printed as part of an `@article` using `biblatex-chicago`. This is my MWE:               \documentclass[utf8,12pt,letterpaper]{report}          \usepackage{fontspec}     \defaultfontfeatures{Ligatures=TeX}     \setmainfont{Linux Libertine O}          \begin{filecontents}{bibliography.bib}     @letter{Raux18101789Bertin,     author = {Raux, {Nicolas Joseph}},     title = {Nicolas Joseph Raux to Henri Bertin},     shorttitle = {to Bertin, 18 October 1789},     origlocation = {Peking},     origdate = {1789-10-18},     xref = {Cordier1913LesCorrespondants},     options = {skipbib=true}     }          @letter{Raux12111789Bertin,     author = {Raux, {Nicolas Joseph}},     title = {Nicolas Joseph Raux to Henri Bertin},     shorttitle = {to Bertin, 12 November 1789},     origlocation = {Peking},     origdate = {1789-11-12},     xref = {Cordier1913LesCorrespondants},     options = {skipbib=true}     }          @letter{Raux17111786Bertin,     author = {Raux, {Nicolas Joseph}},     title = {Nicolas Joseph Raux to Henri Bertin},     shorttitle = {to Bertin, 17 November 1786},     origlocation = {Peking},     origdate = {1786-11-17},     xref = {Cordier1913LesCorrespondants},     options = {skipbib=true}     }          @article{Cordier1913LesCorrespondants,     author = {Cordier, Henri},     journal = {T'oung Pao},     volume = {14},     number = {2},     pages = {227--257},     origdate = {1784/1790},     date = {1913},     addendum = {letters originally written 1784--1790},     title = {Les Correspondants de Bertin, Secrétaire d'état au \textsc{xviii}\textsuperscript{e} siècle}     }     \end{filecontents}          \usepackage[notes,strict,isbn=false,backend=biber,bibencoding=utf8]{biblatex-chicago}          \addbibresource{bibliography.bib}          \begin{document}          .\footcite{Raux18101789Bertin}          .\footcite{Raux12111789Bertin}          .\footcite{Raux17111786Bertin}          \printbibliography          \end{document}      The citations produced look like this: ![enter image description here](http://i.stack.imgur.com/oaKcD.png) As you can see, the first citation doesn't appear correctly. There is a secondary formatting issue stemming from the fact that `biblatex- chicago` doesn't seem to like to cite `letters` in `article`s (if it did so correctly, I would want to see the journal name etc in the first citation of every `letter`, but that is not the case). Although I'd love to find a solution to this secondary problem as well, my issue here is first and foremost with the fact that the `xref` doesn't seem to work in the first `letter` I cite, no matter which one I put first. I compile with `xelatex`. Any ideas? Thanks!


title: Creating independently-numbered Chapter-level structures

text: I'm writing a book in which, between chapters, I may have chapter-size chunks of text that discuss a software package related to the book's content. Consequently, I wish to label these things something other than chapters. For example, I'd like my TOC to be something like this: > 1   Here would go my title for Chapter 1 > > 2   Here would go my title for Chapter 2 > > Software Break 1: Getting to Know Foo and Bar > > 3   Here would go my title for Chapter 3 > > Software Break 2: Here Come Baz and Quux! > > 4   Here would go my title for Chapter 4 and so on. You can see three requirements here:   1. Software Breaks have a counter independent from that of Chapters.   2. Software Breaks appear differently in the TOC.   3. Otherwise, Software Breaks function identically to chapters. E.g., somewhere in a chapter, I might type something like this:              We covered widget frozzling in Software Break \ref{break:intro} on page \pageref{break:intro}.      I guess what I'm saying is that I want to recreate whatever the standard book document class does for Chapters, but again, as a totally other class of thing, called a Software Break. So I took a look at the `book.cls` source code (here), but I'm simply not a sophisticated enough LaTeXer to understand it yet. I could try copying and pasting big chunks of stuff about chapter definitions, but I'd have no confidence I was doing it right or that it would succeed. Alternately, perhaps what I need to do is manually change the name/appearance/number of just some of my chapters? I won't exactly be moving chapters around a lot, so if I have to manually number them, it's not a big deal. Any advice appreciated! Thank you!


title: Compiling with texmaker fails, compiling on commandline works

text: Hi I can compile my latex document using `pdflatex -synctex=1 -interaction=nonstopmode -shell-escape Masterthesis.tex` When I hit the quick compile button in textmaker however nothing happens. I noticed that the log in the texmaker log window shows the log I created when I compiled via the command line. Instead of compiling it shows me the old log file (I can tell it because the log shows when the command was issued, and its old). In the settings the quick compile comand is set as follows: `pdflatex -synctex=1 -interaction=nonstopmode -shell-escape %.tex` In addition if I remove the files that were created during build and then hit the quick compile button, I get a "Could not start command" error. What could be wrong? This is the log file: http://pastebin.com/eA2w5YTT


title: How to remove right margin space in modern cv?

text: I am new to LaTeX and am preparing my resume using `moderncv` template. I changed most of the settings to suit my requirements except that I was unable to get theenter code here huge right side margin to go away. My current LaTex souce file               \documentclass[10pt,a4paper]{moderncv}     \moderncvtheme[grey]{classic}                       \usepackage[utf8]{inputenc}                       \usepackage[scale=0.9, top=1cm,paperheight=11.8in]{geometry}     \setlength{\hintscolumnwidth}{1.5cm}                              \usepackage{hyperref}                               % to use hyperlinks     \definecolor{linkcolour}{rgb}{0,0.2,0.6}            % hyperlinks setup     \hypersetup{colorlinks,breaklinks,urlcolor=linkcolour, linkcolor=linkcolour}          % personal data     \firstname{first name}     \familyname{last}     \title{MS in some univ}     \address{124 apartments}{Apt 210, some place, state, pin}         \mobile{723 344 3344}            \email{227@1234.edu}     \nopagenumbers{}                                 %----------------------------------------------------------------------------------     %            content     %----------------------------------------------------------------------------------     \begin{document}     \maketitle     \vspace*{-16mm}          \section{Education}     %\cventry{year--year}{Degree}{Institution}{City}{\textit{Grade}}{Description}     \cventry{Aug 2012 -}{Master of Science in Computer Science and Engineering}{University of 1231023}{1212 Uni123versity of }{\textit{3.6/4}}{Specilization Track: Artificial Intelligence\\ Relavent Courses: Machine Learning, Pattern Recognition, Algorithms.}     \cventry{Aug 2004 - Aug 2008}{Bachelor of Science in Computer Science and Engineering}{Jlfdsdfsdfsdf sdfsfdsf sfsfsfd sdfsdf}{another place, state}{\textit{3.7/4}}{}            \section{Work Experience}     \cventry{Aug 2010 - Aug 2012}{Developer in abc infotech}{company}{place, country}{}{blas blah blah blah abc. I did this and that. I have done super great things in that company and then another and so on. blah. \\ Tools used: python other stuffetc.}          \section{ Recent Projects}     \cvline{}{\textbf{Comparison study of various models for digit recognition} Implemented Naive Bayes, Logistic Regression, Neural Networks, Support Vector Machine models to automatically classify digits and did a performance study of the models.}          \section{Skills}     \cvline{Languages}{\small Python, Java, Prolog, C.}     \cvline{Tools}{\small Matlab, Hadoop.}     \cvline{Others}{\small Linux, Latex, Git, Vim, Windows.}     \end{document}      The problem I described regarding the right side margin is as below. The address is perfectly aligned but the body is constricted all along the page and leaving huge right margin. You can see in the following cropped image ![enter image description here](http://i.stack.imgur.com/32Iyv.jpg) Any help to resolve this issue is much appreciated.


title: Shortening compile time with large eps files when using pstricks and dvips

text: So I am also sending this to both the pstricks and the powerdot lists as it relates to both, but mostly to compiling via dvi-> dvips -< ps2pdf or similar. I make my lecture slides with Powerdot and use pstricks a lot to create arrows, circles, diagrams and so on. But I also include eps figures, some on which I operate with pstricks. The problem is that some of my eps files (such as from Mathematica or ones I have converted my jpg with lots of resolution are very large ( 50--60 mb) This then makes the latex compiling take forever. I sometimes use an include statement so I can % out the worst of these slides except on final compilation, but this get annoying, Anyway to precompile some of this stuff so that the final compile takes less time,


title: cannot figure out how to produce some tikz pictures next to each other

text: Ideally I would like to have the `tikzpicture`s be in one line centered horizontally with its caption each preserving its node size and line strength and vertically aligned to a common bottom line. I am quite stuck however - therefore all help is much appreciated as I simply have no time to work through the `subcaption` manual (if a better alternative is out there, a hint is appreciated too) and definitely not `pgf` manual documentation right now - though the `pgf` manual is on my todo list for sure.               \documentclass[a4paper, twoside]{book}          \usepackage{subcaption}     \usepackage{tikz}     \usetikzlibrary{shapes,backgrounds,shapes,positioning,petri,topaths}          \begin{document}          \begin{figure}[ht]             \centering             \begin{subfigure}[b]{0.16\textwidth}                     \begin{tikzpicture}[scale=0.50]                         \node (v1) at (2,3) [circle, draw] {};                     \end{tikzpicture}                     \caption{$K_1$}                     \label{fig:20140812k1}             \end{subfigure}%             %\quad             \begin{subfigure}[b]{0.3\textwidth}                          \begin{tikzpicture}[scale=0.50]                         \node (v1) at (2,1) [circle, draw] {};                         \node (v2) at (2,3) [circle, draw] {};                         \draw (v1) -- (v2);                     \end{tikzpicture}                     \caption{$K_2$}                     \label{fig:20140806k2}             \end{subfigure}             \begin{subfigure}[b]{0.16\textwidth}                     \begin{tikzpicture}[scale=0.50]                         \node (v1) at (1,1) [circle, draw] {};                         \node (v2) at (3,1) [circle, draw] {};                         \node (v3) at (2,3) [circle, draw] {};                         \draw (v1) -- (v2);                         \draw (v2) -- (v3);                         \draw (v1) -- (v3);                     \end{tikzpicture}                     \caption{$K_3$}                     \label{fig:20140812k3}             \end{subfigure}%             %\quad             \begin{subfigure}[b]{0.16\textwidth}                     \begin{tikzpicture}[scale=0.50]                         \node (v1) at (1,1) [circle, draw] {};                         \node (v2) at (5,1) [circle, draw] {};                         \node (v3) at (3,2) [circle, draw] {};                         \node (v4) at (3,4) [circle, draw] {};                         \draw (v1) -- (v2);                         \draw (v1) -- (v3);                         \draw (v1) -- (v4);                         \draw (v2) -- (v3);                         \draw (v2) -- (v4);                         \draw (v3) -- (v4);                     \end{tikzpicture}                     \caption{$K_4$}                     \label{fig:20140812k4}             \end{subfigure}%             %\quad             \begin{subfigure}[b]{0.16\textwidth}                     \begin{tikzpicture}[scale=0.50]                         \node (v1) at (2,1) [circle, draw] {};                         \node (v2) at (4,1) [circle, draw] {};                         \node (v3) at (1,3) [circle, draw] {};                         \node (v4) at (5,3) [circle, draw] {};                         \node (v5) at (3,4) [circle, draw] {};                              \draw (v1) -- (v2);                         \draw (v1) -- (v3);                         \draw (v1) -- (v4);                         \draw (v1) -- (v5);                         \draw (v2) -- (v3);                         \draw (v2) -- (v4);                         \draw (v2) -- (v5);                         \draw (v3) -- (v4);                         \draw (v3) -- (v5);                         \draw (v4) -- (v5);                     \end{tikzpicture}                     \caption{$K_5$}                     \label{fig:20140812k5}             \end{subfigure}%             %\quad             \begin{subfigure}[b]{0.16\textwidth}                     \begin{tikzpicture}[scale=0.50]                         \node (v1) at (2,1) [circle, draw] {};                         \node (v2) at (4,1) [circle, draw] {};                         \node (v3) at (1,3) [circle, draw] {};                         \node (v4) at (5,3) [circle, draw] {};                         \node (v5) at (2,5) [circle, draw] {};                         \node (v6) at (4,5) [circle, draw] {};                              \draw (v1) -- (v2);                         \draw (v1) -- (v3);                         \draw (v1) -- (v4);                         \draw (v1) -- (v5);                         \draw (v1) -- (v6);                         \draw (v2) -- (v3);                         \draw (v2) -- (v4);                         \draw (v2) -- (v5);                         \draw (v2) -- (v6);                         \draw (v3) -- (v4);                         \draw (v3) -- (v5);                         \draw (v3) -- (v6);                         \draw (v4) -- (v5);                         \draw (v4) -- (v6);                         \draw (v5) -- (v6);                     \end{tikzpicture}                     \caption{$K_6$}                     \label{fig:20140812k6}             \end{subfigure}%              \caption{Vollständige Graphen $K_1$ bi $K_6$}\label{fig:completeGraphs}     \end{figure}          \end{document}


title: How can i add a "field" for handwritten text?

text: I need to add a bunch of fields for a handwritten text to my document that look like this:               Your Name ___________     Your Age  ___________      As an example, I can show you the form that I have to reproduce: ![](http://i.stack.imgur.com/bq0bd.jpg) As you can see, in the top and in the middle we have such fields. Sure I've thought about `_` symbol, but I think that typing `______` all the way is not the TeX style.


title: how is it possible to automatically break a long table with many columns?

text: I would like to have a single table that automatically breaks when it does not fit on the page. Is it possible? I have manually made an example illustragin the desired behavior. I created multiple tabulars inside a minipage. See the Figure and Code bellow. ![table example](http://i.stack.imgur.com/6iMNT.png)               \begin{minipage}{\textwidth}          \begin{tabular}{|p{3cm}|c|c|c|c|c|c|c|c|c|c|}     \hline     letter & a & e & o & s & r & i & d & m & t & n \\      \hline     freq.\footnote{frequencia relativa de ocorrência} (\%) & 14.634 & 11.570 & 9.735 & 6.805 & 6.530 & 6.186 & 4.992 & 4.738 & 4.736 & 4.046 \\     \hline     \end{tabular}          \vspace{0.3cm}          \begin{tabular}{|c|c|c|c|c|c|c|c|c|c|c|c|c|}     \hline     c & u & l & p & v & g & q & b & f & h & \~a & \^o & \^a \\     \hline     3.882 & 3.634 & 2.779 & 2.523 & 1.575 & 1.303 & 1.204 & 1.043 & 1.023 & 0.781 & 0.733 & 0.635 & 0.562 \\     \hline     \end{tabular}          \vspace{0.3cm}          \begin{tabular}{|c|c|c|c|c|c|c|c|c|c|c|c|c|}     \hline     \'c & z & \^e & j & \'e & \'o & x & \'u & \'i & \'a & \`a & w & \"u \\     \hline     0.530 & 0.470 & 0.450 & 0.397 & 0.337 & 0.296 & 0.253 & 0.207 & 0.132 & 0.118 &   0.072 & 0.037 & 0.026  \\     \hline     \end{tabular}          \vspace{0.3cm}          \begin{tabular}{|c|c|}     \hline     k & y \\     \hline     0.015 & 0.006 \\     \hline     \end{tabular}     \end{minipage}


title: move text box outside the textwidth

text: I used tcolorbox to make a semi-transparent box as explained in this link. What I need is to offset this box from the center of the texwidth, this means crossing a bit the border of the textwidth. Is there a way to achieve this with tcolorbox? I tried flushright environment but the box doesn't go further than the textwidth border. Any hint is appreciated, thanks in advance, tcolorbox code:               \documentclass{report}     \usepackage{tcolorbox}     \usepackage{showframe}          \newtcolorbox{frontcoverbox}[1][]{         width=0.7\textwidth,         %arc=3mm,         %auto outer arc,         boxsep=0cm,         toprule=1pt,         leftrule=1pt,         bottomrule=1pt,         rightrule=1pt,         colframe=white,         fontupper=\raggedleft\fontsize{14pt}{14pt}\itshape,         breakable,         nobeforeafter,         enhanced jigsaw,         opacityframe=0.35,         opacityback=0.35     }          \begin{document}          \begin{frontcoverbox}[]         \textbf{Photo:} yaba daba du\\         \textbf{Place:} de la refurinfunflai\\         \textbf{Provided by:} Krusty the Clown     \end{frontcoverbox}          \end{document}      UPDATE: Based on this code, adding `enlarge left by=5cm` to the frontcoverbox did the trick, thanks to Harish Kumar for that!


title: How to split with chapter, section, ... Titles in the index part?

text: Maybe the title isn't clear. In fact, I'm taking note during my course, and sometimes, teachers said that a thing is a pipe (tip, stuff to know) for the examination. Since the tex have a few of them, and more then 1000 lines when finished, I'm using `\usepackage[makeindex]{imakeidx}` to be able to have multiple index, and one only with the pipe (but there some others index with other content made the same way). Works fine, but the problem is, I don't have the part-chapter-section- subsection-subsubsection title reference (and having paragraph and sub title reference could be nice too). Is there a way to have it ? By adding a column, putting the entire title (chapter etc.) before the indexed sentence ? Here, an exemple of what I'd like it look like : ![The better, what I'd like.](http://i.stack.imgur.com/cgnzK.jpg) Or, if not possible, like if titles (of the part, chapter, etc.) was add before (or after, I don't really care) the page number : ![If 1st not possible to do.](http://i.stack.imgur.com/lG9WI.jpg) I've put the page number in bold to more clear, but it's not need. **The aim here, is to be able to know immediately, without having to look where it is with the page number (same with the number of the part/chapter/section... Since it could change very easly), where is the indexed text in the document, and so about what is talking about.** Thanks for reading.


title: Defining keys (links) for quotations

text: I am trying to adapt keys to my bibliography section, but Latex still generates its own ones. My main file:               \documentclass[12pt,a4paper, abstract=on, fleqn]{scrreprt}     \usepackage{scrhack}     \usepackage[latin1]{inputenc}     \usepackage{cite}     \bibliographystyle{alpha}     \usepackage[justification=justified,singlelinecheck=false]{caption}     \usepackage[margin=2.5cm]{geometry}     \makeatletter          \begin{document}          This is a quote: 'bla bla!' from \cite{VDI2607}     \bibliography{literature}      \bibliographystyle{plain}          \end{document}      literature.bib:               @Book{VDI2607,     author    = {Lamport, Leslie},     title     = {\LaTeX: A Document Preparation System},     year      = {1994},     isbn      = {0-021-52983-1},     publisher = {Addison\,\textendash\,Wesley},      } I want the link to my source to appear exactly as I defined it in key (VDI2607), but Latex still displays it as [Ing00] How can I solve this? I want to freely define a key!


title: Images inside table are drawn on top of cell borders

text: I have the following table:               \begin{table}     \centering     \begin{tabular}{ | c | c | }     \hline     \includegraphics[scale=.5]{image1.png} & \includegraphics[scale=.5]{image2.png} \\     \hline     \includegraphics[scale=.5]{image3.png} & \includegraphics[scale=.5]{image4.png} \\     \hline     \end{tabular}     \end{table}      The problem is that the images seem to be on top of cell borders and hide them. Can I add some padding to prevent them from being over the borders?


title: Encoding of non-ASCII characters (Umlauts) in \jobname

text: I need to parse `\jobname` to extract some metadata (such as the subject of a letter) that is encoded in the filename of the `.tex` file. The filenames are not restricted to ASCII, but maybe any UTF8 charcater. In particular, I have lots of files with German Umlauts in their name. However, compiling:               % Änderungen.tex     \documentclass[]{scrartcl}     \usepackage[utf8]{inputenc}     \usepackage[T1]{fontenc}          \begin{document}       \jobname     \end{document}      with `pdflatex` yields: ![enter image description here](http://i.stack.imgur.com/XKc71.gif) With `lualatex` or `xelatex` the output is fine; however, I would prefer to stay with `pdflatex`. So how is `\jobname` actually encoded and how can I transform it?


title: \begin{lstlisting} is overflowing?

text: I have done everything correctly but my `\begin{lstlisting}` is overflowing and I did not find any method to stop it. Plz help![enter image description here](http://i.stack.imgur.com/YU6II.png)               \begin{enumerate}[(b)]      \item To generate a 128bit WEP key. We have added a -w     flag in the switch-case statement and also added a new option in the     array pwgenoptions. After that, we have set the \emph{pw\_length} as 128 for 128bit WEP key. Finally, we have run the make operation again and compiled it successfully. Following the result of our modification:          \begin{lstlisting}     bril@MT2012018:~/Desktop/pwgen-2.06$ ./pwgen -w 5     uGh1r eSh9A ohGh4 seeS5 AhJ2E eiQu6 iY8oe hooP7 AN7ia Ek3ak ohY7n hi5Up Yahc4     ue9Sh du4Nu ohr9I ag7oD Iyou9 Rei2m Aev4v ga8Hu Ait3e Ahph7 Om1ee Phob8 Eo2Oh     io9Ai too2H joh0A ui8Iu foh0R Ze0ai Iw6wu VaJ2x ieM3I ve9aM ohd7A mee4H LueX7     OhV8u Seeh4 ohg1I Mejo1 Ook3V Eel3h ec2Co huiN2 Pie6X Raet6 Akua3 Voh8d aiG4S     ivu5U teeV9 Oop9r Pai9G ox3Ei eiT8x Fei7u Phoi1 Eot6F aer2U Ga1og nai8E wee7U     Eor9A oph1X Ti9ye uoF7w Joo2w cho2I Ool8Z aik8K OoV7V Eet5n AhL7U ooc3U AiSh1     Pie1x wei7X eeSh1 Ai4ae voR1a Yook8 Be9Ie Ahl9N eP1Za Zu5th Id7ai io7Oo She7m     cai1W ivoY8 Quou3 taiT4 Ak2uk poh6Y Eyo2g Eis7d gol0E hu6Qu Xai9u eeZ5E Ugie6     zeo5I al7Ti ia4Ph Quiy2 Orai8 zeiY2 Ie0go Phoo6 oTh9u eWoo7 Eiph3 eed9D Caiv4     eeZ6i Shou0 gae7A uap6R ahM1a oox0E Aen2E lat9H Uj7ei Aik8w Ik1no ohP0f Oosh0     ooP1p Hau3p ooM0p oeK4o Tii1w aoC3d Ogh5E eo3EF vie1Z Hohl5 Cooy2 oD6ju Ahph2     cee8E Kex2a iCh0T Peej2 iiSh6 ith3U bohV8 So9ei Iu1ye aef8E Jue9s uGh9A kui7B     au7Ae Aep8H Ie5ro jai2O ohH0o Ohco6 Quai6 lei1Y oaQu7 ooD8u Do7ie Oos8y Eexe1     Giz4J Eeh4y Aix4x pei1H ESh0i Iel2I aeN5o tahY1 ga8Ae moaC9 ieT6s ooVu4 Vohc2     ahc7H uQu9d Eigh4 xi5Ah Oof4i Yoo7e sohW0 vei8H Ouch2 UCh0v ood9V aV3to ood4S     yu4Oo Eich3 eiG6u oox2A Ohy2j xea6A Ga6Oh zaTh2 aej6I voh5V Ooz8z Zahy1 een1R     eeJ5j uRee8 yia2N Iyub9 xah3P oh4Ai AhT6u OB3fa Ie1ui OoGh2 if7Io eeGo4 Woo4l     sa2Ta looR8 bei1E Vac2v Ooji9 Cah4l UC9ui ieZ1e Eivu5 Naeb6 ooQu9 ohFu1 OoX8i     queB1 jooM5 uF2oo Ra5al coN2a uV3ee if9Ai Wee1W Iek2j tahY9 Miu4i ZuN2i Caez4     Jae2i XieY3 ohj1I IeG2b eeNg5 ish4G Eid4o eoGh2 ui8Ah Ahzi7 Chuc1 Oox4k Nah2u     \end{lstlisting}            \end{enumerate}


title: vertical dotted line in column vector / amsmath matrix

text: I would like to typeset the following set of equations: ![enter image description here](http://i.stack.imgur.com/TeHZP.png) ... but with contiguous, vertical dotted lines in the column vectors, such that the top and bottom rows of the matrix and of the vectors are well aligned. `\vdots` doesn't seem to be the right choice here, as I used it to produce the graphic above. The code is the following:               \documentclass{article}     \usepackage{amsmath}          \begin{document}     \begin{equation}       \begin{pmatrix}         a_1 & b_1 &     &     &     &\\         c_2 & a_2 & b_2 &     &     &\\             & c_3 & a_3 & b_3 &     &\\             &     & c_4 & a_4 & b_4 &\\             &     &     & c_5 & a_5 & b_5\\             &     &     &     & c_6 & a_6       \end{pmatrix}       \begin{pmatrix}         T_1\\         \vdots\\         \vdots\\         \vdots\\         \vdots\\         T_6       \end{pmatrix}=       \begin{pmatrix}         d_1\\         \vdots\\         \vdots\\         \vdots\\         \vdots\\         d_6       \end{pmatrix}     \end{equation}     \end{document}       If this isn't good style in terms of mathematical notation conventions (which I don't know), then, of course, I would write out the elements of the vectors. Clarification would be welcome.


title: How to get box dimensions within lualatex

text: I'm new to lualatex, which looks phenomenal. I wonder what the easiest way is to access the dimensions of a box from within lualatex. I intend to use it in more complicated situations than this (as part of lua chunks) so I'm not looking for a hack within latex that feeds the dimensions to the lua chunk. I'm aware of the limitations of \directlua. Is this something that should be done using the node library? How?               \documentclass{minimal}          \usepackage{luacode}               \newcommand{\measureme}[1]{%     \directlua{-- what should go here to get the size of the box?}%     }          \begin{document}          The size is \measureme{this box}.               \end{document}


title: How to have special characters (e.g. german umlauts) inside bibkeys?

text: I really like biblatex `[backend=biber]` to use with UTF8, as many citations I use will have some special characters esp. in the name field. This works totally great until I want to use e.g. german Umlauts (those strange characters: ü,ö,ä,ß) inside of the bibkey field. However I cannot get this to work:               \documentclass{article}     \usepackage{filecontents}     \usepackage[utf8]{inputenc}     \usepackage[T1]{fontenc}     \usepackage[backend=biber]{biblatex}          \begin{filecontents}{x.bib}     @article{Böttger2013,       title={Three-dimensional mean-shift edge bundling for the visualization of functional connectivity in the brain},       author={Böttger, Joachim and Schafer, Andreas and Lohmann, Gabriele and Villringer, Arno and Margulies, Daniel},       year={2013},       publisher={IEEE}     }     \end{filecontents}     \addbibresource{x.bib}     \begin{document}     Foo bar \cite{Böttger2013}.     \printbibliography     \end{document}      I always get something like this: ![UTF8 error](http://i.stack.imgur.com/760iB.png) Biber says in its first run:               WARN - I didn't find a database entry for 'B\IeC {\"o}ttger2013' (section 0)      leaving me with undefined references. Is there a way around? If not I think the easiest way is to use `Boettger2013` instead of the UTF8 umlauts then.


title: BibLaTeX' \citefield not expanded as expected

text: I have run into what looks like a macro expansion issue. Consider the following example:               \documentclass{article}     \usepackage{hyperref}     \usepackage{biblatex}          \begin{filecontents}{expprob.bib}     @online{example,       shorthand    = {foo-bar},       url          = {http://example.com}     }     \end{filecontents}          \bibliography{expprob}          \newcommand{\demofield}[2]{foo-#1}     \newcommand{\demourl}[1]{\url{http://example.com/link/\demofield{#1}{shorthand}}}          \newcommand{\biburl}[1]{\url{http://example.com/link/\citefield{#1}{shorthand}}}          \begin{document}          \textbf{without biblatex}          expected: \url{http://example.com/link/foo-bar}          actual: \demourl{bar}          \textbf{with biblatex}          ze field: \citefield{example}{shorthand}          expected: \url{http://example.com/link/foo-bar}          actual: \biburl{example}          \end{document}      The commands `\demourl` and `\biburl` are quite similar, they just use different macros to determine a part of the URL. Processing this file (e. g. with `latexmk`) yields the following result: ![problem](http://i.stack.imgur.com/MNhbM.png) As you can see, the `\citefield` command works correctly and retrieves the contents of the `shorthand` attribute. The problem is that the macro is not expanded within `\url`, while the apparently similar `\demofield` is expanded correctly. I don't understand this - what is happening here, and how do I get the system to expand `\citefield` as well?


title: Custom line breaks in biblatex bibliography entries

text: I'm using `biblatex` with `bibstyle=authoryear` option. I'd like to customize the style to insert a line break after the year in each bibliography entry. Currently, an entry looks like this ![authoryear bibliography entry](http://i.stack.imgur.com/srMdq.png) I'd like to have a line break after `(1993).` so that `First Draft of a...` started on the new line. Is there a user-side biblatex customization option or a command to accomplish this? There's an option to have a line break after each block in the entry `block=par`, and it looks like this ![enter image description here](http://i.stack.imgur.com/hYbx6.png) However this is not what I need. I want the line break to be after the Author- Year line, and the rest of the blocks to be in one paragraph.


title: Regarding netbib style of latex

text: I have cited website like this.               @ELECTRONIC{Amazon,       year = {},       title = {Amazon},       note = { },       url = {http://aws.amazon.com/}     }      It give warning warning to need author or key in Amazon. is it compulsory to write all the field? Thanks in advance


title: Is it possible to use {tikz-qtree} along with {qtree}?

text: I've already drawn too many trees with qtree, but I've discovered that I'll need tree-dvips to draw movements, and this package is incompatible with pdf. I saw that it's quite simple to draw syntactic movements with tikz-qtree. Should I switch for another package for drawing syntactic trees, once and for all? Any advice?


title: pgfplots - Placing Nodes on x Coordinates of a Plot

text: I want to plot some graphs in pgfplots and want to place nodes on the exact same x coordinate of the plot. The position of the note has to be set in x direction but free in y direction. Here is one example of the way it shouldn't be.               \documentclass{article}     \usepackage{pgfplots}          \begin{document}          \begin{figure}      \begin{tikzpicture}         \begin{axis}         \addplot {-x}  [yshift=8pt] node[pos=0.1] {$0,1$};         \addplot {x^2} [yshift=8pt] node[pos=0.1] {$0,1$};         \addplot{3*x^2}[yshift=8pt] node[pos=0.1] {$0,1$};     \end{axis}      \end{tikzpicture}      \end{figure}          \end{document}      ![enter image description here](http://i.stack.imgur.com/xLkZ8.png) * * * With the example linked by Jake I adapted the file. Now it is producing the return value 1 and no good result. What is wrong?               \documentclass{article}     \usepackage{pgfplots}          \begin{document}          \begin{figure}      \begin{tikzpicture}         \begin{axis}     \addplot[yshift=8pt,add node at x={-4}{$0,1$}] {-x};     \addplot[yshift=8pt,add node at x={-4}{$0,1$}] {x^2};     \addplot[yshift=8pt,add node at x={-4}{$0,1$}] {3*x^2};     \end{axis}      \end{tikzpicture}      \end{figure}          \end{document}


title: Increment counter only if no page break occurs

text: I'm trying to create a form that contains a series of test instructions, each of which are represented as minipages and take up between 1/3 - 1/2 of a standard A4 page. What I'd like is to be able to display the number of tests on a page within the foot of each page. I've created a counter that increments whenever a test is added and is reset whenever the page counter increments. However, I'm finding that the test counter increments even if the test ends up on the next page due to inadequate space. Is there a way that I can make the counter report the correct number of tests on each page? Included is a MWE:               \documentclass[10pt,a4paper]{article}             \usepackage{amsmath}     \usepackage{amssymb}     \usepackage{fancyhdr}          \rfoot{\large{$\dfrac{}{\arabic{PageTestCounter}}$}}          \newcounter{PageTestCounter}[page]          \newcommand{\addTest}[1]{%     \stepcounter{PageTestCounter}     Test #1:\hspace{1cm}$\square$     \vspace{25\baselineskip}     }          \begin{document}          \pagestyle{fancy}          \addTest{1}          \addTest{2}          \addTest{3}          \end{document}      The output from the MWE: ![enter image description here](http://i.stack.imgur.com/xYlj1.png)


title: Tabular size exceeding page size

text: I am making a table which includes single columns and 2 - merged columns. I am encountering two problems, first the data is very long and is not places within the area of the page, it exceeds the borders. How can i overcome these Issues? the pre-ample and tabular code is here:                   \documentclass[authoryear,preprint,review,12pt]{elsarticle}         \usepackage{graphicx}         \usepackage{amssymb}         \usepackage{amsthm}         \usepackage{mathtools}                   \begin{document}     \begin{table}         \caption{Table aaaa}         \begin{tabular}{|c|c|c|c|c|c|c|c|c|}\label{West Hebr Indexes}         \caption{West Hebrides Indexes for the wind datasets}          \hline           • &\multicolumn{8}{c|}{West Hebrides} \\           \hline           • & \multicolumn{2}{c|}{$H_{s}$} &\multicolumn{2}{c|}{$T_{p}$} &\multicolumn{2}{c|}{$T_{z}$} & \multicolumn{2}{c|}Dir \\           \hline           • & ECMWF & CFSR & ECMWF & CFSR & ECMWF & CFSR & ECMWF & CFSR \\           \hline           Average Buoy & • & • & • & • & • & • & • & • \\           \hline           Average SWAN & • & • & • & • & • & • & • & • \\           \hline           Bias & • & • & • & • & • & • & • & • \\           \hline           rms  & • & • & • & • & • & • & • & • \\           \hline           OPI & • & • & • & • & • & • & • & • \\           \hline           MPI & • & • & • & • & • & • & • & • \\           \hline           SI & • & • & • & • & • & • & • & • \\           \hline      \end{table}          \end{tabular}                \end{document}


title: Best typesetting of formula

text: Consider the following example.               \documentclass{article}          \usepackage{amsmath}          \newcommand*\mathsetfont{\mathbf}     \newcommand*\DeclareMathSet[1]{%       \expandafter\newcommand\csname set#1\endcsname{\mathsetfont{#1}}     }     \DeclareMathSet{N}     \DeclareMathSet{Q}          \begin{document}          \begin{align*}       &\{1983/4, 1985/4, 1986/4, 1987/4, 1989/4, 1990/4, 1991/4,\\       &\hphantom{{}\{} 1993/4, 1994/4, 1995/4, 1997/4, 1998/4, 1999/4\}        \subseteq \setQ\setminus\setN.     \end{align*}          \end{document}      ![output](http://i.stack.imgur.com/rjjAY.jpg) What is the best way to typeset this formula? The reason I ask, is that I think my try looks 'odd' with `\subseteq \setQ\setminus\setN` begin just below `1991/4`.


title: How to remove the word "Proof:" from the environment proof?

text: I am writing a paper and I will prove a theorem in an appendix because the proof is lengthy. When I use the following code,               \documentclass[journal]{IEEEtran}     \usepackage{amssymb, amsmath, amsthm, amsfonts}     \renewcommand*{\proofname}{}          \begin{document}          \appendices     \section{Proof of Theorem \ref{theorem1}}          \begin{proof}     We will use induction to prove this theorem.     \end{proof}     \end{document}       I get the following: ![enter image description here](http://i.stack.imgur.com/9HKZV.jpg) I would like to remove the word "Proof:" from the proof as this is already explained in the name of the appendix. I have checked the question How to change the word “Proof” in the proof environment?. I tried to change the name to be blank using               \renewcommand*{\proofname}{}      However this does not seem to work.


title: undesired text move

text: Using a beamer theme I currently write I face a problem with text that moves - this text move is undesired. Here's a simple example to reproduce the effect using a standard beamer theme:               \documentclass[t]{beamer}     \usepackage{blindtext}     \usetheme{Boadilla}     \begin{document}          \begin{frame}{Title 1}     \blindtext     \end{frame}          \begin{frame}[plain]{Title 2}     \blindtext     \end{frame}          \end{document}      On page 2 which is set without footline (option `plain`) the text (body) moves upwards (I use TeX Live 2012). Two questions:   1. What's causing this effect? I searched the various style files but couldn't determine the root of the problem.   2. How can I avoid the text move? On page 2 I would just like the footline to disappear while all the rest should stay in the same position compared to page 1. EDIT (12/04/2013) I've found out why the text of the body moves: In beamerbaseframe.sty the environment `beamer@frameslide` gets defined. Amongst lots of other commands, there's a line               \ifbeamer@plainframe\nointerlineskip\fi%      which seems to cause the text move. When re-defining the environment and commenting out that line, the text of the body stays in the same place. In other words, the extra `\nointerlineskip` on plain frames causes this behaviour. It seems on non-plain frames there's automatically interline spacing inserted which makes standard and plain frames incompatible when using top alignment. I am still not sure how to best solve this problem...


title: Processing a sequence of pairs

text: I want to process a list of pairs like this:               {{a1,b1},{a2,b2},{a3,b3}}      where the first items in each pairs are distinct. So, for each pair of those `{ai,bi}` I would need the following data:               {a1,a2,a3,...,an} % does not contain ai     ai     bi      Then I call a macro with these               \foo{ai}{a1 \\ a2 \\ ... \\ an}{bi}      Ideally, it should work with more than just pairs, i.e. `{{a1,b1,c1,d1},...}` Here's what I tried so far:               \documentclass[preview,border=4mm,multi=true]{standalone}     \usepackage{pgf,pgffor}     \usepackage{xparse}     \ExplSyntaxOn     \NewDocumentCommand{\createlist}{mm}      {       \seq_clear_new:c { g_data_#1_seq }       \seq_gset_from_clist:cn { g_data_#1_seq } { #2 }      }     \NewDocumentCommand{\addtolist}{mm}      {       \seq_gput_right:cn { g_data_#1_seq } { #2 }      }     \NewDocumentCommand{\removefromlist}{mm}      {       \seq_gremove_all:cx { g_data_#1_seq } { #2 }      }     \NewDocumentCommand{\purgelist}{m}      {       \seq_gremove_duplicates:c { g_data_#1_seq }      }     \NewDocumentCommand{\printlist}{m}      {       \seq_use:cnnn { g_data_#1_seq } { ~\\ } { ~\\ } { ~\\ }      }     \cs_generate_variant:Nn \seq_use:Nnnn { c }     \cs_generate_variant:Nn \seq_gremove_all:cn {cx}     \ExplSyntaxOff      And I have a macro that will use these data combinations:               \newcommand{\playcardfamily}[2]{{         \foreach \thiscard in {#2}{             \createlist{relatives}{#2}             \removefromlist{relatives}{\thiscard}             % Needs to process to get the title in \thistitle and picture in             % \thispicture. relatives should contain only the titles.             \playcard{#1}{\thistitle}{\printlist{relatives}}{\thispicture}         }     }}      In the document I have               \begin{document}         \playcardfamily{Family}{{Member1,picture1.png},{Member2,picture2.png},{Member3,picture3.png}}     \end{document}      To clarify, what I want to get from `\playcardfamily{...}` here is:               \playcard{Family}{Member1}{Member2 \\ Member3}{picture1.png}     \playcard{Family}{Member2}{Member1 \\ Member3}{picture2.png}     \playcard{Family}{Member3}{Member1 \\ Member2}{picture3.png}      I'm open to any hints and ideas on how to solve this. # Solution By a slight modification of egreg's solution I managed to produce the cards I needed ![Cards](http://i.stack.imgur.com/qoxUb.png) Full code


title: How to typeset creative commons analogous character of ©?

text: I'm aware how to use creative commons logo. But I'm searching for a character that I can insert in a caption to notice that the image (in my case) is under creative commons and not under ©, so it should be like a double "c" or something like that. So is there a creative commons analogous symbol of "©" that I can insert like a character?


title: Refering to website with bibtex

text: I am using the latex package from IEEE. I want to know what is the format for referencing a web site? Which fields are required in the reference which contain URL?


title: Aux und Output files in another directory puzzles TeXstudio

text: I have configured my TeX runs to save all aux and output files into a 'temp' subdirectory using the 'output-directory' option of lualatex in TeXlive. Everything works wonderful, Biber and Makeglossaries are running etc. The PDF also looks nice. But TeXstudio displays a lot of errors and warnings (without them occurring in the logfile or being actually true). There are some "undefined control sequences", "no file *.acr" (from glossaries), "undefined references", "label(s) may have changed", "please (re)run biber" and so on. As said, they only appear in TeXstudio, not in the log file. And all those references, the bibliography, the glossary and so on are perfect in the PDF. I could just ignore them but then I miss the real warnings that I want to take care about since they are hidden between hundreds of wrong warnings. Any ideas how to solve this? For your insights, I run the following commands for compilation. $1 is the argument my bash script gets, meaning the master file name:                   # LuaLatex         lualatex -synctex=1 -interaction=nonstopmode -output-directory=./temp --shell-escape $1         # Biber         cp ./general/literatur.bib ./temp/general         biber ./temp/$1         # Makeglossaries         makeglossaries -d ./temp $1         # LuaLatex         lualatex -synctex=1 -interaction=nonstopmode -output-directory=./temp --shell-escape $1         lualatex -synctex=1 -interaction=nonstopmode -output-directory=./temp --shell-escape $1


title: How display italic fonts like an article document in beamer?

text: I wish to display italics like this ![number 2 in italics](http://i.stack.imgur.com/t8wTk.png) that are used in article documents, but within a beamer document with the `default` use and font themes.


title: FMT to CLS Creation in LaTeX

text: A Few years back we have created fmt format through PDFTEX. Now we have need to update some points in the class file. It is possible again to create fmt to .cls or .dtx files?


title: Referencing a "two-part" surname

text: Currently my bibtex entry is this:               @Article{CW12,     author  = "Neil Rankin and Vivian Sch{\"o}er and Christian Sebastiao and Corne Van Walbeek",     title   = "Predictors of academic performance: {N}ational {S}enior {C}ertificate versus {N}ational Benchmark {T}est",     year    = "2012",     journal = "South African Journal of Higher Education",     volume  = "26",     number  = "3",     pages   = "564-585"     }      Everything is fine, except that in the reference list, Corne Van Walbeek is referenced as Walbeek, C. V. Obviously this is incorrect and I would like the reference to be Van Walbeek, C. I am using the Natbib package with the 'apalike' style.


title: Change from old style numbers to lining numbers in lineno's linenumbers environment

text: I am using old style numbers in my document, but I prefer lining numbers in my line numbering environments (`lineno`'s `\linenumbers` environment). How can I enforce this (without changing to another font)?               \documentclass{article}     \usepackage{fontspec,lineno}         \setmainfont[Numbers=OldStyle]{Linux Libertine O}         \renewcommand\linenumberfont{\normalfont\scriptsize\rmfamily}          \begin{document}     \begin{linenumbers}     \noindent Continual delighted\linelabel{1stword} as elsewhere am convinced unfeeling. Introduced stimulated attachment no by projection. To loud lady whom my mile sold four. Need miss all four case fine age tell. He families my pleasant speaking it bringing\linelabel{2ndword} it thoughts. View busy dine oh in knew if even. Boy these along far own other equal old fanny charm. Difficulty invitation put introduced\linelabel{3rdword} see middletons nor preference.     \end{linenumbers}     \vspace{\baselineskip}     \noindent I like the words I find in line \lineref{1stword}, \lineref{2ndword}, and \lineref{3rdword}.     \end{document}      ![enter image description here](http://i.stack.imgur.com/mGSp1.png)


title: Plots with data coming from different files

text: Is it possible to draw a graph with `pgfplots` using data from different files ? Let say I have two data files : `data.dat` and `error.dat` and would like to plot column 1 versus column 0 from `data.dat` and add error bars from `error.dat`. If the data all came from the same file `all.dat`, I would use :               \pgfplotstableread{./all.dat}\mytable          \addplot  table[x index=0,y index=1, y error index=3]{\mytable};


title: Cite report without author

text: I would like to cite a report published by an institution. They don't publish the names of the authors. Right now I'm using               @TechReport{bissurvey,         title = {Triennial Central Bank Survey of foreign exchange and derivatives market activity in 2013},         year = {2013},         month ={sep},         editor = {Bank for International Settlements},      }      This produces a citation of the type (International Settlements", 2013). I'm not sure what the proper entry type for a publication like this is (I just assumed TechReport). What would the proper way of doing this in BibTeX be? I'd like for the "Bank of" part not to be cut off. Thanks!


title: How to combine label and counter in enumerate?

text: Essentially, I would like the following:               X1. text text text      X2. text2 text2 text2     X3. text text textaaa      So, talking code:               \documentclass{article}     \begin{document}     \begin{enumerate}         \item text text text          \item text2 text2 text2         \item text text textaaa     \end{enumerate}     \end{document}