title: Node centered instead of flushed right

text: Why the this three nodes are centered instead of be flushed right ? ![enter image description here](http://i.stack.imgur.com/Oen1Y.png)               \documentclass{article}     \usepackage{tikz,fourier}          \begin{document}     \xdef\LW{.99*241pt}%\linewidth     \xdef\BLS{\baselineskip}           \begin{tikzpicture}[y={(0,-\BLS)},inner sep=0pt,outer sep=0pt]          \node[draw,minimum width=1.2,minimum height=2.5*\BLS,text width=1cm,align=flush center,font=\scriptsize] (11) at (0,0) {Poids jusqu'\`a} ;           \node[draw,anchor=north west,minimum width=(\LW-1.2cm),minimum height=\BLS,] at (11.north east) {Tarifs nets (\$)};          \node[draw,anchor=south west,minimum width=(\LW-1.2cm)*.24,minimum height=1.5*\BLS,align=flush center,font=\scriptsize,text width=1.6cm] (22) at (11.south east) {Vers France m\'etropolitaine};          \node[draw,anchor=south west,minimum width=(\LW-1.2cm)*.38,minimum height=1.5*\BLS,align=flush center,font=\scriptsize,text width=1.8cm] (23) at (22.south east) {Vers zone outre-mer 1};          \node[draw,anchor=south west,minimum width=(\LW-1.2cm)*.38,minimum height=1.5*\BLS,align=flush center,font=\scriptsize,text width=1.8cm] at (23.south east) {Vers zone outre-mer 2};          \foreach \t [count=\i from 2,evaluate=\i as \j using int(\i+1)] in {%     {0,56}\,\$,     {0,90}\,\$,     {6,04}\,\$} {%     \node[draw,anchor=north east,align=flush right, minimum height=\BLS,minimum width=(\LW-1.2cm)*.24] (\j2) at (\i2.south east) {\t};     }     \end{tikzpicture}     \end{document}


title: datatool: How to reliably store database in \AtEndDocument (or similar hook)

text: In a big report with many subfiles and authors, I am using the `datatool` package to write out some data collected across the document. At the end of the document, the data should be stored in a CSV file with `\DTLsavedb`. For this, I am currently using the `\AtEndDocument` hook. The problem is that this does not work reliably. From looking into the `datatool` sources, I think this is because `datatool` does not write out to the file `\immediate`, so that the writing is delayed until shipout time. However, if there is no remaining content to shipout at the end of the document, the file never gets written. I could try to patch `datatool` to use `\immediate`, however, I with respect to performance, the delayed writing is probably a good thing. So a better solution would probably be to somehow make sure that at the end of the document all outstanding data gets written independently from the shipout routine? Or maybe there is a "last page hook" I could use instead of `\AtEndDocument`?               \documentclass{scrartcl}     \usepackage[utf8]{inputenc}     \usepackage[T1]{fontenc}     \usepackage{datatool}     \usepackage{lipsum}          \AtBeginDocument{%       \DTLgnewdb{importantguys}%     }     \AtEndDocument{%       \DTLsavedb{importantguys}{importantguys.csv}%     }          \newcommand{\importantguy}[2]{%       \DTLnewrow{importantguys}%       \DTLnewdbentry{importantguys}{firstname}{#1}%       \DTLnewdbentry{importantguys}{surname}{#1}%       \paragraph{#1 #2:}%     }          \begin{document}       \lipsum       \importantguy{Foo}{Bar} does cool stuff.       \importantguy{Computer}{Mouse} is really important for the project.       \lipsum       \importantguy{Becky}{Brewer} helps to keep us running.       \clearpage     \end{document}


title: Drawing Multiple Diagonal Arrows in a Table

text: My question is basically the same as this one, but with many arrows instead. (I'd like to see the TikZ solution--I feel like once I get it here, I'll be able to extrapolate and do it in other cases as well...) How do I draw diagonal southwest-pointing arrows through the following table? I want an arrow that through `x_{1}^1`, an arrow that goes through `x_{1}^2` AND `x_{2}^1`, an arrow that goes through `x_{1}^3` and `x_{2}^2` and `x_{3}^1`, an arrow that goes through `x_{2}^3` and `x_{3}^2`, and an arrow that goes through `x_{3}^3`. To make the picture more clear, I want each arrow to start in the upper-right corner of the first element it goes through, and end in the lower-left corner of the last element it goes through.               \documentclass{article}     \usepackage{tikz}     \usetikzlibrary{calc,arrows}          \newcommand{\tikzmark}[1]{%       \tikz[overlay,remember picture] \node (#1) {};}          \[     \begin{array}{*{6}{c}}     E_{1} & = & x_{1}^1 & x_{1}^2 & x_{1}^3 & ... \\     \\     E_{2} & = & x_{2}^1 & x_{2}^2 & x_{2}^3 & ... \\     \\     E_{3} & = & x_{3}^1 & x_{3}^2 & x_{3}^3 & ... \\     ... \\     \end{array}     \]          \end{document}


title: Problem in bibtex style?

text: I'm confusing about the reference in bibtex, I'm looking for a bibtex style such as given format, [2] Bernoulli, D. Exposition of a new theory on the measurement of risk. _Econometrica_ 22, 1, pp. 23–36, **1954**. I tried acm style but in this style, the year of the journal are not at the end of the reference and I couldn't understand but the names are all caps. [2] BERNOULLI, D., Exposition of a new theory on the measurement of risk. Econometrica 22, 1 (1954), pp. 23–36. Is there any bibtex style which has this format, or how can I make some arrangement in the style format?? Thanks in advance


title: Remove page number from book title

text: How to remove page number from book title? I tried `thispagestyle{empty}` command, but this only works for article document. ![enter image description here](http://i.stack.imgur.com/hnxuE.png) This is my sample code:               \documentclass[oneside,a4paper  , 12 pt, titlepage]{book}          \usepackage{amsmath}     \usepackage{hyphenat}     %\usepackage{indentfirst}     %\usepackage{multicol}     %\usepackage{blindtext}     %\usepackage{mathrsfs}     %\usepackage{amssymb}     %\usepackage{mathtools}     \usepackage{hyperref}     %\DisemulatePackage{setspace}     \usepackage{setspace}     \usepackage{graphicx}     \usepackage{float}     \usepackage{caption}     \usepackage{algorithmicx}     \usepackage{algorithm}     \usepackage{listings}     \usepackage{algcompatible}     \usepackage{algpseudocode}     \usepackage{float}     %\usepackage[compact]{titlesec}     \usepackage{parskip}     \usepackage{subcaption}     %\usepackage[pdf]{pstricks}     \usepackage{titlesec}          \usepackage{comment}     %\usepackage[crop=off]{auto-pst-pdf}     %\usepackage{pst-node,graphicx}     %\SpecialCoor     \usepackage[top=4cm, bottom=3cm, left=4cm, right=3cm]{geometry}          \usepackage{arabtex}     %\titlespacing{\chapter}{0pt}{50pt}{<after-sep>}          \usepackage[space]{grffile}          \makeatletter     \setlength{\@fptop}{0pt}     \makeatother          % untuk meletakkan float di daerah tertentu     \usepackage{float}     %\usepackage{pstrick}     %\usepackage{pst-all}     %\usepackage{pstricks-add}     \setlength{\parindent}{0cm}     %\usepackage[pdflatex]{pstricks}     %\usepackage{pstricks}     %\usepackage{auto-pst-pdf}                 \titlespacing*{\chapter}{0pt}{0pt}{20pt}       \titlespacing{\section}{0pt}{0pt}{0pt}       \titlespacing{\subsection}{0pt}{0pt}{0pt}          \begin{document}     \frontmatter      \begin{titlepage}     \thispagestyle{empty}     \centering \chapter{XXX}     \begin{center}     \vspace{0.6 cm }     \begin{large}     \textbf{TESIS} \\     \end{large}     \vspace{0.3  cm}     \begin{large}     Karya tulis sebagai salah satu syarat \\ untuk memperoleh gelar Magister dari \\  Institut Teknologi Bandung \\     \end{large}     \vspace{1.5 cm}     \begin{large}     Oleh\\     \textbf{SASASASAS} \\     NIM: 20211019\\     (Program Studi Magister Fisika)\\      \end{large}     \vspace{1.4 cm}     \begin{center}     \includegraphics[scale=0.27]{logo_itb.jpg}     \end{center}     \vspace{0.5 cm}     \begin{center}     INSTITUT TEKNOLOGI BANDUNG \\     2013     \end{center}     \end{center}     \end{titlepage}          \end{document}


title: How to generate a "<section>-continued" heading after page-break which works with longtable?

text: I have read the question and answers about the "-continued" heading. The code given in the answers doesn't help me. Thats why I am posting a follow-up- question here. I want to re-display the section-titles, but I am using a longtable. (I need to write a document, which consists only of longtables. And I really need the section-titles to reappear. Using a headline does not work in my case.) I have a longtable over (at least) two pages. And I want to re-display the current section-title. My problem is, that the longtable is continued in the same line as the re-displayed section-title. Here is the latex-code I am using:               \documentclass{article}     \usepackage{lipsum}% http://ctan.org/pkg/lipsum     \usepackage{everyshi}% http://ctan.org/pkg/everyshi     \usepackage{etoolbox}% http://ctan.org/pkg/etoolbox     \usepackage{environ}% http://www.ctan.org/pkg/environ     \usepackage{longtable}          \makeatletter     \let\@section@title@\relax% Sectional heading storage     \patchcmd{\@sect}% <cmd>       {\@xsect}% <search>       {\gdef\@section@title@{% Store sectional heading       {\noindent#6\@svsec#8\normalfont\ \smash{(continued)}}\par\bigskip}\@xsect}% <replace>       {}{}% <success><failure>     \newif\if@sectionpage %Conditional to see if we are on the page where a section has been started     \newif\if@tab@pagebreak %Conditional to check if a table will cause a pagebreak     \newdimen\currtabheight     \newdimen\pt@saved       \let\ltx@tabular\tabular       \let\ltx@endtabular\endtabular       \providecommand{\env@tabular@save@env}{}       \providecommand{\env@tabular@process}{}     %Patching the tabular envionment     \RenewEnviron{tabular}[1]{%       \setbox0=\hbox{% measure the height of the tabular         \ltx@tabular{#1}           \BODY         \ltx@endtabular         }       \currtabheight=\ht0 \advance\currtabheight by \dp0%       \pt@saved=\the\pagetotal% store the current pagetotal value       \advance\pt@saved by \currtabheight% add the height of the current tabular       \ifdim\pt@saved>\pagegoal% the tabular will cause a pagebreak         \global\@tab@pagebreaktrue       \fi       \ltx@tabular{#1}% printing the tabular         \BODY       \ltx@endtabular       }     %Doing the old shipout trick with the addtional declared conditionals     \EveryShipout{%       \ifdim\pagetotal>\pagegoal         \if@sectionpage           \if@tab@pagebreak\else\aftergroup\@section@title@\fi         \else           \aftergroup\@section@title@         \fi       \fi       \global\@sectionpagefalse       \global\@tab@pagebreakfalse}     %redefinition to make the sectionpage-switch work     \let\ltx@section=\section     \renewcommand{\section}{\@sectionpagetrue\ltx@section}     \makeatother          \begin{document}     \section{A section}          \lipsum[1-1]           \begin{longtable}{|l| l|}      KILLED & LINE!!!! \kill      \caption[An optional table caption ...]{A long table\label{long}}\\      \hline\hline      \multicolumn{2}{@{*}c@{*}}%      { This part appears at the top of the table}\\ \hline      \endfirsthead      \multicolumn{2}{@{*}c@{*}}%      { This part appears at the top of every other page}\\ \hline\hline      \endhead      \endfoot      \endlastfoot      columns are specified& in the \\      same way as in the tabular& environment.\\      Lots of lines& like this.\\      ...        Lots of lines& like this.\\               \end{longtable}          \lipsum[2-2]          \section{Second section}          \begin{tabular}{l}       AAAAAAAAAAAAAAAAAAAA \\       AAAAAAAAAAAAAAAAAAAA \\       AAAAAAAAAAAAAAAAAAAA \\       AAAAAAAAAAAAAAAAAAAA \\       AAAAAAAAAAAAAAAAAAAA \\       AAAAAAAAAAAAAAAAAAAA     \end{tabular}          \lipsum[7-8]     \end{document}      As you can see, LaTeX starts the second part of the longtable in the title- continued line: ![Second part of Longtable starting in same line as the re-displayed title.](http://i.stack.imgur.com/QskLv.gif) Unfortunately I don't know LaTeX well enough to solve the problem. Can someone help me, please? (I already looked at answers to these similiar questions: Re-displaying section headings after page-breaks How to generate a "<section> continued" heading after page-break? Re-displaying section headings after page-breaks (with titlesec))


title: Template a Cover letter using macros?

text: I'd like to create a cover letter where I can insert the company name, and various other consistent pieces of information as a macro to be expanded when the document is compiled. I'm very new to LaTeX, but I'm certain this can be done with a macro; how can I do this? I'd like it to be this sort of thing:               \define{compname}{European XFEL}{European X-Ray Free Electron Laser}      So that when some command reading `compname` is compiled it spits out the long or short form.


title: Beamer: effect of newline and hphantom

text: Why is it that the file               \documentclass{beamer}     \begin{document}       \begin{frame}         a\\         \hphantom{ }b       \end{frame}     \end{document}      produces an `a` and a `b` vertically aligned with a _line skip_ in between whereas the same file with `\\\` replaced by `\newline` produces the expected: an `a`, then a `b` on the next line, indented by one space? Is that a bug in Beamer (in documentclass `Article`, both versions have the same, expected effect)? Thanks!


title: How to write Japanese with LaTeX?

text: I've recently started to use LaTeX but I've just encountered a problem, I tried searching it, although apparently no-one asked it before. I'd like to write using Japanese input, but when I typeset, there can happen 3 things:   1. I get some error when compiling;   2. I get question marks where Japanese stuff should appear;   3. Nothing appears. For example I had an example .tex file, compiled it and it worked, so I added some japanese in order to see "The author is [Japanese here]", but what I could see was "The author is [blank space]". I've tried checking some guides, but I haven't found anything that could solve my problem (they are too old, or they don't talk about this at all). Some minutes ago I tried compiling this:               \documentclass[12pt]{article}       \usepackage[T1]{fontenc}       \usepackage{CJKutf8}       \usepackage[romanian]{babel}       \usepackage[overlap, CJK]{ruby}       \usepackage{CJKulem}       \renewcommand{\rubysep}{-0.2ex}       \newenvironment{Japanese}{%       \CJKfamily{min}%       \CJKtilde       \CJKnospace}{}       \begin{document}       \parskip 3ex       \parindent 0pt       \begin{CJK}{UTF8}{}       \begin{Japanese}       ねこ        \end{Japanese}       \end{CJK}       \end{document}      It compiles fine but, still same problem, nothing appears when typeset, even if I should see "ねこ". There are many Linux guides, but I have a Mac and apparently, there aren't a lot around... EDIT: A small add, if I get this to work, is the solution related to other asian languages such as Korean or Chinese?


title: How do I load a custom class in LyX?

text: I'm interested in making some modifications to a standard class to use as the class for many documents I'm creating, and see that one way to do this is to simply create a "wrapper class". This approach makes a lot of sense for my application and will (I think) be easy to maintain. But I can't see how to get my documents to use this class. I understand how to do this using LaTeX directly, but not using LyX. What do I need to do to get my class to appear in the list of classes listed in `Document > Settings... > Document Class`?


title: recreate \qed as \Box aligned under the current line

text: I use MathJax on my Website which unfortunately doesn't support the use of `\qed` to create QED symbols. So what I'm looking for is a way of recreate or rebuild the little square `\qed` usually offers. I thought of aligning the `\Box` under the current line, but I don't know how.. Any suggestions?


title: Is testing f@shape considered best practice method for reliably detecting italic and slant modes?

text: Subject says it all. Is testing `f@shape` the cleanest, clearest, simplest, most reliable way to check for italic and slant modes? _e.g.:_               \ifthenelse{\equal{\f@shape}{sl}}{italic}{not italic}     \ifthenelse{\equal{\f@shape}{it}}{slant}{not slant}      Obviously, without more context, the question is a bit broad—for example, rather than wrapping this in an `\ifthenelse`, it might be cleaner to set an internal length variable depending on the mode. In my case, I simply want to emit varying amounts of kerning in the middle of a macro—none for normal text, a little bit for slanted text, and a little more for italics. This is for a macro that typesets fractions. I've got it working but I'm just wondering if this is the cleanest way.


title: How to make a slanted vertical bar?

text: I'm stumped on this. I would like to make a slanted (and italic) vertical bar in the middle of some regular text. If I use `$|$`, it comes out literally vertical regardless of style, since it's a math operator. For reasons I don't understand, `|` is accepted by TeX but comes out as an em- dash rather than a vertical bar. Using `\char124` works fine for the typewriter font, but I need this for Computer Modern Roman Slant & Italic. I only need this so that I can see the exact slope of slanted and italic text visually; it's temporary for lining some things up. I can get by for now with `[` and `]`—which do display correctly in slanted and italic shapes—but now I've become very curious about how to make the vertical bar work, because I don't like it when I don't understand things. :)


title: External margins of embedded newmdenv environments

text: In the code:               \documentclass{article}     \usepackage[framemethod=default]{mdframed}     \newmdenv[backgroundcolor=red]{tBox}     \newmdenv[leftmargin=1cm,linecolor=blue]{aBox}     \begin{document}     \begin{aBox}\begin{tBox}text\end{tBox}text\end{aBox}     \end{document}      ![enter image description here](http://i.stack.imgur.com/2Pzww.png) the `leftmargin` of the `aBox` environment affects the `leftmargin` of the `tBox` environment: is this expected?


title: Classic Thesis & Microtype

text: I would to know if with classicthesis the microtype package must be loaded, or is loaded by default from `classicthesis.sty`. And if is loaded, what features are enabled? if the microtype package must be loaded, is better this way:               \documentclass{scrreprt}          \usepackage[protrusion=true,expansion=true,auto=true,tracking=true]{microtype}          \usepackage[pdfspacing]{classicthesis}          \begin{document}          test          \end{document}      or this?:               \documentclass{scrreprt}          \usepackage[pdfspacing]{classicthesis}          \microtypesetup{protrusion=true,expansion=true,auto=true,tracking=true}          \begin{document}          test          \end{document}      Another thing: this is a good setting basic for microtype?               \usepackage[protrusion=true,expansion=true,auto=true,tracking=true]{microtype}


title: tikz spacing between circles

text: How to reduce distance between circles ? and how to colorize each circle ?               \documentclass{article}     \usepackage[paperheight=30cm,paperwidth=35cm,margin=1in,heightrounded]{geometry}     \usepackage{tikz}     \usetikzlibrary{calc}               \begin{document}     \fbox{\begin{tikzpicture}[scale=0.8] %      % center     \path  (0,0) coordinate(A);     % circles     \foreach \rr in {2,...,10}{       \draw  (A) circle (\rr);     }     \end{tikzpicture}}     \end{document}


title: Add part numbers and descriptions to figure?

text: I'd like to add part numbers and descriptions to a figure containing an object consisting of several parts. A circle with a number in it, a line and a dot or arrow that points to the relating part (let's say a given coordinate in an included image). How do I do that? Are there any packages that can handle that for me?


title: Local scoping of textfloatsep

text: I was wondering if you can set the scope of `\textfloatsep` locally. I have found an old thread on Google groups, which points out that you couldn't. Has that changed by now? So what I want to do is simply to set `\textfloatsep` to zero for only one table keeping the remaining tables unaffected. edit: I thought about it and wouldn't be a manual solution to set it to zero just before the float and reverse to the original value afterwards?               \documentclass[a4paper, 12pt, headsepline, headings=small,]{scrreprt}     \usepackage[onehalfspacing]{setspace}     \usepackage[T1]{fontenc}     \usepackage[utf8]{inputenc}     \usepackage{booktabs}     \usepackage[pangram]{blindtext}               \begin{document}          \chapter{Tables}          \Blindtext[1][1]     \begin{table}[!t]     \centering     \caption{Table caption}      \fbox{X-Table}     \end{table}     \Blindtext[1][1]          \Blindtext[1][1]     \begin{table}[!t]     \centering     \caption{Table caption}      \fbox{Y-Table}     \end{table}     \Blindtext[1][1]          \end{document}


title: Tikz bar plot problem: Missing number, treated as zero \end

text: I have been trying to plot the figure: ![enter image description here](http://i.stack.imgur.com/dAQvd.jpg) by using TikZ. However, the code does not compile and I get many errors on line 48, which is \end{axis}, as follows:               Dimension too large     Missing number, treated as zero     Missing number, treated as zero \end{axis}     Extra \endcsname \end{axis}      I have 3912 data for both "corrected" and "interpolated" data, as shown in the image in the above link. Each bar contains one column for "corrected and one for "interpolated". I want to have a little gap between each column and bar. However, since there are 3912 bars, the gap becomes very small. The code can be found in below. I had to remove most of the coordinates in the code to be able to post the question.               \documentclass[border=5mm]{standalone}     \usepackage{pgfplots}     \newlength\figureheight     \newlength\figurewidth     \setlength\figureheight{4cm}     \setlength\figurewidth{8cm}      % defining custom colors     \definecolor{mycolor1}{rgb}{0,0,0.5625}          \begin{document}     \begin{tikzpicture}          \begin{axis}[%     width=\figurewidth,     height=\figureheight,     scale only axis,     xmin=0, xmax=4500,     ymin=0, ymax=40,     legend style={draw=black,fill=white,align=left},     area legend]     \addplot[ybar,bar width=5.07936507936508e-05\figurewidth,bar shift=-3.17460317460317e-05\figurewidth,fill=mycolor1,draw=mycolor1] plot coordinates{ (1,7.67925776852681) (2,7.89191272713598) (3,7.80049189095382) (4,7.59686636089235) (5,7.51745631713953) (6,7.48541656721179) (7,12.6373914509645) (8,10.7190161710158) (9,7.6817173386498) (10,7.49323026735275) (11,7.25494980046892) (12,7.7730905146054) (13,15.0270536561953) (14,20.4015910110649) (15,3.5109569644315) (16,2.41485830796476) (17,2.78736059942334) (18,7.458073695569) (19,7.6158979046821) (20,7.57443654621311) (21,7.34152203934566) (22,7.22507866556772) (23,7.18974058359779) (24,12.6899675959173) (25,10.7117221284263) (26,7.65284112708195) (27,7.4944601072829) (28,7.38354677101688) (29,7.97020544129491) (30,14.9042131356978) (31,20.1419057971168) (32,4.0059828878528) (33,2.75126110918529) (34,2.5709119537156) (35,7.33072968734785) (36,7.47040119476129) (37,7.40080866087593) (38,7.15717925959866) (39,7.03537238506774) (40,7.01417111934541) (41,15.145731363078) (42,10.9774742839385) (43,7.91615359520869) (44,7.77842728109795) (45,7.73664820982248) (46,10.9693748055796) (47,18.1792553883102) (48,22.9165444515374) (49,18.1624480126299) (50,3.24314697672339) (51,2.99516580751726) (52,7.35542288202923) (53,7.73237968625605) (54,11.5965095143778) (55,11.4062013827679) (56,11.7191233472388) (57,11.4117733474254) (58,7.46394241162696) (59,11.5966259554984) (60,8.49790618063887) (61,8.2508504634656) (62,8.24445697023325) (63,14.4332817251754) (64,35.8373515624242) (65,25.9761339600678) (66,26.3484423004561) (67,4.1106702198142) (68,3.68051396264358) (69,11.0176479049838) (70,10.9321103405229) (71,10.9549591451551) (72,11.0887851969169) (73,11.2984634229199) (74,8.18800612811101) (75,10.7154862029533) (76,32.155600665545) (77,26.3983133497149) (78,9.02457189520993) (79,15.1171340964546) (80,23.3767425630843) (81,29.7533173203289) (82,20.2650116601358) (83,16.5503294583692) (84,26.0636695914866) (85,6.77181133145384) (86,10.7356104760853) (87,10.6959134026698) (88,10.8556261504415) (89,11.660467940214) (90,8.99373087491466) (91,7.90872739739617) (92,7.38024567331697) (93,8.4785387943717) (94,25.1238668264533) (95,17.1804133297583) (96,23.0765557679917) (97,19.5727101288508) (98,16.6367207748339) (99,17.8968317920327) (100,24.5639708235006) (101,16.0494446035713) (102,23.1666730118493) (103,10.723530508449) (104,10.745466764304) (105,11.251408203245) (106,10.0921626473108) (107,11.5072998252888) (108,8.37655302163696) (109,8.02277751908322) (110,7.89636001790077) (111,6.61438288422899) (112,7.59677472946235) (113,15.1787122250653) (114,26.6572727725904) (115,21.0235425072076) (116,12.5324391917295) (117,12.3351438411022) (118,12.6691779574475) (119,12.7126724264412) (120,9.92941604839816) (121,9.53791820792116) (122,9.3905197366545) (123,9.32478813139845) (124,10.1933713510167) (125,7.89958440003049) (126,7.7058952182203) (127,7.40192959267953) (128,16.3954636555399) (129,18.39788073814) (130,14.0177821023947) (131,12.4994433972792) (132,11.4655590352526) (133,10.0479947429511) (134,8.258496560335) (135,9.39953494397581) (136,9.2845947974024) (137,8.98737349878294) (138,8.85334610142407) (139,8.78749616882949) (140,8.77344786397684) (141,9.07654776067787) (142,8.73107321577536) (143,13.727187877742) (144,27.3464010063229) (145,12.3454466560748) (146,10.7385656773577) (147,12.738468050864) (148,15.5841504413289) (149,15.1138135371472) (150,4.1188628062503) (151,20.6000503851565) (152,28.517872150685) (153,24.157884568311) (154,16.9042161171853) (155,12.2332416671923) (156,12.2450350875483) (157,12.3949058430098) (158,11.9531298868871) (159,10.4950729351269) (160,9.75937859380502) (161,14.2497534543551) (162,18.2957840592943) (163,3.42267102948726) (164,3.89006863048656) (165,4.34532008307766) (166,9.80462794298077) (167,13.4444929298179) (168,10.8626544357279) (169,9.18265127769196) (170,8.62527365034936) (171,9.0303781280478) (172,9.16610514539105) (173,9.5195667952341) (174,15.1352102813753) (175,3.07578832843528) (176,4.91103494057773) (177,8.83717776362407) (178,8.01076685167589) (179,5.38149307859497) (180,11.493379567167) (181,12.9915960572903) (182,14.5274890707426) (183,7.98977443639616) (184,8.82286260151406) (185,9.04862368016335) (186,8.96980312650842) (187,8.01349464167493) (188,5.15631859000723) (189,2.66732620614063) (190,3.02698048618063) (191,12.7740155370606) (192,5.13385820198532) (193,5.31265788058696) (194,5.24367094341045) (195,5.49273354502654) (196,5.05313131636797) (197,7.04344740077222) (198,6.78447601121456) (199,5.94023845919936) (200,13.5058162628521) (201,4.43122698565505) (202,2.29282691848472) (203,2.62783205490409) (204,2.55337345158217) (205,2.46775461033322) (206,2.77023361875713) (207,13.6633631064085) (208,7.04964885472821) (209,6.82884887579698) (210,6.86142853427944) (211,2.69309365749078) (212,2.70698483868788) (213,2.80256507031715) (214,2.53463958485699) (215,2.4771623034084) (216,2.37423941610727) (217,2.28347877619665) (218,2.2604598420006) (219,2.34957658006529) (220,2.9555452563669) (221,7.32909082557967) (222,9.98307747094892) (223,7.18696193429116) (224,7.23299638542514) (225,7.31466547255909) (226,9.91113214137525) (227,2.86659012490543) (228,2.50801631809679) (229,7.99787457264886) (230,6.21409681911644) (231,4.8016009522661) (232,6.86278800147492) (233,12.5270576427198) (234,2.21778393498543) (235,2.13902635467258) (236,1.70519040367763) (237,4.53098872343159) (238,6.704205811603) (239,9.56039590460022) (240,7.50684047859395) (241,4.65575873016157) (242,5.94931702357858) (243,2.34902078847186) (244,1.66325551083391) (245,2.18170413237767) (246,3.44643610574025) (247,1.77523373213968) (248,1.76190775488472) (249,3.98952208200991) (250,7.02631225631318) (251,7.22472007337518) (252,6.60997769386235) (253,6.28807230091759) (254,6.1684727019719) (255,5.8651947063736) (256,5.79723612241028) (257,10.9820054651619) (258,5.83638279945002) (259,2.89423647889987) (260,2.8308941396979) (261,6.76958940317923) (262,21.5030755288965) (263,16.3749904148227) (264,2.17217865781971) (265,1.79000606169705) (266,3.64436666148415) (267,6.78120085103903) (268,6.85003157599207) (269,6.52192529142848) (270,6.21483424951281) (271,6.06549996714627) (272,5.88109483416021) (273,6.10427136319069) (274,10.3668186109438) (275,6.67732913107573) (276,6.34434851123816) (277,11.5420896441039) (278,6.95690908130888) (279,22.1546807366681) (280,33.5032005568846) (281,2.60513138783838) (282,1.94111378984568) (283,3.94513941438485) (284,6.59853630969325) (285,6.60297703041445) (286,6.85125215354739) (287,6.52497733944047) (288,6.37140996803559) (289,6.25836949598256) (290,6.81832235906524) (291,10.5006469045051) (292,7.10187901430344) (293,6.78890591158479) (294,6.72994466580288) (295,11.0144684492729) (296,22.6523333537359) (297,23.1174485042011) (298,3.25658923701601) (299,2.27015328693375) (300,4.28189089654266) (301,6.4921269376934) (302,6.47313322443297) (303,6.59362454277515) (304,7.12878358662848) (305,6.71423472746923) (306,6.60343737320629) (307,6.73071983998315) (308,11.0462125307379) (309,7.6237912574102) (310,7.40452087914546) (311,8.53768364538727) (312,11.0735775358602) (313,26.26748571383) (314,19.2753632797963) (315,4.25414201203332) (316,2.97077179217249) (317,4.54508352883482) (318,6.47222629771275) (319,6.45342624101562) (320,6.58286526801928) (321,6.90919090038583) (322,10.9340133750194) (323,11.1413850419962) (324,8.85020254649959) (325,14.6231271326818) (326,8.39609860579205) (327,8.1102252163042) (328,14.3815303915823) (329,18.7856223765643) (330,25.737371071741) (331,16.4191668957377) (332,24.7851406076717) (333,4.01343447929937) (334,3.54655597292447) (335,6.60707282232936) (336,6.70851356161361) (337,10.412478397985) (338,10.3652901239214) (339,10.6764487210627) (340,8.34883496792358) (341,9.43874978622703) (342,10.732723992119) (343,20.9671792729818) (344,22.2796831193432) (345,26.2689350815855) (346,22.0555092056697) (347,16.2589625720906) (348,14.1913148111443) (349,16.6950287239065) (350,7.66909672127485) (351,6.81492107255328) (352,10.1446291316534) (353,10.0258595156777) (354,10.1116769914944) (355,10.3492596672605) (356,9.67403570343042) (357,8.26023065841463) (358,7.18650434291815) (359,6.31336922578616) (3677,1.17056094602306) (3678,7.76162697260445) (3679,0.988725545762644) (3855,15.3642128883453) (3856,20.4793606616793) (3857,7.56608975352655) (3858,7.87524992441182) (3859,18.0465067586201) (3860,5.53485145655565) (3861,0.726950765606692) (3862,1.12930594369344) (3863,3.60736989120596) (3864,4.71795609493023) (3865,4.34805667744069) (3866,5.69713988933337) (3867,5.90600834191925) (3868,5.95175519735194) (3869,5.87357955699512) (3870,0.741915601522068) (3871,1.22878670257979) (3872,3.65387280443578) (3873,7.50699546931154) (3874,5.9195011959312) (3875,5.73510678810434) (3876,5.63419669288746) (3877,0.770239080610968) (3878,2.16193303019363) (3879,5.11853035978307) (3880,2.91418834696716) (3881,2.51934416241699) (3882,4.92105736597358) (3883,5.47429193798979) (3884,16.7284103378678) (3885,23.2435398544722) (3886,23.4894870807394) (3887,23.8363726003677) (3888,21.5039206954628) (3889,0.831682722260771) (3890,2.05752917245903) (3891,3.07767020638021) (3892,3.90285703343124) (3893,7.35556303251671) (3894,1.79387143391482) (3895,1.38742651655297) (3896,1.23876828123597) (3897,1.20750299333843) (3898,2.7851331449517) (3899,5.63499757554771) (3900,2.99632029834448) (3901,0.907866809300416) (3902,1.87361366818838) (3903,2.53153898068471) (3904,3.95290157640666) (3905,4.20588106433053) (3906,1.24534849313576) (3907,4.99987975960946) (3908,1.24102364401449) (3909,1.2680301186678) (3910,2.30506899961464) (3911,1.89583636267601) (3912,7.1851838917926) (3913,0) (3914,0) (3915,0) (3916,0) (3917,0) (3918,0) (3919,0) (3920,0) (3921,0) (3922,0) (3923,0) (3924,0) (3925,0) (3926,0) (3927,0) (3928,0) (3929,0) (3930,0) (3931,0) (3932,0) (3933,0) (3934,0) (3935,0) (3936,0) (3937,0) (3938,0) (3939,0) (3940,0) (3941,0) (3942,0) (3943,0) (3944,0) (3945,0) (3946,0) (3947,0) (3948,0) (3949,0) (3950,0) (3951,0) (3952,0) (3953,0) (3954,0) (3955,0) (3956,0) (3957,0) (3958,0) (3959,0) (3960,0) (3961,0) (3962,0) (3963,0) (3964,0) (3965,0) (3966,0) (3967,0) (3968,0) (3969,0) (3970,0) (3971,0) (3972,0) (3973,0) (3974,0) (3975,0) (3976,0) (3977,0) (3978,0) (3979,0) (3980,0) (3981,0) (3982,0) (3983,0) (3984,0) (3985,0) (3986,0) (3987,0) (3988,0) (3989,0) (3990,0) (3991,0) (3992,0) (3993,0) (3994,0) (3995,0) (3996,0) (3997,0) (3998,0) (3999,0) (4000,0) (4001,0) (4002,0) (4003,0) (4004,0) (4005,0) (4006,0) (4007,0) (4008,0) (4009,0) (4010,0) (4011,0) (4012,0) (4013,0) (4014,0) (4015,0) (4016,0) (4017,0) (4018,0) (4019,0) (4020,0) (4021,0) (4022,0) (4023,0) (4024,0) (4025,0) (4026,0) (4027,0) (4028,0) (4029,0) (4030,0) (4031,0) (4032,0) (4033,0) (4034,0) (4035,0) (4036,0) (4037,0) (4038,0) (4039,0) (4040,0) (4041,0) (4042,0) (4043,0) (4044,0) (4045,0) (4046,0) (4047,0) (4048,0) (4049,0) (4050,0) (4051,0) (4052,0) (4053,0) (4054,0) (4055,0) (4056,0) (4057,0) (4058,0) (4059,0) (4060,0) (4061,0) (4062,0) (4063,0) (4064,0) (4065,0) (4066,0) (4067,0) (4068,0) (4069,0) (4070,0) (4071,0) (4072,0) (4073,0) (4074,0) (4075,0) (4076,0) (4077,0) (4078,0) (4079,0) (4080,0) (4081,0) (4082,0) (4083,0) (4084,0) (4085,0) (4086,0) (4087,0) (4088,0) (4089,0) (4090,0) (4091,0) (4092,0) (4093,0) (4094,0) (4095,0) (4096,0) (4097,0) (4098,0) (4099,0) (4100,0) (4101,0) (4102,0) (4103,0) (4104,0) (4105,0) (4106,0) (4107,0) (4108,0) (4109,0) (4110,0) (4111,0) (4112,0) (4113,0) (4114,0) (4115,0) (4116,0) (4117,0) (4118,0) (4119,0) (4120,0) (4121,0) (4122,0) (4123,0) (4124,0) (4125,0) (4126,0) (4127,0) (4128,0) (4129,0) (4130,0) (4131,0) (4132,0) (4133,0) (4134,0) (4135,0) (4136,0) (4137,0) (4138,0) (4139,0) (4140,0) (4141,0) (4142,0) (4143,0) (4144,0) (4145,0) (4146,0) (4147,0) (4148,0) (4149,0) (4150,0) (4151,0) (4152,0) (4153,0) (4154,0) (4155,0) (4156,0) (4157,0) (4158,0) (4159,0) (4160,0) (4161,0) (4162,0) (4163,0) (4164,0) (4165,0) (4166,0) (4167,0) (4168,0) (4169,0) (4170,0) (4171,0) (4172,0) (4173,0) (4174,0) (4175,0) (4176,0) (4177,0) (4178,0) (4179,0) (4180,0) (4181,0) (4182,0) (4183,0) (4184,0) (4185,0) (4186,0) (4187,0) (4188,0) (4189,0) (4190,0) (4191,0) (4192,0) (4193,0) (4194,0) (4195,0) (4196,0) (4197,0) (4198,0) (4199,0) (4200,0) (4201,0) };          \addlegendentry{Corrected};          \addplot [     color=black,     solid,     forget plot     ]     coordinates{      (0,0)(4500,0)      };     \addplot[ybar,bar width=5.07936507936508e-05\figurewidth,bar shift=3.17460317460317e-05\figurewidth,fill=red!50!black,draw=red!50!black] plot coordinates{ (1,0.0857771713961686) (2,0.37170090675354) (3,0.37170090675354) (4,0.514662885665893) (5,0.657624848627001) (6,0.486070489883423) (7,0.943548583984373) (8,0.943548583984373) (9,1.08651056289673) (10,1.08651056289673) (11,2.45894521078186) (12,1.22947254180908) (13,1.22947254180908) (14,1.37243450477019) (15,2.01576323634635) (16,2.30168707769543) (17,3.98863778114325) (18,0.0857771713961686) (19,0.37170090675354) (20,0.37170090675354) (21,0.514662885665893) (22,0.657624848627001) (23,0.486070489883423) (24,0.943548583984373) (25,0.943548583984373) (26,1.08651056289673) (27,1.08651056289673) (28,2.45894521078186) (29,1.22947254180908) (30,1.22947254180908) (31,1.37243450477019) (32,2.01576323634635) (33,2.30168707769543) (34,3.98863778114325) (35,0.0857771713961686) (36,0.37170090675354) (37,0.37170090675354) (38,0.514662885665893) (39,0.657624848627001) (40,0.486070489883423) (41,0.943548583984373) (42,0.943548583984373) (43,1.08651056289673) (44,1.08651056289673) (45,2.45894521078186) (46,1.22947254180908) (47,1.22947254180908) (48,1.37243450477019) (49,2.01576323634635) (50,2.30168707769543) (51,3.98863778114325) (52,0.0857771713961686) (53,0.37170090675354) (54,0.37170090675354) (55,0.514662885665893) (56,0.657624848627001) (57,0.486070489883423) (58,0.943548583984373) (59,0.943548583984373) (60,1.08651056289673) (61,1.08651056289673) (62,2.45894521078186) (63,1.22947254180908) (64,1.22947254180908) (65,1.37243450477019) (66,2.01576323634635) (67,2.30168707769543) (68,3.98863778114325) (69,0.0857771713961686) (70,0.37170090675354) (71,0.37170090675354) (72,0.514662885665893) (73,0.657624848627001) (74,0.486070489883423) (75,0.943548583984373) (76,0.943548583984373) (77,1.08651056289673) (78,1.08651056289673) (79,2.45894521078186) (80,1.22947254180908) (81,1.22947254180908) (82,1.37243450477019) (83,2.01576323634635) (84,2.30168707769543) (85,3.98863778114325) (86,0.0857771713961686) (87,0.37170090675354) (88,0.37170090675354) (89,0.514662885665893) (90,0.657624848627001) (91,0.486070489883423) (92,0.943548583984373) (93,0.943548583984373) (94,1.08651056289673) (95,1.08651056289673) (96,2.45894521078186) (97,1.22947254180908) (98,1.22947254180908) (99,1.37243450477019) (100,2.01576323634635) (101,2.30168707769543) (102,3.98863778114325) (103,0.0857771713961686) (104,0.37170090675354) (105,0.37170090675354) (106,0.514662885665893) (107,0.657624848627001) (108,0.486070489883423) (109,0.943548583984373) (110,0.943548583984373) (111,1.08651056289673) (112,1.08651056289673) (113,2.45894521078186) (114,1.22947254180908) (115,1.22947254180908) (116,1.37243450477019) (117,2.01576323634635) (118,2.30168707769543) (119,3.98863778114325) (120,0.128670417431064) (121,0.371700908611683) (122,0.371713702192793) (123,0.515646888371417) (124,0.658582666168217) (125,0.842472853382313) (126,0.587829211718545) (127,1.08374308510228) (128,1.29073509569998) (129,1.65929121282388) (130,2.19783756586073) (131,1.23659945761059) (132,1.52265448304027) (133,2.3016909065088) (134,3.9886378998538) (135,0.350963417213423) (136,0.371701129724422) (137,0.374353852289151) (138,0.711726641089195) (139,0.829222688908263) (140,0.840732258004388) (141,1.00884832413784) (142,0.832621868716074) (143,1.20937421671182) (144,1.47190710961749) (145,18.478820618296) (146,1.79529502297713) (147,2.40376294365805) (148,20.681465663036) (149,2.30185977522151) (150,4.04648644038455) (151,0.629737608178383) (152,0.371700911754683) (153,0.529500613390888) (154,0.710057341570466) (155,0.845487222504616) (156,0.48890766969229) (157,0.950788587724863) (158,1.0374266249788) (159,1.26873824568146) (160,1.4161411889583) (161,24.4628620404755) (162,1.71326241736784) (163,26.3534162470101) (164,4.18400271913613) (165,4.31950040425114) (166,0.404882449799613) (167,0.373916149073277) (168,0.372798074091461) (169,0.514871063965539) (170,0.657826556046644) (171,0.486139637904457) (172,0.943604744366064) (173,1.07058766919736) (174,1.33931249064209) (175,1.49786329803125) (176,2.9494679782515) (177,2.75822895469853) (178,3.42530877441) (179,3.82283392313509) (180,4.31655521208642) (181,2.46000654449267) (182,0.520154670757331) (183,0.384496213552928) (184,0.514664374511055) (185,0.65762485055987) (186,0.486163705529906) (187,0.943748396494717) (188,0.944005273911249) (189,1.08717384295516) (190,3.56971101437709) (191,3.34486627886455) (192,3.13636876384801) (193,2.94017663703107) (194,2.92568262873265) (195,3.9801682847933) (196,31.7969226205309) (197,2.17870547631467) (198,2.14825988901499) (199,2.30907396447702) (200,4.40897103760043) (201,0.661631093687817) (202,0.519185209331526) (203,0.977409448980571) (204,0.959022101595511) (205,1.14401867556952) (206,4.12114260478272) (207,4.18987016673044) (208,3.88137182709741) (209,3.81447564131224) (210,3.84761330955003) (211,0.67805163643205) (212,1.45229950817788) (213,1.92340816916509) (214,3.98287041072024) (215,4.05400878302513) (216,4.39042635820324) (217,4.25541077022646) (218,4.74270355195921) (219,3.96164869526116) (220,4.44294686465345) (221,4.34314664460631) (222,3.99647588829574) (223,3.96096726976468) (224,8.12146767650043) (225,6.26434575556606) (226,2.54445636132955) (227,0.670874815751292) (228,0.92928598973983) (229,1.34229780593842) (230,3.83865767376009) (231,3.7433098579243) (232,3.78758450889359) (233,4.24100151426012) (234,4.41523199416033) (235,4.71062252558983) (236,4.80718798859805) (237,4.6059818100425) (238,4.24855227613271) (239,4.27278818727676) (240,0.670493193611664) (241,0.92206574418263) (242,1.18359253991338) (243,3.42726375922851) (244,3.48065043035123) (245,3.79896232492484) (246,4.51115075359547) (247,4.5892917158432) (248,5.12409450730911) (249,4.88148253205015) (250,0.328812547162139) (251,0.614736270904544) (252,0.614736270904544) (253,0.757698249816897) (254,0.900660224392972) (255,0.729105854034427) (256,2.31599006882705) (257,2.08724684537537) (258,2.05865171064068) (259,2.07294790257145) (260,2.21590984517898) (261,2.24450223500099) (262,1.47250790596008) (263,1.85850502360989) (264,1.75843167697875) (265,2.05865171064068) (266,3.74560241699225) (267,0.328812547162139) (268,0.614736270904544) (269,0.614736270904544) (270,0.757698249816897) (271,0.900660224392972) (272,0.729105854034427) (273,2.3446530038069) (274,2.10156987530019) (275,2.05865184456522) (276,2.07294790257145) (277,2.21590984517898) (278,2.24450223500099) (279,1.47250790596008) (280,1.85850502360989) (281,1.75843167697875) (282,2.05865171064068) (283,3.74560241699225) (284,0.328812547162139) (285,0.614736270904544) (286,0.614736270904544) (287,0.757698249816897) (288,0.900660224392972) (289,0.729105854034427) (290,2.35913106696407) (291,2.10163156153022) (292,2.05865382295791) (293,2.07294790257145) (294,2.21590984517898) (295,2.24450223500099) (296,1.47250790596008) (297,1.85850502360989) (298,1.75843167697875) (299,2.05865171064068) (300,3.74560241699225) (301,0.328812547162139) (302,0.614736270904544) (303,0.614736270904544) (304,0.757698249816897) (305,0.900660224392972) (306,0.729105854034427) (307,2.33032275371948) (308,2.08725116231042) (309,2.05865171064068) (310,2.07294790257145) (311,2.21590984517898) (312,2.24450223500099) (313,1.47250790596008) (314,1.85850502360989) (315,1.75843167697875) (316,2.05865171064068) (317,3.74560241699225) (318,0.328812547162139) (319,0.614736270904544) (320,0.614736270904544) (321,0.757698249816897) (322,0.900660224392972) (323,0.729105854034427) (324,2.31598319519688) (325,2.08724409450222) (326,2.05865171064068) (327,2.07294790257145) (328,2.21590984517898) (329,2.24450223500099) (330,1.47250790596008) (331,1.85850502360989) (332,1.75843167697875) (333,2.05865171064068) (334,3.74560241699225) (335,0.328812547162139) (336,0.614736270904544) (337,0.614736270904544) (338,0.757698249816897) (339,0.900660224392972) (340,0.729105854034427) (341,2.31598319519688) (342,2.08724409450222) (343,2.05865171064068) (344,2.07294790257145) (345,2.21590984517898) (346,2.24450223500099) (347,1.47250790596008) (348,1.85850502360989) (349,1.75843167697875) (350,2.05865171064068) (351,3.74560241699225) (352,0.328812547162139) (353,0.614736270904544) (354,0.614736270904544) (355,0.757698249816897) (356,0.900660224392972) (357,0.729105854034427) (358,2.31598319519688) (3667,1.37749244286698) (3668,6.17101278056198) (3669,0.960648510452717) (3670,4.19673605154273) (3671,4.34758444016802) (3843,16.541842670106) (3844,3.46554361103028) (3845,0.028592395782471) (3846,0.643328666687021) (3847,0.816632064125021) (3848,3.97597789901411) (3849,4.41979795670098) (3850,4.51979904860356) (3851,3.52395191336701) (3852,5.13391980643585) (3853,6.58698424021472) (3854,10.1823717680526) (3855,4.78815757123361) (3856,4.77207355574988) (3857,4.73341692763817) (3858,4.97334058419354) (3859,3.99267879698806) (3860,3.5461644493562) (3861,0.534333703014589) (3862,3.52781425521102) (3863,3.63509628424217) (3864,3.94666163456782) (3865,2.83183771305953) (3866,5.86812724490104) (3867,6.61321232802947) (3868,6.79097587016832) (3869,3.71679142279752) (3870,2.77613596806778) (3871,3.23000594649249) (3872,3.3490415726172) (3873,3.24064527378281) (3874,5.29718908531967) (3875,5.57612133810593) (3876,6.15931952451165) (3877,2.43265198750192) (3878,2.89648625339152) (3879,3.04728272479365) (3880,1.73899362091413) (3881,6.33569893646211) (3882,4.40913256737965) (3883,4.3086735346449) (3884,4.81302902098463) (3885,5.16336330422254) (3886,4.67647705787662) (3887,4.46792397352744) (3888,4.82448525774102) (3889,2.29529271172415) (3890,2.60751765693561) (3891,2.54787521485829) (3892,1.41126826415526) (3893,5.6104964121194) (3894,0.819372567047289) (3895,2.25583939473055) (3896,3.77418386308701) (3897,1.62202586748445) (3898,3.08812619705241) (3899,4.22298349930722) (3900,3.3491205739083) (3901,2.01892967162624) (3902,2.33959396886149) (3903,1.56953363354383) (3904,1.31761579421194) (3905,0.979227908468461) (3906,1.00625872629749) (3907,1.05156783693187) (3908,1.06863595568653) (3909,1.070505288966) (3910,1.36159049398829) (3911,1.23819247179137) (3912,3.48182549820829) (3913,0) (3914,0) (3915,0) (3916,0) (3917,0) (3918,0) (3919,0) (3920,0) (3921,0) (3922,0) (3923,0) (3924,0) (3925,0) (3926,0) (3927,0) (3928,0) (3929,0) (3930,0) (3931,0) (3932,0) (3933,0) (3934,0) (3935,0) (3936,0) (3937,0) (3938,0) (3939,0) (3940,0) (3941,0) (3942,0) (3943,0) (3944,0) (3945,0) (3946,0) (3947,0) (3948,0) (3949,0) (3950,0) (3951,0) (3952,0) (3953,0) (3954,0) (3955,0) (3956,0) (3957,0) (3958,0) (3959,0) (3960,0) (3961,0) (3962,0) (3963,0) (3964,0) (3965,0) (3966,0) (3967,0) (3968,0) (3969,0) (3970,0) (3971,0) (3972,0) (3973,0) (3974,0) (3975,0) (3976,0) (3977,0) (3978,0) (3979,0) (3980,0) (3981,0) (3982,0) (3983,0) (3984,0) (3985,0) (3986,0) (3987,0) (3988,0) (3989,0) (3990,0) (3991,0) (3992,0) (3993,0) (3994,0) (3995,0) (3996,0) (3997,0) (3998,0) (3999,0) (4000,0) (4001,0) (4002,0) (4003,0) (4004,0) (4005,0) (4006,0) (4007,0) (4008,0) (4009,0) (4010,0) (4011,0) (4012,0) (4013,0) (4014,0) (4015,0) (4016,0) (4017,0) (4018,0) (4019,0) (4020,0) (4021,0) (4022,0) (4023,0) (4024,0) (4025,0) (4026,0) (4027,0) (4028,0) (4029,0) (4030,0) (4031,0) (4032,0) (4033,0) (4034,0) (4035,0) (4036,0) (4037,0) (4038,0) (4039,0) (4040,0) (4041,0) (4042,0) (4043,0) (4044,0) (4045,0) (4046,0) (4047,0) (4048,0) (4049,0) (4050,0) (4051,0) (4052,0) (4053,0) (4054,0) (4055,0) (4056,0) (4057,0) (4058,0) (4059,0) (4060,0) (4061,0) (4062,0) (4063,0) (4064,0) (4065,0) (4066,0) (4067,0) (4068,0) (4069,0) (4070,0) (4071,0) (4072,0) (4073,0) (4074,0) (4075,0) (4076,0) (4077,0) (4078,0) (4079,0) (4080,0) (4081,0) (4082,0) (4083,0) (4084,0) (4085,0) (4086,0) (4087,0) (4088,0) (4089,0) (4090,0) (4091,0) (4092,0) (4093,0) (4094,0) (4095,0) (4096,0) (4097,0) (4098,0) (4099,0) (4100,0) (4101,0) (4102,0) (4103,0) (4104,0) (4105,0) (4106,0) (4107,0) (4108,0) (4109,0) (4110,0) (4111,0) (4112,0) (4113,0) (4114,0) (4115,0) (4116,0) (4117,0) (4118,0) (4119,0) (4120,0) (4121,0) (4122,0) (4123,0) (4124,0) (4125,0) (4126,0) (4127,0) (4128,0) (4129,0) (4130,0) (4131,0) (4132,0) (4133,0) (4134,0) (4135,0) (4136,0) (4137,0) (4138,0) (4139,0) (4140,0) (4141,0) (4142,0) (4143,0) (4144,0) (4145,0) (4146,0) (4147,0) (4148,0) (4149,0) (4150,0) (4151,0) (4152,0) (4153,0) (4154,0) (4155,0) (4156,0) (4157,0) (4158,0) (4159,0) (4160,0) (4161,0) (4162,0) (4163,0) (4164,0) (4165,0) (4166,0) (4167,0) (4168,0) (4169,0) (4170,0) (4171,0) (4172,0) (4173,0) (4174,0) (4175,0) (4176,0) (4177,0) (4178,0) (4179,0) (4180,0) (4181,0) (4182,0) (4183,0) (4184,0) (4185,0) (4186,0) (4187,0) (4188,0) (4189,0) (4190,0) (4191,0) (4192,0) (4193,0) (4194,0) (4195,0) (4196,0) (4197,0) (4198,0) (4199,0) (4200,0) (4201,0) };          \addlegendentry{Interpolated};          \end{axis}     \end{tikzpicture}%     \end{document}      Could someone please help me? Thanks.


title: Broken matrix - gaps in brackets

text: This is my minimal working example.               \documentclass[12pt,a4paper]{mwrep}     %\usepackage{amsfonts}     \usepackage{amsmath}     %\renewcommand\baselinestretch{1.5}          \begin{document}     \chapter{Example}     \begin{equation}     P=     \begin{bmatrix} p_{11} & p_{12} & \cdots & p_{1r} \\                     p_{21} & p_{22} & \cdots & p_{2r} \\                     \vdots & \vdots & \ddots & \vdots \\                     p_{r1} & p_{r2} & \cdots & p_{rr}     \end{bmatrix}     \end{equation}     \end{document}      This is view of the matrix when lines 2 and 4 are left commended (200%) ![](http://i.stack.imgur.com/UhW99.png)   This is what you get when you uncomment them (200%) ![](http://i.stack.imgur.com/FHfAA.png) As you can see the brackets are thinner and size is different. I don't mind it. But I don't like those gaps in brackets. How can I get rid of them?   How can I make `bmatrix` behave like lines 2 and 4 were left commented and the rest of document like they were uncommented?


title: Bell Curve/Gaussian Function/Normal Distribution in TikZ/PGF

text: Can anyone tell me how to plot a gaussian function/bell curve using TikZ/PGF? I'm basically looking to implement something like PSTricks's `\psGauss` command.


title: How can I get the figures not to be pushed to the end of the document?

text: For some reason, my figures get pushed to the end of the document. I tried `begin{figure}[t]`, `[h]` and other options, but none helped. Any ideas how to get the figures to appear much earlier in the document, where they are approximately first mentioned in the .tex file?


title: Lineno - numbering abstract's lines.

text: The package lineno.sty is not numbering my abstract's lines. Any suggestions? Thanks.               \documentclass[a4paper,12pt]{amsart}           \usepackage{indentfirst}     \usepackage{hyperref}     \usepackage{showkeys}          \usepackage{lineno}          \hyphenpenalty=5000       \tolerance=1000               \begin{document}          \linenumbers          \title{Lineno in the Abstract}     \begin{abstract}     We do this, do that, ...     \end{abstract}          \maketitle          \section{Introduction}          \end{document}


title: pgfplots - close path for surrounding rectangle

text: is it possible to close the path from the coordinate frame in pgfplots? If I plot something, the frame rectangle of the coordinate system looks fine except the bottom left corner: the lines do not nicely consolidate (so the path looks "unclosed"). Is there a way to do so? This looks especially weird when you use a big line width. I'll uploaded a screenshot here. As you might see, the top corner looks nice, the bottom don't. **EDIT: Screenshot** Now the direct screenshot directly here :) ![enter image description here](http://i.stack.imgur.com/rju5H.png) As mentioned above: the top corner looks nice, the bottom don't.


title: Where should I use \textsc?

text: When should I use macro `\textsc` ? What is common practice in document like diploma thesis? Should I use it for names of persons, names of described entities of particular interest or in some other cases? Is there a difference in usage between languages?


title: LaTeX project file system structure and Ouput dir on TeXworks

text: I am writing a report that contain numerous sub items. For better organizing the report, it is broken in many smaller pieces (around 60), this is done to make it easier for to work distributed with other folks and to have a quick full change history of each part on svn (today is only me, but soon more people will join the project). As I'm new to LaTeX, I wonder if the file structure I am using makes the development better. I am using the following folder/files structure (based on http://en.wikibooks.org/wiki/LaTeX/General_Guidelines#Project_structure):               /mainFile.tex     /tex/chapter1.tex     /tex/chapter2.tex     /tex/chapter3/chapter3.tex     /tex/chapter3/chapter3section1.tex     /tex/chapter3/chapter3section2.tex     /...     /img     /reportclass.cls     /biblio.bib      The image folder keeps all images. I would like to hear from you about my approach and which folder structure you usually have on your LaTeX projects. Another question is, when it compiles, all aux, blg, bbl, toc and so files are built on project root folder. Searching here, I found that I could change the -output-directory=DIR on latex command line. However, I use TeXworks that comes with MiKTeX for editing and generating the pdf output. Does any one know how to set that option on TeXworks?


title: Format \ref as a roman numeral? Strange bug

text: How do I get a `\ref` to format as a Roman numeral? At the moment I have the code:               \newcommand{\appendixref}[1]{Appendix~\romannumeral 0\ref{#1}\relax}      This works great... except for when it doesn't. Take a look at the image bellow: ![Example of it both working and not working in the same paragraph](http://i.stack.imgur.com/QNfsM.png) Which in the LaTeX the code is:               A single state of the board is represented with a \inlinecode{BoardState} (see \textbf{\appendixref{BoardState}}) interface. A state contains all the relevant information about the current state of a board that makes it unique from another state of the board.. For the purpose of my application, I extended this to create an \inlinecode{AbstractBoardState} (see \textbf{\appendixref{AbstractBoardState}}) which contained a lot of the common code between the two types of \inlinecode{BoardState}      I would say it works about 85% of the time. I would like a solution that works all the time and a possible explanation for why this is not working all the time. To provide some more context, I have an appendix defined as the following environment:               \renewenvironment{appendix}[1][section]{         \newcommand{\oldsection}{#1}         \newcounter{oldsection}         \setcounter{oldsection}{\value{#1}}         \setcounter{#1}{0}         \expandafter\renewcommand\csname the#1\endcsname{\roman{#1}}     }{         \setcounter{\oldsection}{\value{oldsection}}     }      An example usage of this environment is as follows:               \begin{appendix}[subsection]     \section{Appendix}          \subsection{Tile.java} \label{Tile}     \javascript{tile/Tile}{Tagging interface for tiles}          \end{appendix}      This would produce a section Appendix with a apendix that uses roman numerals. The Roman numerals appear perfectly besides the header and also in the TOC, it is just where I used the `\appendixref{Title}` macro that _sometimes_ it does not work. Here is the screenshot showing how the TOC might be produced for a document including an appendix as described above. ![enter image description here](http://i.stack.imgur.com/4iqGc.png)


title: How to create a Caesar's encryption disk using LaTeX

text: How can I create a Caesar's encryption disk with LaTeX? ![Caesar's encryption disk](http://i.stack.imgur.com/kWOBS.jpg) I guess, the ultimate solution would take a arbitrary list of letters and calculate the spaces and angles for each letter automatically. So if I pass 4 letters to it, each space should have 90 degrees.


title: Latex changing lowercase with uppercase in a text

text: I'm new in Latex. My problem is that Latex changing lowercase letter with uppercase letter when convert my text to pdf. I am writting my thesis. Only have two pages. The first page is done all in uppercase, but the next not. This is my code used. Thank for you help.               \documentclass[letterpaper,11pt]{book}     \usepackage[spanish,activeacute]{babel}     \usepackage[latin1]{inputenc}     \usepackage[latin1]{inputenc}      \usepackage{graphicx}     \usepackage{anysize} %%para escribir los margenes con marginsize     \marginsize{2cm}{2cm}{2cm}{2cm}          \begin{document}     \pagestyle{headings}     \thispagestyle{empty}              \vspace{2.5cm}         \begin{center}                  \textsc {\huge INSTITUTO TECNOL'OGICO Y DE ESTUDIOS SUPERIORES DE MONTERREY}              \vspace{0.06cm}             \textsc {\Large CAMPUS MONTERREY}              \vspace{0.06cm}             \textsc {\Large ESCUELA DE BIOTECNOLOG'IA Y ALIMENTOS}              \vspace{0.06cm}             \textsc {\Large PROGRAMA DE GRADUADOS EN BIOTECNOLOG'IA}              \end{center}              \vspace {4.4cm}              \includegraphics[height=0.42in,width=0.42in]{/Users/JoseA/Documents/Maestria/Tesis/LogoTEC.png}               \vspace{0.8cm}         \begin{center}             \textbf {\large ``SUSCEPTIBILIDAD A LA FORMACI'ON DEL PORO DE LA TRANSICI'ON A LA PERMEABILIDAD MITOCONDRIAL EN CORAZONES DE RATAS CON S'INDROME METAB'OLICO: PARTICIPACI'ON DEL TRANSLOCADOR DE ADENIN NUCLE'OTIDOS Y SIRTUINA-3''}              \vspace{2.2cm}             \textsc {\large TESIS PRESENTADA COMO REQUISITO PARCIAL PARA OBTENER EL GRADO DE:}              \vspace{0.2cm}             \textbf {\large MAESTRO EN CIENCIAS CON ESPECIALIDAD EN BIOTECNOLOG'IA}              \vspace{2.4cm}             \textsc {\large POR:}              \vspace{0.2cm}             \textbf {\large JOS'E ALBERTO MORALES DE LOS SANTOS}              \vspace{2.4cm}             \textsc {\large MONTERREY, N.L.     \hfill      AGOSTO DEL 2013.}              \newpage         \thispagestyle{empty}                  \textbf {\Large ``SUSCEPTIBILIDAD A LA FORMACI'ON DEL PORO DE LA TRANSICI'ON A LA PERMEABILIDAD MITOCONDRIAL EN CORAZONES DE RATAS CON S'INDROME METAB'OLICO: PARTICIPACI'ON DEL TRANSCOLADOR DE ADENIN NUCLE'OTIDOS Y SIRTUINA-3''}              \vspace{4.0cm}             \textsc {\Large TESIS PRESENTADA POR:}              \vspace{1.0cm}             \textbf {\Large JOS'E ALBERTO MORALES DE LOS SANTOS}              \vspace{4.0cm}             \textsc {\large ANTE EL INSTITUTO TECNOL'OGICO Y DE ESTUDIOS SUPERIORES DE MONTERREY COMO REQUISITO PARCIAL PARA OBTENER EL GRADO ACAD'EMICO DE:}              \vspace{0.2cm}             \textbf {\large MAESTRO EN CIENCIAS CON ESPECIALIDAD EN BIOTECNOLOG'IA}              \vspace{4.0cm}             \textsc {\large Monterrey, N.L.     \hfill   Agosto del 2013.}              \newpage              \textbf {\normalsize INSTITUTO TECNOL'OGICO DE ESTUDIOS SUPERIORES DE MONTERREY}              \textbf {\normalsize CAMPUS MONTERREY}              \textbf {\normalsize ESCUELA DE BIOTECNOLOG'IA Y ALIMENTOS}              \textbf {\normalsize PROGRAMA DE GRADUADOS EN BIOTECNOLOG'IA}              \vspace{1.5cm}           \textsc {\normalsize Los miembros del comit'e de tesis recomendamos que el presente proyecto de tesis presentado por}         \textbf {\normalsize Jos'e Alberto Morales de los Santos,}         \textsc {\normalsize sea aceptado como requisito parcial para obtener el grado acad'emico de}         \textbf {\normalsize Maestro en Ciencias con Especialidad en Biotecnolog'ia}              \end{center}     \end{document}


title: What's the difference between \tolerance and \badness ?

text: I'm having some difficulty understanding this sentence on page 29, Chapter 6 of Knuth's TeXbook: > Run TeX again, and begin this time by saying > > `\hsize=2in \tolerance=1600 \input story` > > so that lines with badness up to 1600 will be tolerated. Hurray! There are > no overfull boxes this time. (But you do get a message about an _underfull_ > box, since TeX reports all boxes whose badness exceeds a certain threshold > called `\hbadness`; plain TeX sets `\hbadness=1000`.)


title: subfloatrow: incorrect continued numbering

text: I am using the `subfloatrow` environment (provided by the `floatrow` package) to organise the layout of figures for my thesis. For the MWE provided below, the numbering of the sub-figures in the second figure incorrectly starts at `(c)` rather then `(a)`. Can anyone tell me why this occurs and how best to fix it? I haven't had this issue previously so am wondering if it is related to my usage of the `subfloatrow*` environment and `\RawCaption` in the second figure.                   \documentclass[a4paper]{article}              \usepackage[margin=20mm]{geometry}         \usepackage[sc,osf]{mathpazo}         \usepackage{fix-cm}         \usepackage[euler-digits]{eulervm}              \usepackage{amsmath,amssymb}              \usepackage[T1]{fontenc}         \usepackage{textcomp}              \usepackage[format=plain,indention=10pt,font=small,labelfont=bf]{caption}         \usepackage[justification=raggedright,font=scriptsize,labelfont=]{subcaption}              \usepackage[facing=yes,capbesideposition={inside,center}]{floatrow}         \floatsetup[table]{style=plaintop}         \floatsetup[subfigure]{style=plain}              \usepackage[pdftex]{graphicx}                  \begin{document}                  \begin{figure}[ht!]         \centering         \ffigbox{%         \begin{subfloatrow}[1]%         \ffigbox[\FBwidth]{\includegraphics*[scale=1.0]{blank_figure.pdf}}{\caption{Condition A}}         \end{subfloatrow}         \vspace{1ex}              \begin{subfloatrow}[1]%         \ffigbox[\FBwidth]{\includegraphics*[scale=1.0]{blank_figure.pdf}} {\caption{Condition B}}         \end{subfloatrow}         }{\caption{Overall caption of first set of figures.}}         \end{figure}                  \begin{figure}[p]         \vspace{-4ex}         \ffigbox{}{         \begin{subfloatrow*}             \ffigbox[\FBwidth]{\includegraphics*[width=77mm,height=78mm]{blank_figure.pdf}}{\subcaption{Molecular Nitrogen}}             \ffigbox[\FBwidth]{\includegraphics*[width=77mm,height=78mm]{blank_figure.pdf}}{\subcaption{Molecular Oxygen}}         \end{subfloatrow*}         \vspace{1ex}              \begin{subfloatrow*}             \ffigbox[\FBwidth]{\includegraphics*[width=77mm,height=67mm]{blank_figure.pdf}}{\subcaption{Atomic Nitrogen}}             \ffigbox[\FBwidth]{\includegraphics*[width=77mm,height=67mm]{blank_figure.pdf}}{\subcaption{Atomic Oxygen}}         \end{subfloatrow*}         \vspace{1ex}              \begin{subfloatrow*}             \ffigbox[\FBwidth]{\includegraphics*[width=77mm,height=67mm]{blank_figure.pdf}}{\subcaption{Nitrous Oxide}}             \ffigbox[77mm][67mm][c]{}{\RawCaption{\caption{Overall caption for second set of figures.}}}         \end{subfloatrow*}         }         \end{figure}              \end{document}


![enter image description here](http://i.stack.imgur.com/Pj6BA.gif)               \documentclass[pstricks,border=12pt]{standalone}     \usepackage{pstricks-add}     \begin{document}     \multido{\i=0+30}{12}{%     \begin{pspicture}(-2,-2)(2,2)         \pscircle{1}         \pnode(1;\i){R}         \psset{arrows=->}         \psline(R)         \psline[linecolor=blue](R|0,0)         \psline[linecolor=red](0,0|R)         \psset{linecolor=gray,linestyle=dashed,linewidth=0.5\pslinewidth,arrows=-,dash=2pt 2pt}         \psline(R)(R|0,0)         \psline(R)(0,0|R)     \end{pspicture}}     \end{document}      Does a zero-length line with an arrow make sense? Is it a bug? I hope it is a bug. If it is not a bug, what is the best way to handle this case using a conditional macro in either TeX or PS level? Apparently, this feature is also adopted by TikZ. ![enter image description here](http://i.stack.imgur.com/kz1C0.png)               \documentclass[tikz,border=0pt]{standalone}     \usepackage{tikz}     \begin{document}         \tikzpicture             \fill[yellow] (-1,-1) -- (-1,1) -- (1,1) -- (1,-1) -- cycle;             \draw[->] (0,0)--(0,0);         \endtikzpicture     \end{document}


title: LyX Jurabib Style References Not Possible

text: I was able to write the bulk of my thesis on LyX and I thought it will end that way. With the whooshing sound of the deadline in my ears, I am desperately looking for your help. I am trying to insert citations in `jurabib` style and as a matter of fact, after a plethora of errors and some intuitive tweaking at the moment I ended up with a `?` sign where the citation should have been. Since, I am a newbie I won't be able to provide details. Instead, I will beg your help by sharing my files. This is my thesis. This is my `.bib` file that I got through Zotero, output format is `bibtex`. Lastly, this all the installed packages filtered by the word "latex": ![enter image description here](http://i.stack.imgur.com/QwbPX.png)


title: scrlttr2 remove toaddress

text: I'm adapting a cover letter template that I found online. It takes "letter" quite literally by laying out the toaddress such that it will fit in an envelope. However, I'm going to be emailing this around and so a toaddress is redundant. I'm wanting to remove it, and move the content up. Below is a stripped down version of the code that I'm using, and attached is an image showing what I'm wanting to do. I'm an absolute LaTeX beginner, and I'm hoping what I'm wanting to do is sensible. ![enter image description here](http://i.stack.imgur.com/oJkYw.png)               \documentclass[a4paper,backaddress=off,foldmarks=false]{scrlttr2}          \usepackage{fontspec} % Allows font customization     \usepackage{marvosym} % Allows the use of symbol     \usepackage{csquotes}          \setlength\parindent{0pt}           \defaultfontfeatures{Mapping=tex-text}          \renewcommand{\normalsize}{\fontsize{12.5}{17}\selectfont}     \setkomavar{fromname}{Name}     \setkomavar{fromaddress}{Address\\City}     \setkomavar{fromphone}{012 345 678}     \setkomavar{fromemail}{beginner@latex.com}     \setkomavar{place}{}     \setkomavar{signature}{Name}          \setkomavar{firsthead} {     \centering     {\addfontfeature{LetterSpace=20.0}\fontsize{24}{24}\selectfont\scshape \usekomavar{fromname}}\\[1mm]     \fontsize{12}{12}\selectfont\scshape Job title }      \setkomavar{firstfoot}{     \centering     \addfontfeature{LetterSpace=50.0}\scshape     {     \renewcommand{\\}{\ {\large\textperiodcentered}\ }     \usekomavar{fromaddress}     }\\     {\Large\Letter} \usekomavar{fromemail} \ {\Large\Telefon} \usekomavar{fromphone}}     \begin{document}     \begin{letter}{Company\\Address\\City}          \setkomavar{subject}{Position Title}     \opening{Dear Recruiter,}     Content goes here.          Sincerely yours, \\ \\ \\     \usekomavar{signature}          \end{letter}     \end{document}


title: How can I create an oddly-delimited macro, using xparse?

text: I have a partial version of this macro working, without `xparse`, but I needed to tweak it and it got too unwieldy, so I'm trying to use `xparse` instead. It's admittedly a farfetched macro, but I'm trying to learn how `xparse` works... Suppose I'm trying to typeset references to sentences and their variants, like so:               X1     X2*     X3**     X4'     X56''      where:   * There can be some number of stars (indicating malformed variants), the number of these is unknown a priori   * There can be some number of primes (indicating well-formed variants), the number of these is also unknown   * The number afterwards may be more than one digit. The number is terminated by a space, a comma, semicolon, or other punctuation. For example, `$(\X'3; \X**45)$`.   * `X` could be any alphabetic string.   * It should preferably work in both text and math modes. I'd like to input these as `\X**3`, or `\X'4`. (I'm choosing to place the punctuation first, because it's easier to convince TeX to parse things that way...) Suppose I already have an internal macro to typeset the actual thing:               \newcommand\@X[2]{ % #1 is the decorations, #2 is the number ...         \mbox{\ifmmode\text{X#2#1}\else X#2#1\fi}     }      Now I'm trying to define the user visible macro. My first hunch was               \DeclareDocumentCommand\X{ s s t' t' m }{ stuff }      but:   * This only handles two stars and two primes   * Actually, I can't seem to make it work even with just those two stars and primes :( It's giving me errors about missing `$` signs, but the math-mode code I had in `\@X` was working before...   * The `m` argument is only grabbing the first digit, rather than the whole number token as my old version used to do. Is there a way to program this using `xparse`, or is this just too weird a macro to try to support? **Edited to add** : I got the following definitions working last night. They work for only `'` and numbers, but don't use `xparse`.               \newcommand\X{\@ifnextchar'\@Xprime{\@X{}}}     \newcommand\@Xprime[1]{\@ifnextchar'{\def\temp{\@Xprime{#1{'}}}\ex\temp\@gobble}{\@Xdigit{#1}}}     \newcommand\@Xdigit[2]{%       \@ifnextchar1{\def\temp{\@Xdigit{#1}{{#2}1}}\ex\temp\@gobble}{%       \@ifnextchar2{\def\temp{\@Xdigit{#1}{{#2}2}}\ex\temp\@gobble}{%       \@ifnextchar3{\def\temp{\@Xdigit{#1}{{#2}3}}\ex\temp\@gobble}{%       \@ifnextchar4{\def\temp{\@Xdigit{#1}{{#2}4}}\ex\temp\@gobble}{%       \@ifnextchar5{\def\temp{\@Xdigit{#1}{{#2}5}}\ex\temp\@gobble}{%       \@ifnextchar6{\def\temp{\@Xdigit{#1}{{#2}6}}\ex\temp\@gobble}{%       \@ifnextchar7{\def\temp{\@Xdigit{#1}{{#2}7}}\ex\temp\@gobble}{%       \@ifnextchar8{\def\temp{\@Xdigit{#1}{{#2}8}}\ex\temp\@gobble}{%       \@ifnextchar9{\def\temp{\@Xdigit{#1}{{#2}9}}\ex\temp\@gobble}{%       \@ifnextchar0{\def\temp{\@Xdigit{#1}{{#2}0}}\ex\temp\@gobble}{%         \@X{#1}{#2}\xspace}%       }}}}}}}}}}      The idea was for `\@Xprime` to scrape up all the primes, one at a time and in brace groups to prevent them from turning into double-quotes, and accumulate them into its argument. It then passes that string off to `\@Xdigit`, which scrapes up all digits (digits don't have their own catcode, so I couldn't figure out any shorter test than this one...) and accumulates them into its second argument. (I didn't intend for each digit to be in a brace group, but got stuck on how to append a digit to `#2`.) Finally, once it's got both the primes and the digits, it calls `\@X` to typeset them, and then uses `\xspace` to restore space handling. I couldn't figure out an equivalent `\@Xstar`, so to speak, because `\@ifnextchar*` didn't seem to do what I meant, and I think `\@ifstar` only gobbles spaces following a command, not following the arguments to a command. **Edited** I've figured out the following version, which behaves correctly, but still doesn't use `xparse`. It uses `\futuredef` from `etextools`, and has the advantage of being much more concise and understandable than the previous version... I'm still curious how this would work with 'xparse`.               \DeclareRobustCommand\X{\@ifstar\@Xstar\@Xnostar}     \newcommand\@Xstar{\futuredef[*]\@Xstars{\futuredef[1234567890]\@Xdigits{\@X{\@Xstars}{\@Xdigits}}}}     \newcommand\@Xnostar{\@ifnextchar'\@Xprime{\futuredef[1234567890]\@Xdigits{\@X{}{\@Xdigits}}}}     \newcommand\@Xprime{\futuredef[']\@Xprimes{\futuredef[1234567890]\@Xdigits{\@X{\@Xprimes}{\@Xdigits}}}}     \newcommand\@X[2]{\mbox{\ifmmode\text{X#2#1}\else X#2#1\fi}\xspace}


title: How to insert an image into LaTeX document?

text: I have already included `graphicx` package and include               \ifCLASSINFOpdf     \usepackage[pdftex]{graphicx}     % declare the path(s) where your graphic files are     \graphicspath{{../pdf/}{D:\ImagesforProjectLatex}}      % and their extensions so you won't have to specify these with      % every instance of \includegraphics      \DeclareGraphicsExtensions{.pdf,.jpeg,.png}      In the place that I want to insert the image I use the following example.                \begin{figure}[h!]      \centering       \includegraphics[width=0.5\textwidth]{Example}      \caption{A picture of the same gull            looking the other way!}      \end{figure}      I use the "LaTeX => DVI" option. I am a newbie to LATeX, so I do not know the difference between "LaTeX => PDF" and "LaTeX => PS => PDF" My ultimate goal is to convert the document into a pdf file. Any help will be much appreciated.


title: Having tick labels like 1, 10, 10^2, 10^3,

text: I would like to have y tick labels like `1, 10, 10^2, 10^3, ...` So far I found found to display them either `1, 10, 100, 1000, ...` or with exponents. Is this possible with pgfplots?


title: Introducing section headings in minted

text: I apologize if this has been answered elsewhere. I haven't been able to find it. I am using the `minted` package and I would like to have sections similar to               \section{Section Headings}      So I have two problems:   1. How do I use the latex command `\section` in the middle of the minted environment   2. I thought maybe I could just use `\end{minted}\section{My Section}\begin{minted}[ ... ]`, however this introduces a new problem where my line numbers start counting from 1 again in the new section, which I don't want. Any help or insight would be much appreciated.


title: itemize: How to change horizontal spacing to subitems in beamer

text: Bugged me for some time: how to change the space pointed out below?               * abc     * cde          > fgh      ^^^^      this


title: Weekdays in gantt chart

text: I want to have weekdays in my gantt chart, using the `pgfgantt` package with the `pgfcalendar` package. However the fields for the weekdays are too small.               \documentclass{article}     \usepackage{pgfgantt}     \usepackage{pdflscape}     \usepackage{pgfcalendar}          \begin{document}     \begin{tikzpicture}[x=.5cm, y=1cm]       \begin{ganttchart}{7}         \gantttitle{Week 1}{7} \\         \gantttitlelist[title list options={%             var=\y, evaluate=\y as \x%             using "\pgfcalendarweekdayshortname{\y}"%             }]{0,...,6}{1} \\     \end{ganttchart}     \end{tikzpicture}     \end{document}      Output: ![enter image description here](http://i.stack.imgur.com/OY3O9.png)


title: Can not find the file "ascii.afm" in ascii package zipfile

text: In the section 2 of ascii package document "ascii2006.pdf" it said               2 Installation     The ascii package contains the following ﬁles:     ascii.dtx     ascii.ins     ASCII.afm          ...      But I can not find the file ascii.afm. Does anyone can tell me how to get it?


title: cite in caption of listings

text: I am trying to cite a paper in the caption of listings. I have the following code:               \begin{lstlisting}[caption=Example of something (Adapted from \cite{abc})]        example     \end{lstlisting}      But this is giving me error! It says `! Illegal parameter number in definition of \reserved@a`. Can anyone help me with this?


title: I need to install the package 'cjwplain' on Fedora 17

text: I need to compile old books typeset using Plain Tex. But I need to compile them using LaTeX instead of TeX because I need to process them using the package {preview}. I have found out about a package that makes the promise of working the wonder of doing so without the need to extensively edit the original TeX files. Yeah! This package is called **cjwplain**. However, I am having a hard time finding the correct install package for my Fedora TeXLive distribution. I installed the official TeXLive repository for my Fedora 17 distribution in order to have a consistent LaTeX system. but for some reason the package **cjwplain** is not located where it should. And I cannot find it anywhere else in the Fedora repository. Is there anything I am missing? Supposedly, the package should be bundled with: **texlive-texmf- latex-2007-41.fc17.noarch.rpm** but this file has been obsoleted by **texlive-2012-19.20130317_r29408.fc17.x86_64** wich is already installed in my system. But * _cjwplain_ *is not present. Maybe I should ask this question at the Fedora forum, but I though I might give a try at this forum first. Thanks in advance for your help.


title: How can I avoid a 'Dimension too large' error in an a0 size TikZ figure?

text: I'm using Debian/Squeeze with its texlive-full package installed. After some success with TikZ for normal article-size figures, I got interested in using it for an a0 size poster. As a (fairly) minimal standalone example of the problem I'm running into, the code below fails with a 'Dimension too large.' error if any of the indicated lines are uncommented (so basically when it tries to create an arc of half the page width or more, or thereabouts). I'm processing it with `pdflatex`.               \documentclass[onlymath]{beamer}     \usefonttheme{serif}          \usepackage[orientation=portrait,size=a0,scale=1.0]{beamerposter}          \usepackage{eulervm}          \usepackage{tikz}     \usetikzlibrary{shapes,arrows,positioning,matrix}          \begin{document}     \begin{frame}[t,fragile]{}            \begin{block}{Big TikZ Test}       \begin{center}              \begin{tikzpicture}                \tikzstyle{blk} = [rectangle,draw,text width=2in,text centered];           \tikzstyle{edge} = [draw,line width=3pt,black!50];                \matrix[row sep=1cm,column sep=1cm] {             \node[blk] (a) {A};             &             \node[blk] (b) {B};             &             \node[blk] (c) {C};             &             \node[blk] (d) {D};             &             \node[blk] (e) {E};             &             \node[blk] (f) {F};             &             \node[blk] (g) {G};             &             \node[blk] (h) {H};             &             \node[blk] (i) {I};             &             \node[blk] (j) {J};             \\           };                \path[edge] (j) edge [->,bend left=30] (i);           \path[edge] (j) edge [->,bend left=30] (h);           \path[edge] (j) edge [->,bend left=30] (g);           \path[edge] (j) edge [->,bend left=30] (f);           \path[edge] (j) edge [->,bend left=30] (e);          % Uncommenting any of these fails with 'Dimension too large.' error            \path[edge] (j) edge [->,bend left=30] (d);     %      \path[edge] (j) edge [->,bend left=30] (c);     %      \path[edge] (j) edge [->,bend left=30] (b);     %      \path[edge] (j) edge [->,bend left=30] (a);              \end{tikzpicture}            \end{center}       \end{block}          \end{frame}     \end{document}      From other similar questions here, I understand there is some limited-range datatype involved, but none of the suggested code-fragment fixes (typically involving some inclusion of a pgf package and messing with some fp / fpu thing) seems to work for me (they generate their own errors). Is this fixable through some modification of the above code and/or adopting a different version of these tools (e.g Debian/Wheezy - as yet untried - has PGF 2.10 while Squeeze is on 2.00), or is it just a fundamental limitation and I'm trying to push these tools too far ?


title: Enumerate with Properties

text: How can I easily customize the `\enumerate` environment so that, instead of each line being numbered `1.`, `2.`, etc., they are numbered `Property 1.`, `Property 2.`, etc.?


title: Provide boolean from two arguments case insensitives

text: In most publications scientific names are abbreviated except the first time. Moreover, the names must be in _italics_ and only the first letter of the generic name should be upper-case. The `biocon` package allow define a identifier for each species that manage all these requirements, but I don't want depend of remember a identifier for each species. I want also include a well formatted nested index entry each time in the same step, that manually is a lot of code typing that obfuscated the body text. So I decided to make my own macro for this in the form the command `\species{Genus}{species}`. The result is the MWE that worked reasonably, but I found some problems that seem related with `etoolbox` package:   1. `\setbool` inside tabulars do not work, failing to switch to the abbreviate name.   2. The arguments are case sensitive, but I cannot reduce all possible occurrences to obtain a unique boolean for each species. I tried `\providebool{\lowercase{#1#2}}` but do not work. This, I can correct case variations in the output but having a different boolean each time, so the macro cannot switch to the abbreviated form, and worse, produce a duplicated index entry. ![MWE](http://i.stack.imgur.com/lFqh8.png) ![enter image description here](http://i.stack.imgur.com/zzWmc.png)               \documentclass[11pt]{article}     \usepackage{etoolbox}     \usepackage{xstring}     \usepackage{mfirstuc}     \usepackage[colorlinks=true,linkcolor=blue]{hyperref}     \usepackage{makeidx}     \usepackage{biocon}     \makeindex          % Provide \genus{Generic name}     \newcommand\genus[1]{{\em\lowercase{\protect\makefirstuc{#1}}}     \index{#1@{\em\lowercase{\protect\makefirstuc{#1}}}|textbf}}          % Provide \species{Generic name}{specific name}     \newcommand\species[2]{%     \providebool{#1#2}%     \ifbool{#1#2}%     % abbreviated name     {\emph{\uppercase{\StrLeft{#1}{1}}. \lowercase{#2}}}%      % full name     {\setbool{#1#2}{true}{\em\lowercase{\protect\makefirstuc{#1} #2}}}%     %index entry for both types     \index{#1@{\em\lowercase{\protect\makefirstuc{#1}}}!#2@{\em\uppercase{\protect\StrLeft{#1}{1}}. \lowercase{#2}}}}               \begin{document}          \noindent Desired ouput of some \genus{Homo} species:\\\\     \species{Homo}{erectus} \texttt{(full name 1st time, OK)}\\     \species{Homo}{erectus} \texttt{(abbreviation 2nd time, OK)}\\     \species{Homo}{sapiens} \texttt{(indexed as Homo!sapiens, OK)}\\     \species{Homo}{erectus} \\      \species{Homo}{sapiens} \texttt{(indexed as as Homo!sapiens too, OK)}\\          \noindent Testing in tabular environment:\\\\     \begin{tabular}{|l|l|}     \hline\species{Homo}{habilis} & \\     \hline\species{Homo}{habilis} & \texttt{(not working inside tabular)}\\\hline     \end{tabular}\\          \noindent\species{Homo}{habilis} method (try again):\\          \noindent\begin{tabular}{|l|l|}     \hline\species{Homo}{habilis} & \texttt{      (\textbackslash{}setbool worked only outside tabular)}\\\hline     \end{tabular}\bigskip          \noindent Testing case correction:\\      \verb|\species{Homo}{Antecessor}|: \species{Homo}{Antecessor}\\      \verb|\species{Homo}{antecessor}|: \species{Homo}{antecessor}\\     \verb|\species{HOMO}{ANTECEsSOR}|: \species{HOMO}{ANTECEsSOR}\\\\      Problems with these three equivalents commands:\\      \texttt{not abbreviations}\\     \texttt{duplicated "Homo" at index}\\     \texttt{duplicated "antecessor" at index}\\          \printindex     \end{document}


title: Looking for a mid-page break solution

text: I'm trying to write bios in a column document in which the employee's description appears next to their picture in the adjacent column. I'm trying to get the pictures to align perfectly with the bio descriptions so that I don't have to use a lot of manual adjusting and padding. A midpage break would make this easier, alas, I don't think it exists. How can I control where text or an image appears in a column without it being shoved down by the content above? For example, an image appears half way down a column regardless of the content above it. **Edit** : here's the code I've been using:               \documentclass[twocolumn,12pt,mysize]{Article}     \usepackage{multicol}     \begin{document}          \large\textbf{Person 1 Bio}\\\normalsize     Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed doeiusmodtempor      incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis      nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.      Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore       eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident,      sunt in culpa qui officia deserunt mollit anim id est laborum..\medskip          %Ideally this would be the midcolumn break.          \begin{center}     \includegraphics[width=6cm]{../pictures/Person_2_Bio_Pic.png}     \end{center}          \newpage %column really          \begin{center}     \includegraphics[width=6cm]{../pictures/Person_1_Bio_Pic.png}     \end{center}          %Second midcolumn break.          \large\textbf{Person 2 Bio}\\\normalsize     Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed doeiusmodtempor      incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis      nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.      Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore       eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident,      sunt in culpa qui officia deserunt mollit anim id est laborum..\medskip      I'm attempting to stagger the bios and their pictures: Column 1 - Column 2 Person 1 Bio - Person 1 pic Person 2 pic - Person 2 Bio The thing I'm struggling with most is getting the bottom picture and bio to stay at a fixed position without the top bio and picture forcing them downward.


title: How can I make toggle buttons with images using pdflatex?

text: I am currently designing an interactive PDF by means of the **media9** package in Latex. I have three **\mediabutton** buttons that I would like to treat as toggle buttons. A picture of the buttons is shown here: ![enter image description here](http://i.stack.imgur.com/iwwAS.png) and the same array with the left button as it would appear in a toggled state is shown here: ![enter image description here](http://i.stack.imgur.com/7SjMo.png) Now, each **\mediabutton** is already associated with three images:   1. an image to display when there is no interaction with the button,   2. an image to display when the user clicks on the button.   3. an image to display when the mouse hovers over the button, All I want to do is to swap the images 1 & 3 for a button that is toggled. * * * As I understand, these images are attached to the button as **Icon** objects. The PDF Javascript API states that button icons can be retrieved using the **buttonGetIcon** method whilst they can be set using the **buttonSetIcon** method. I tried doing this using code such as the following:               var button = this.getField("mbtn@0");     var normal_icon = button.buttonGetIcon(0);     var hover_icon = button.buttonGetIcon(2);          button.buttonSetIcon(hover_icon, 0);     button.buttonSetIcon(normal_icon, 1);      This just causes the button in question to disappear (or rather, it seems to lose all its images thereby appearing to be invisible). * * * I have tried to embed images in the PDF that I then tried to convert to **Icon** objects that could be attached to buttons. There appears to be no straightforward method for performing this translation though. * * * I would be very grateful for any pointers in how I could do this. Manual methods are not an option as our software produces reports automatically. Thank you in advance.


title: \vec conflict between llncs.cls and MnSymbol

text: I would like to use MnSymbol alongside Springer's LNCS class file, `llncs.cls`, which can be found in this zip file and in many other places on the web.               \documentclass{llncs}     \usepackage{MnSymbol}     \begin{document}     \end{document}      I get the dreaded `! LaTeX Error: Command`\vec' already defined.` What's the cleanest, simplest way to undefine the `\vec` introduced by `llncs.cls` so that I can `\usepackage{MnSymbol}`?


title: Vim-latex adds extra brackets when typing empty brackets

text: I just installed the vim latex-suite plugin. Whenever I type empty brackets, parentheses, or braces, I get an extra pair of them, and I am moved to the middle of the new pair and put into insert mode. i.e. after typing               {}      I get               {}{}      with the cursor between the second pair of empty braces. How can I disable this?


title: Update reference labels in scatter plots

text: I am writing a technical paper in which I want to compare some works in my references. I want to draw a scatter plot between two columns of data (x and y) and the third column (the numeric reference label [1], [15],.. etc) as the text label on all the points. I can do this using MATLAB of course, and set the point labels by hand. However anytime I add or remove a reference from my bibliography the numeric labels on my plot will have to be readjusted. Is there any tool in LaTeX to update the reference labels in the scatter plot automatically?


title: Specific font for specific characters with mathspec package

text: I am trying to manipulate the font, font size and thickness of the mathematical characters individually. I came into this solution at stackexchange; XeTeX/mathspec punctuation issue               ...     \makeatletter     \ernewcommand\eu@MathPunctuation@symfont{Latin:m:n}     \DeclareMathSymbol{,}{\mathpunct}{\eu@MathPunctuation@symfont}{`,}     ...      To make the +-= bold and plain other I tried this way (which did not work);               \documentclass[9pt]{article}     \usepackage{extsizes}     \usepackage{amsmath}     \usepackage{amssymb}     \usepackage{mathspec}               \setmathfont(Digits,Latin)[Numbers={Lining,Proportional},Lowercase={Regular},Uppercase={Regular}]{Arial}     \setmathfont(Greek)[Scale=1.15, Lowercase={Regular},Uppercase={Regular}]{Symbol}     \setmainfont[Ligatures=TeX]{Arial}          \makeatletter     \ernewcommand\eu@MathPunctuation@symfont{Latin:bx:n}     \DeclareMathSymbol{+}{\mathpunct}{\eu@MathPunctuation@symfont}{`+}     \DeclareMathSymbol{-}{\mathord}{\eu@MathPunctuation@symfont}{`-}     \DeclareMathSymbol{=}{\mathrel}{\eu@MathPunctuation@symfont}{`=}     \makeatother               \begin{document}     \thispagestyle{empty}          $+-=$+-=          \end{document}      Question 1) How can we make only characters "+-=" bold and other characters plain. Question 2) Can we set the font size of the "a" in the expression "x^a". I want my normal text to be 9pt and sub, sup, frac and frac{frac} characters to be fixed at 8pt not shrinking as the level increases. Any help is appreciated. Thank you all reading or responding.


title: qpdf warning: Cross-reference stream data has the wrong size

text: I compile the following with `pdflatex` (pdfTeX 3.1415926-1.40.10-2.2 (TeX Live 2009/Debian))               \pdfminorversion=5% With these lines...     \pdfobjcompresslevel=3% ... commented out...     \pdfcompresslevel=9% ... there is no warning from qpdf.          \documentclass{minimal}          \begin{document}          bla          \end{document}      and run the qpdf on the resulting pdf `qpdf --linearize paper.pdf paper.linearized.pdf`, then I get the following warning: > WARNING: uppsats.pdf (xref stream, file position 9448): Cross-reference > stream data has the wrong size; expected = 48; actual = 52 > > qpdf: operation succeeded with warnings; resulting file may have some > problems Is there any way to avoid or fix this problem other than commenting out the first three lines?


title: Problem when drawing an axis-aligned bounding box around a tilted rectangle.

text: I need to draw an axis-aligned bounding box containing a tilted rectangle for a report about physic engines. My initial idea was to simply insert a rectangular node, apply a rotational transformation to it and then draw the bounding-box with the fit library of `tikz`. Unfortunately, this doesn't work. I tinkered with the original idea and wrote the following code. The idea is that I insert four hidden nodes, corresponding to the corners of the rotated rectangle, and then I fit a box around them.               \begin{tikzpicture}            % Draw the rectangle       \coordinate (R) at (7,3);       \node[rectangle,rotate=-30,minimum height=3cm, minimum width=2cm,inner sep=0pt,draw=black] (rect) at (R) {};            % An invisible node at each corner of the rectangle       \begin{scope}[rotate around={-30:(R)}]         \path (R) node () {}               ++(-1,-1.5) node (a) {}               ++(2,0) node (b) {}               ++(0,3) node (c) {}               ++(-2,0) node (d) {};         \end{scope}            % Draw the bounding box       \node[fit=(a) (b) (c) (d),draw=green,dashed] {};          \end{tikzpicture}      This is an image of the current result: ![enter image description here](http://i.stack.imgur.com/AKk60.png) Is there an easier way to do that? Bonus question: How could I get rid of the spaces between the rectangle and its bounding box (it want them to be touching)?


title: Math Fonts in ConTeXt

text: I have installed a standalone ConTeXt package: ConTeXt ver: 2013.11.10 12:23 MKIV beta fmt: 2013.11.11. This works well using Sublime Text 3 to edit and build ConTeXt. (I downloaded ConTeXt syntax which makes ST3 just as good for ConTeXt as it is for LaTeX.) My main block to ConTeXt bliss is fonts - that is math fonts. I just don’t get it. Ideally I would like to get ConTeXt to use my Lucida and and MTPro2 math fonts purchased from http://store.pctexstore.com/info.html. But for the moment that may be a step to far. At present my problem is using the math fonts that come with the ConTeXt package. First iwona - no problem. I have used the Typescript Example on the Wiki at http://wiki.contextgarden.net/Fonts_in_LuaTeX. However, if I change the math font - that is change:               \definetypeface[franklin][mm][math][iwona][default][rscale=1]      to               \definetypeface[franklin][mm][math][kurier][default][rscale=1]      then no build and complaint that “unable to define 'unknown' as 'franklin-10pt-mm-mr—3” etc. But the kurier folder lives right next to iwona in the nowacki folder. How can ConTeXt know one and not the other? Similary, adjacent to the nowacki folder is the gust folder. This contains poltawski. But               \definetypeface[franklin][mm][math][poltawski][default][rscale=1]      produces the usual ‘unknown’ complaint. Come on ConTeXt, stop being a thickhead. Kurier and polawski live next door to iwona. There are other fonts. I have not tried them all - but suspect similar problems. Much of the font documentation is either to simple (Basic Fonts by Aditya) or to complex (Installing Expert Fonts by Idris Samawi Hamid) for my purpose - other documentation is out of date. I spent ages trying to get texfont.pl (Fonts in ConTeXt) to work only to find that it is now history. Ok, forgive my little rant of frustration. My question is: what is missing from the the kurier, poltawski (and other font) files that is included in iwona? What do I have to include or modify and where do I find and put the thing I have to include or modify? Hope somebody can help.


title: Set space between list and following paragraph to equal one line

text: My question is best formulated with an example, which is given below. I've tried to play with `topsep`, but that seems to modify the space both before and after the list. I need to only modify the space after the list.               \documentclass{article}     \usepackage{setspace, enumitem,titlesec}     \singlespacing     \titleformat{\section}{\normalfont\large\bfseries}{\thesection.}{.5em}{}     \titlespacing*{\section}{0pt}{3ex}{1ex}     \begin{document}     \section*{My first section}     This is the first paragraph of the first subsection in my first section.          This is the second paragraph.\\          \noindent Now this will be the first paragraph of the second subsection in my first section.          And this the second paragraph. You get the idea now.          \section*{My second section}     The first paragraph of the first subsection. This paragraph contains a list.     \begin{itemize}[noitemsep]         \item The first item         \item The second item     \end{itemize}     \noindent The first paragraph continues here. Or you might call it the second paragraph -- makes no difference to me.\\          \noindent This, however, is the second subsection. This will also contain a list. But this time the list will end the subsection.     \begin{itemize}[noitemsep]         \item The first item         \item The second item     \end{itemize}     \noindent This is the third subsection. How do I get the space between the list above and this subsection to be \emph{exactly} the same as between two subsections elsewhere in my letter? As it is now, the space it too small -- it looks like another paragraph rather than another subsection.     \end{document}      ![enter image description here](http://i.stack.imgur.com/bkcwQ.png)


title: How to fix the URL and DOI font? Say, make it smaller

text: I am using Biblatex to handle the full citations in footnotes and the bibliography. With @online Bibtex/Biblatex entries, I understand the DOI and URL fields in a citation need to be in some special font, often typewriter, to distinguish ‘i' and ‘l’, for example. However, the font being different and a little larger than the rest, it looks bold to me and I don’t want the URL to be the first thing you notice in a page of an article. How to make the font smaller? I found some bits here and there that offer another solution (`\urlstyle{rm}` or `\urlstyle{same}`), but it seems to require the `url` package to be loaded seperately -- I am just using Biblatex. **Update** : thanks for the comment and the answer. I forgot to mention that I am using a special format, instead of URL I need "en ligne <>". See the MWE below and correct me if I do this the wrong way. In both situations (`\urlstyle{same}` or `\UrlFont`), I still get the prefix "en ligne" printed with that boldish URL font. Or maybe this is yet another font type. How to fix it all at once? I appreciate the `\UrlFont` method more because it allows me to change the font and the size at the same time. It should also be best to keep a monospace font for URLs and DOIs, too bad they look bold, even when it has been made smaller. Hence `\small\rm` instead of `\small\tt` in the following MWE.               \documentclass{article}     \usepackage[T1]{fontenc}     \usepackage[utf8]{inputenc}     \usepackage[english,ngerman,frenchb]{babel}     \usepackage{csquotes}          \usepackage[style=verbose-trad1,backend=bibtex8]{biblatex}          \DeclareFieldFormat{url}{\addcolon\space\bibstring{en ligne <}\url{#1}\bibstring{>}}          \renewcommand{\UrlFont}{\small\rm}          \addbibresource{biblatex-examples.bib}     \begin{document}     \null\vfill\noindent     \cite{markey}          \cite{kastenholz}          \printbibliography     \end{document}      ![result](http://i.stack.imgur.com/lZcxT.jpg) **Update 2** : Now the icing on the cake (both questions above have been answered), is it possible to make the url and doi font _lighter_ , with some height trick or a color trick (gray or lightgrey)? I appreciate the leo style a lot, especially when you look at the printed result on the page -- I don't have that _lighter_ effect at all when I try it. I can make another post for this if you want.


title: Change index font size with imakeidx

text: I know I can change the index font size combining the `imakeidx` package with the `idxlayout` package like this:               \usepackage{imakeidx}     \usepackage[font=footnotesize]{idxlayout}      However I was wondering if it was possible to use just the `imakeidx` package (maybe with the `othercode` key of the `\indexsetup` command).