parent_url
stringlengths 41
46
| parent_score
stringlengths 1
4
| parent_body
stringlengths 25
35.5k
| parent_user
stringlengths 37
42
| parent_title
stringlengths 12
150
| accepted
bool 2
classes | body
stringlengths 4
36.7k
| score
stringlengths 1
4
| user
stringlengths 37
42
| answer_id
stringlengths 1
6
| __index_level_0__
int64 0
322k
|
---|---|---|---|---|---|---|---|---|---|---|
https://tex.stackexchange.com/questions/2375
|
23
|
Are there any LaTeX packages that can assist with reading and writing to files? I am trying to develop a solution to the following problem:
1) I am producing a long report regularly. Part of the report include items like
```
Key date: 12 Sep 2010 Complete Floor 1
Key date: 18 Sep 2010 Other activity
```
2) It will be nice to have all these dates saved into a sort of an aux file and then import later as a section of its own. It will also need to be sorted.
I have so far looked at the answers package for inspiration and also thought of hacking the
index mechanism. Any ideas and pointers would be greatly appreciated.
|
https://tex.stackexchange.com/users/963
|
File input and output
| false |
I tried all the answers given so far - except I did not spent too much time on the `datatool` mentioned by Will Robertson. At the end I decided to hack a simple solution which is shown below:
```
%% Define a new command for activity key-dates
%% this can be saved for shipout later
\newcommand{\keydate}[2]{#1 #2 \\}
\newcommand{\out}[2]{\immediate\write\tempfile{\noexpand\keydate{ #1}{#2}}}
%% We open the file to to write the key-dates
%% we will use it later to import
\newwrite\tempfile
\immediate\openout\tempfile=keydates.tex
%% Example
%%
\out{Activity 1}{10 Sep 2010}
\out{Activity 2}{12 Sep 2010}
\out{Activity 3}{13 Sep 2010}
%% finally we close the file
%%
\immediate\closeout\tempfile
%% we now read the file and dostuff with it
%%
\section{Summary of Key Dates}
\input{keydates}
```
This quick hack did the job. On the next version, I will try using the `datatool` in order to be able to manipulate the data more extensively.
|
6
|
https://tex.stackexchange.com/users/963
|
2411
| 1,674 |
https://tex.stackexchange.com/questions/2397
|
6
|
So I'm writing up a CV and I would like to use the nifty `itemize` environment to list some things within a `tabular` environment. Unfortunately, things end up looking a bit
[this](https://i.stack.imgur.com/TqN2h.jpg), which isn't at all what I want. Specifically, I want to the itemize environment to hug closely to "BIG COMPANY NAME" so that it appears as "Software Development Intern" does, and likewise at the bottom. My current code looks a bit like so:
```
\textsc{May 2010 to Aug 2010}
& Software Development Intern \\
& \textsc{BIG COMPANY NAME} \\
& \begin{itemize}
\setlength{\itemsep}{0pt}
\setlength{\parskip}{0pt}
\setlength{\parsep}{0pt}
\setlength{\partopsep}{0pt}
\setlength{\topsep}{0pt}
\item item1
\item item2
\end{itemize} \\
& \small{Cool Details}\\
```
Buuut it's not doing the job at all. Any suggestions, LaTeX gurus?
|
https://tex.stackexchange.com/users/1003
|
Lists in Tabular Environment
| false |
You can use the package `paralist` which defines among others the `compactitem` environment (which is a compact itemize). It also redefines `itemize` that way, but there are options to leave it, like `olditem`.
In your case I would just load
```
\usepackage[olditem,oldenum]{paralist}
```
and use `\begin{compactitem} ... \end{compactitem}` inside tables.
|
3
|
https://tex.stackexchange.com/users/353
|
2412
| 1,675 |
https://tex.stackexchange.com/questions/219
|
1
|
If I have some text and then \phantom{more text}, will LaTeX just allow an overfull (invisible) box at the end of the line, or could it potentially put in a line break and then have the invisible box at the start of the next line?
|
https://tex.stackexchange.com/users/136
|
Will the \phantom{...} command break left justification if placed at the end of a line?
| false |
Of course it will. `\phantom` produces a box -- one that happens to be empty -- just like anything else, and all that a regular word is in TeX is a box. (Okay, a potentially breakable one, but you get the idea.)
|
4
|
https://tex.stackexchange.com/users/179
|
2413
| 1,676 |
https://tex.stackexchange.com/questions/80
|
562
|
If you have a TeX'ed resume, did you use a template or make your own? Are there any useful packages? What looks the most professional? How about special considerations for different areas of work (e.g. in academia)?
|
https://tex.stackexchange.com/users/8
|
LaTeX template for resume/curriculum vitae
| false |
I adapted the resume class found in <http://www.iro.umontreal.ca/~csuros/latex.html>.
|
5
|
https://tex.stackexchange.com/users/324
|
2417
| 1,678 |
https://tex.stackexchange.com/questions/2416
|
65
|
Once a LaTeX user gets more and more skilled, and writes his/her own code, the question "Should I make a package (or a class) out of it?" will probably arise.
My question is (you catch me: I'm one of those users!): is there a reference guide other than [LaTEX 2ε for class and package writers](http://www.latex-project.org/guides/clsguide.pdf)?
I mean, to me it seems that the ability to write a class or a package is something gained only by experience. Every LaTeX package is always well documented.
Is there a document on how to write packages assuming very little knowledge of LaTeX?
You know, there's always a "Hello world" example for every programming language and, starting from that example, the language is explained in all of its functions. But I've not yet found something similar for writing LaTeX packages.
|
https://tex.stackexchange.com/users/177
|
Reference guide to begin writing a class and/or a package
| false |
I don't think there are many interesting LaTeX packages that could be written with only a little knowledge of LaTeX. Most (but not all) require a fairly deep understanding of TeX. I highly recommend reading the TeXbook to learn about TeX.
One could probably write a class that essentially loaded another class (like `article`), used some packages (like `geometry`) and supplied the necessary arguments to them without a whole lot of LaTeX knowledge. Dealing with `docstrip` for documentation is a whole other issue.
|
12
|
https://tex.stackexchange.com/users/647
|
2418
| 1,679 |
https://tex.stackexchange.com/questions/80
|
562
|
If you have a TeX'ed resume, did you use a template or make your own? Are there any useful packages? What looks the most professional? How about special considerations for different areas of work (e.g. in academia)?
|
https://tex.stackexchange.com/users/8
|
LaTeX template for resume/curriculum vitae
| false |
I found [CurVe](http://www.lrde.epita.fr/~didier/software/latex.php#curve) to be a nice package. Used it to get two student jobs and apparently, it worked :). The only drawback is that the default structure of the CV may need adjustments to your specific purposes.
|
11
|
https://tex.stackexchange.com/users/870
|
2420
| 1,681 |
https://tex.stackexchange.com/questions/2423
|
2
|
I have a paper with an equation in the title, and I would like to include the equals sign in the pdf metadata by using the hyperref key "pdftitle", by including it as in the following:
```
\hypersetup{pdftitle={P = NP}}
```
But when I typeset this, the metadata stops just after the P.
So my question is, *how can I get the symbol = to appear in the pdf metadata with hyperref?*
I'm using TeX+DVI, in case that matters.
---
After Ulrike kindly pointed out the there was no problem. I tried to just restart to see if the problem evaproated... and it did! I'll leave this up in case someone else has something similar happen.
|
https://tex.stackexchange.com/users/450
|
Equals sign in the pdftitle using hyperref
| true |
This works fine for me. The Reader shows the title P = NP with both compile routes (pdflatex, latex+dvips+ps2pdf)
```
\documentclass{article}
\usepackage{hyperref}
\hypersetup{pdftitle={P = NP}}
\begin{document}
abc
\end{document}
```
I'm using hyperref.sty 2010/06/18 v6.81g Hypertext links for LaTeX
|
2
|
https://tex.stackexchange.com/users/2388
|
2424
| 1,682 |
https://tex.stackexchange.com/questions/2422
|
14
|
I have some graphs I drew in maple, some simple line plots and histograms. Now I'd like to redraw these graphs in LaTeX, so I can do fancy stuff in beamer like have one histogram appear, and then another on top of it on the next slide.
I guess one way to do this would be using R and sweave, but learning R seems like overkill, since I'm not really doing any statistical analysis: I just want to plot some data. Is there a simpler way to pass LaTeX the data in such a way that it will be able to plot the data in, say, a TikZ picture (since I already know how to use TikZ a bit...)
|
https://tex.stackexchange.com/users/215
|
Using LaTeX to draw time series graphs and histograms
| true |
The [`pgfplots`](http://pgfplots.sourceforge.net/pgfplots.pdf) package might be what you need. It is based on Tikz, and lets you plot data or functions.
|
15
|
https://tex.stackexchange.com/users/586
|
2425
| 1,683 |
https://tex.stackexchange.com/questions/80
|
562
|
If you have a TeX'ed resume, did you use a template or make your own? Are there any useful packages? What looks the most professional? How about special considerations for different areas of work (e.g. in academia)?
|
https://tex.stackexchange.com/users/8
|
LaTeX template for resume/curriculum vitae
| false |
I also ended up making my own style, however, I added one twist: I actually store my CV in XML format and then use an XSLT transform to convert it into a `.tex` file. While this required a lot more work upfront, the benefit is that I can use the same XML file to generate plain text, HTML, abridged, *&c.* versions without having to maintain *n* separate files. If you end up making your own LaTeX style for your CV, I would also suggest you seriously consider investing the time to use the XML/XSLT technique. You can see the results of this technique [here](http://www.sultanik.com/cv) (scroll to the bottom of the page to see the XML and HTML versions). It would take me a bit of time to clean them up, but I'd be happy to share my XSLTs with people if anyone is interested. [This is an open source project that does something similar](http://xmlresume.sourceforge.net/), however, it was started after I created my technique and I've never used it.
|
13
|
https://tex.stackexchange.com/users/737
|
2426
| 1,684 |
https://tex.stackexchange.com/questions/2421
|
6
|
I have a B5 thesis to print and the printing houses proposed me to print and bind it on A4 paper and then make two cuts.
I've used the crop package but the problem is for twoside document, you can only use the "center" option with this package, and I need to have the odd pages in the top-left corner and the even pages in the top-right corner to print recto-verso and make only two cuts.
Any hint ?
|
https://tex.stackexchange.com/users/439
|
Print two-sided B5 book on A4 "corners"
| true |
Maybe you can use `a4paper` to specify the paper size, and [manually play with margins](http://www.artofproblemsolving.com/Wiki/index.php/LaTeX%3aLayout)? For example, if you are using `B5`, then the page width is 176mm. Assume you want 25.4mm margins on the page, this leaves 176 - (2 \* 25.4) = 125.2mm width for text. The pagewidth is 250mm, so the total text height should be 250 - (2 \* 25.4) = 199.2mm So you can set
```
\setlength{\textwidth}{125.2mm}
\setlength{\textheight}{199.2mm}
```
in the preamble. Now, A4 paper has width 210mm, so the difference is 210 - 176 = 34mm. You want the odd pages on top left, and even pages on the top right, so you set
```
\setlength{\oddsidemargin}{0mm}
\setlength{\evensidemargin}{34mm}
\setlength{\topmargin}{0mm}
```
(since 25.4mm is added to the values of `\oddsidemargin`, `\evensidemargin`, and `\topmargin` automatically). This *should* get you what you want.
|
5
|
https://tex.stackexchange.com/users/119
|
2427
| 1,685 |
https://tex.stackexchange.com/questions/2421
|
6
|
I have a B5 thesis to print and the printing houses proposed me to print and bind it on A4 paper and then make two cuts.
I've used the crop package but the problem is for twoside document, you can only use the "center" option with this package, and I need to have the odd pages in the top-left corner and the even pages in the top-right corner to print recto-verso and make only two cuts.
Any hint ?
|
https://tex.stackexchange.com/users/439
|
Print two-sided B5 book on A4 "corners"
| false |
`\usepackage[a4paper,layout=b5paper]{geometry}` comes close, but doesn't do the even-odd trick you're looking for. You can probably achieve it using the lower-level options of the package, though.
Also, maybe `zwpagelayout` can help?
|
2
|
https://tex.stackexchange.com/users/627
|
2428
| 1,686 |
https://tex.stackexchange.com/questions/2421
|
6
|
I have a B5 thesis to print and the printing houses proposed me to print and bind it on A4 paper and then make two cuts.
I've used the crop package but the problem is for twoside document, you can only use the "center" option with this package, and I need to have the odd pages in the top-left corner and the even pages in the top-right corner to print recto-verso and make only two cuts.
Any hint ?
|
https://tex.stackexchange.com/users/439
|
Print two-sided B5 book on A4 "corners"
| false |
[memoir](http://www.ctan.org/tex-archive/macros/latex/contrib/memoir/) should be able to help you. You might want to try something like this:
```
\documentclass[b5paper,twoside]{memoir}
\usepackage{showframe}
\usepackage[english]{babel}
\usepackage[toc,math]{blindtext}
\setstocksize{297mm}{210mm}
\checkandfixthelayout
\begin{document}
\blinddocument
\end{document}
```
|
5
|
https://tex.stackexchange.com/users/344
|
2429
| 1,687 |
https://tex.stackexchange.com/questions/2396
|
54
|
I need to change the indentation that the `quote` and `quotation` environments and commands employ. I assume that there is some length I need to set, but I've googled around, and cannot find what I am after. So, how to alter the indentation?
|
https://tex.stackexchange.com/users/93
|
How can I change the indentation in quote and quotation environments and commands?
| true |
What about something like that ?
```
\newenvironment{myquote}%
{\list{}{\leftmargin=0.3in\rightmargin=0.3in}\item[]}%
{\endlist}
```
You can also make the margin size an option:
```
\newenvironment{myquote}[1]%
{\list{}{\leftmargin=#1\rightmargin=#1}\item[]}%
{\endlist}
```
And use with:
```
\begin{myquote}{0.3in}
% ...
\end{myquote}
```
|
31
|
https://tex.stackexchange.com/users/439
|
2430
| 1,688 |
https://tex.stackexchange.com/questions/2416
|
65
|
Once a LaTeX user gets more and more skilled, and writes his/her own code, the question "Should I make a package (or a class) out of it?" will probably arise.
My question is (you catch me: I'm one of those users!): is there a reference guide other than [LaTEX 2ε for class and package writers](http://www.latex-project.org/guides/clsguide.pdf)?
I mean, to me it seems that the ability to write a class or a package is something gained only by experience. Every LaTeX package is always well documented.
Is there a document on how to write packages assuming very little knowledge of LaTeX?
You know, there's always a "Hello world" example for every programming language and, starting from that example, the language is explained in all of its functions. But I've not yet found something similar for writing LaTeX packages.
|
https://tex.stackexchange.com/users/177
|
Reference guide to begin writing a class and/or a package
| false |
I might be wrong, but your question seems to be asking how to go about authoring LaTeX packages rather than programming in LaTeX. Right? In this case, you might be interested in the [`dtxtut`](http://ctan.org/pkg/dtxtut) guide and the [`dtxgallery`](http://ctan.org/pkg/dtxgallery) collection of examples.
|
18
|
https://tex.stackexchange.com/users/179
|
2431
| 1,689 |
https://tex.stackexchange.com/questions/1282
|
14
|
I usually create figures for my articles in Matlab: various plots of numerical and analytical solutions. One thing that I don't like about it is that the font is different in the figure and in the resulting paper. Another thing is that it is a pain to put nicely typeset math into the figure directly.
My solution: [psfrag](http://www.ctan.org/tex-archive/help/Catalogue/entries/psfrag.html).
`psfrag` allows text in a postscript file to be replaced by LaTeX so I would put a label `AA` (for example) where I want it in the figure, and then in LaTeX write `\psfrag{AA}{$my formula$}`.
This isn't such a great solution because it depends on `psfrag` (and journals do not like that), so I use [fragmaster.pl](http://www.ctan.org/tex-archive/support/fragmaster/) which creates the modified pdf and eps files locally from the master file and an auxiliary file with the `\psfrag` commands...I then `\includegraphics` these generated files in my article.
This solution is a *little* roundabout, and so I'll repeat my question from the title:
>
> What is your complete solution for generating nice figures using an external program (for example Matlab)?
>
>
>
---
**Added Later:**
After several answers were posted I noticed that none specifically addressed the issue of journals. Several times I've had editors come back to me saying something to the effect of "we'd like to publish your paper, please make sure that the figures you give us are in final form and no changes happen to them during typesetting"...
If would be so kind (and if you know the answer) please modify your answer to include information relating to how journals like your solution.
|
https://tex.stackexchange.com/users/117
|
What do people use for modifying figures?
| false |
I also use Matlab to create my graphs as well but I use [matlabfrag](http://www.mathworks.com/matlabcentral/fileexchange/21286-matlabfrag) to export psfrag versions of the EPS graphics instead of Laprint.
My solution to the "journal problem" is a little more generic, however. Haven't written any portable code for it yet because it's not easily generalisable, but the outline is:
* Use `endfloat` to send all figures to the end of the document
* Hide the captions with `\renewcommand\@makecaption[2]{}`
* Create a new document that only contains the pages with figures (that should now be blank except for the graphics themselves); e.g., using `pdfpages` or `pdftk`
* Use `pdfcrop` to trim each page down to the exact size of the graphic
I then have some other macros to use these pregenerated figures in subsequent document compilations, but that's only useful if the journal is actually going to use your TeX source.
|
2
|
https://tex.stackexchange.com/users/179
|
2432
| 1,690 |
https://tex.stackexchange.com/questions/2416
|
65
|
Once a LaTeX user gets more and more skilled, and writes his/her own code, the question "Should I make a package (or a class) out of it?" will probably arise.
My question is (you catch me: I'm one of those users!): is there a reference guide other than [LaTEX 2ε for class and package writers](http://www.latex-project.org/guides/clsguide.pdf)?
I mean, to me it seems that the ability to write a class or a package is something gained only by experience. Every LaTeX package is always well documented.
Is there a document on how to write packages assuming very little knowledge of LaTeX?
You know, there's always a "Hello world" example for every programming language and, starting from that example, the language is explained in all of its functions. But I've not yet found something similar for writing LaTeX packages.
|
https://tex.stackexchange.com/users/177
|
Reference guide to begin writing a class and/or a package
| true |
I wrote my first LaTeX package ([`idxlayout`](http://ctan.org/pkg/idxlayout)) about half a year ago (January 2010). I didn't know a comprehensive class/package writing guide then (and do not now), but I can offer a few hopefully useful hints:
* You may not need advanced TeX programming skills, but you should be familiar with the existing solutions (and their shortcomings) in the subject area you're interested in. Delve in the respective code of the LaTeX kernel, study the packages that may already exist.
* Try to straighten out the desired features of your package and their interdependencies before you write lots of code. Come up with intuitive names for options and user commands.
* Consider a key-value-interface for the options you're going to offer. There are quite a few support packages for key-value-syntax; I've used [`kvoptions`](http://www.ctan.org/tex-archive/help/Catalogue/entries/kvoptions.html).
* You've already mentioned the importance of documentation. I'll add that writing a comprehensible user manual is necessary, but that your top priority should be documenting the intricacies of your source code - neglecting this will come to haunt you later.
* For distributing your package you may use the `dtx`-format which packs source code and documentation in one file. A good tutorial is [Scott Pakins article](https://ctan.org/tex-archive/info/dtxtut/dtxtut.pdf).
EDIT: One year later and with version 0.1 of my second package ([`quoting`](http://ctan.org/pkg/quoting)) published, I want to stress some other points. Note that I'm only a LaTeX "power user" and that my recommendations probably are self-evident for programmers.
* As you develop your class/package, write an accompanying test document that allows for a quick overview if the (major) features (still) work as expected or if you broke something with your latest build. Whenever you stumble upon a new edge use case, amend your test document to include it.
* Consider to use a version control system. I have kept copies of "major" development versions of my packages, but not used a full-fledged system like [subversion](http://subversion.apache.org/), and do somehat regret it now. (I had programmed a small feature for `quoting`, then dismissed it within the same "major" package version, and would now very much like to reuse the code.)
|
42
|
https://tex.stackexchange.com/users/510
|
2434
| 1,691 |
https://tex.stackexchange.com/questions/2433
|
62
|
I'm trying to compile a LaTeX code with an older version of some package. Thus, I'm having a few issues due to undefined commands.
How can I add conditional code so that I can define some work-around commands of this older package version?
```
% I want something like this:
if command \foobar is not defined
\newcommand{\foobar}{FooBar}
% I don't need an "else" clause here, but it would be good
% to know how to add one, in case I need it in future
end if
```
|
https://tex.stackexchange.com/users/375
|
How to conditionally define a new command in LaTeX?
| true |
The LaTeX kernel command `\providecommand{\foobar}{FooBar}` does exactly what you want.
|
62
|
https://tex.stackexchange.com/users/510
|
2435
| 1,692 |
https://tex.stackexchange.com/questions/2433
|
62
|
I'm trying to compile a LaTeX code with an older version of some package. Thus, I'm having a few issues due to undefined commands.
How can I add conditional code so that I can define some work-around commands of this older package version?
```
% I want something like this:
if command \foobar is not defined
\newcommand{\foobar}{FooBar}
% I don't need an "else" clause here, but it would be good
% to know how to add one, in case I need it in future
end if
```
|
https://tex.stackexchange.com/users/375
|
How to conditionally define a new command in LaTeX?
| false |
I think that `\providecommand` is what you want for this, as lockstep says, but it's worth mentioning the `\@ifundefined` LaTeX command which tests for whether or not a command is defined and executes some code if it is or isn't. It's more flexible than `\providecommand` in that it doesn't just deal with defining a particular command. Here's a simple example that I use when anglicising a few commands:
```
\makeatletter
\@ifundefined{centre}{%
\newenvironment{centre}{\center}{\endcenter}%
}{}
\makeatother
```
So if the *command* `\centre` is not defined then it defines the *environment* `centre`.
|
52
|
https://tex.stackexchange.com/users/86
|
2436
| 1,693 |
https://tex.stackexchange.com/questions/2433
|
62
|
I'm trying to compile a LaTeX code with an older version of some package. Thus, I'm having a few issues due to undefined commands.
How can I add conditional code so that I can define some work-around commands of this older package version?
```
% I want something like this:
if command \foobar is not defined
\newcommand{\foobar}{FooBar}
% I don't need an "else" clause here, but it would be good
% to know how to add one, in case I need it in future
end if
```
|
https://tex.stackexchange.com/users/375
|
How to conditionally define a new command in LaTeX?
| false |
The [ifthen package](http://www.ctan.org/tex-archive/help/Catalogue/entries/ifthen.html) provides some easy-to-use macros for this. For example:
```
\ifthenelse{\isundefined{\foobar}}{
%% Do this if it is undefined
}{
%% Do this if it is defined
}
```
You can also do it in plain TeX (which doesn't require any external packages):
```
\ifx\foobar\undefined
%% Do this if it is undefined
\else
%% Do this if it is defined
\fi
```
|
24
|
https://tex.stackexchange.com/users/737
|
2437
| 1,694 |
https://tex.stackexchange.com/questions/2391
|
2
|
Currently, the space between the bottom of my header and the top of the chapter number is quite large and I would like to be able to reduce the space between the header and the chapter number. How would I go about doing this?
I am using the report documentclass.
|
https://tex.stackexchange.com/users/952
|
How do I modify the amount of space between the heading and the chapter's number and/or name?
| false |
You could also use the `\vspace` command. For example, `\vspace{-2ex}` means "move the stuff immediately following up 2 lines worth of vertical space". (1ex is is the height of a line in the current font).
|
0
|
https://tex.stackexchange.com/users/941
|
2438
| 1,695 |
https://tex.stackexchange.com/questions/2369
|
319
|
When typing `<` or `>` in LaTeX and compiling with `pdflatex`, the less than and greater than symbols appear at upside down exclamation points. I'm not in math mode.
|
https://tex.stackexchange.com/users/996
|
Why do the less than symbol (<) and the greater than symbol (>) appear wrong as upside down exclamation (¡) or question mark (¿)?
| false |
What I usually do is just enter mathmode to type them, e.g. `This object is $<$ that object`.
|
26
|
https://tex.stackexchange.com/users/941
|
2439
| 1,696 |
https://tex.stackexchange.com/questions/2441
|
874
|
I have some text in a table and I want to add a forced line break. I want to insert a forced line break without having to specify the column width, i.e. something like the following:
```
\begin{tabular}{|c|c|c|}
\hline
Foo bar & Foo <forced line break here> bar & Foo bar \\
\hline
\end{tabular}
```
I know that `\\` inserts a line break in most cases, but here it starts a new table row instead.
---
A similar question was asked before: [How to break a line in a table](https://tex.stackexchange.com/questions/485/how-to-break-a-line-in-a-table)
|
https://tex.stackexchange.com/users/375
|
How to add a forced line break inside a table cell
| false |
You can switch your cell layout to paragraph to use the `\newline` command.
```
\begin{tabular}{|p{2cm}|p{2cm}|}
\hline
Test & foo \newline bar \\
...
```
**Edit**:
Use the following commands instead of `p` if you want to specify the alignment as well:
```
\newcolumntype{L}[1]{>{\raggedright\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}
\newcolumntype{C}[1]{>{\centering\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}
\newcolumntype{R}[1]{>{\raggedleft\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}
```
|
257
|
https://tex.stackexchange.com/users/411
|
2442
| 1,697 |
https://tex.stackexchange.com/questions/2440
|
19
|
I'm using `fancyhdr`package for headings and footers. I have defined left-header as a big image, and I want to vertically align (to the top or to the center, the default is to the bottom) the text from the right-header. How can I do that?
```
\usepackage{fancyhdr}
\pagestyle{fancy}
\lhead{\includegraphics[height=21mm]{some_fancy_logo.pdf}}
\chead{}
\rhead{I want to vertically align THIS text}
```
|
https://tex.stackexchange.com/users/375
|
How to vertically align headers/footers in fancyhdr package?
| false |
I got a solution. It's a very ugly hack, but it works in my case (because I know in advance the height of the header).
```
\rhead{\parbox[b][21mm][t]{0.5\textwidth}{\raggedleft I want to vertically align THIS text}}
```
I'm accepting better solutions. :)
|
1
|
https://tex.stackexchange.com/users/375
|
2443
| 1,698 |
https://tex.stackexchange.com/questions/2441
|
874
|
I have some text in a table and I want to add a forced line break. I want to insert a forced line break without having to specify the column width, i.e. something like the following:
```
\begin{tabular}{|c|c|c|}
\hline
Foo bar & Foo <forced line break here> bar & Foo bar \\
\hline
\end{tabular}
```
I know that `\\` inserts a line break in most cases, but here it starts a new table row instead.
---
A similar question was asked before: [How to break a line in a table](https://tex.stackexchange.com/questions/485/how-to-break-a-line-in-a-table)
|
https://tex.stackexchange.com/users/375
|
How to add a forced line break inside a table cell
| false |
I don't have direct help on how to add a linebreak, but using the multirow package may provide different route to same desired end. You can read a tutorial here:
<http://andrewjpage.com/index.php?/archives/43-Multirow-and-multicolumn-spanning-with-latex-tables.html>
But I have a feeling the \parbox answer in the similar question you linked is what you're looking for. I think using a box in the cell is going to be simplest and best way, was there something about that that wasn't working for you?
If you want to use parbox without having to hardcode in a width, here's one way that works for me. Not perfect, since it requires you to know beforehand the text of the longest line in the multi-line column, but it does work:
```
% define new length and set to length of longest line
\newlength{\longline}
\settowidth{\longline}{longest line in table}\\
\begin{tabular}{lll}
one line & \parbox[t]{\longline}{longest line in table \\ and another line} & more text \\
second line here& and what & more text
\end{tabular}
```
|
8
|
https://tex.stackexchange.com/users/631
|
2444
| 1,699 |
https://tex.stackexchange.com/questions/2440
|
19
|
I'm using `fancyhdr`package for headings and footers. I have defined left-header as a big image, and I want to vertically align (to the top or to the center, the default is to the bottom) the text from the right-header. How can I do that?
```
\usepackage{fancyhdr}
\pagestyle{fancy}
\lhead{\includegraphics[height=21mm]{some_fancy_logo.pdf}}
\chead{}
\rhead{I want to vertically align THIS text}
```
|
https://tex.stackexchange.com/users/375
|
How to vertically align headers/footers in fancyhdr package?
| false |
I think the problem is that in `fancyhdr` there is no easy way to communicate the width of a box in the left header to the right header. You could allocate a dimen register, place the width of the box in the left header into it, and use it in the right header, but I think much easier solution is to just place everything into the same header:
```
\lhead{\hbox to \hsize{%
\hbox{\vtop{\vskip 0pt \hbox{\includegraphics[height=21mm]{some-fancy-logo.pdf}}}}%
\hfill\hbox{\vtop{\vskip 0pt \hbox{I want to vertically align THIS text}}}}}
\chead{}
\rhead{}
```
You probably don't even need `fancyhdr`.
|
1
|
https://tex.stackexchange.com/users/396
|
2447
| 1,700 |
https://tex.stackexchange.com/questions/2446
|
13
|
It is often the case that a postscript or PDF image used in a math paper consists mainly of a few lines and bezier curves. If there were an easy way to extract this information and convert it into tikz \draw commands, one could conveniently replace existing included graphics with tikz pictures. Does anyone know of a conversion program which does this? It would *not* need to be a completely general solution -- if it extracted a majority of the useful information (lines, curves, labels(?), ...) from a majority of the files it was presented with, that would be quite useful.
---
ADDED:
One of the commenters asked what the output of eps2pgf looks like. Here's a sample:
```
% Created by Eps2pgf 0.7.0 (build on 2008-08-24) on Sat Aug 28 14:14:16 PDT 2010
\begin{pgfpicture}
\pgfpathmoveto{\pgfqpoint{0cm}{0cm}}
\pgfpathlineto{\pgfqpoint{5.186cm}{0cm}}
\pgfpathlineto{\pgfqpoint{5.186cm}{4.092cm}}
\pgfpathlineto{\pgfqpoint{0cm}{4.092cm}}
\pgfpathclose
\pgfusepath{clip}
\begin{pgfscope}
\pgfpathmoveto{\pgfqpoint{0cm}{4.092cm}}
\pgfpathlineto{\pgfqpoint{0cm}{0cm}}
\pgfpathlineto{\pgfqpoint{5.186cm}{0cm}}
\pgfpathlineto{\pgfqpoint{5.186cm}{4.092cm}}
\pgfpathclose
\pgfusepath{clip}
\begin{pgfscope}
\begin{pgfscope}
\pgfsetdash{}{0cm}
\pgfsetlinewidth{0.317mm}
\definecolor{eps2pgf_color}{rgb}{0,0,0}\pgfsetstrokecolor{eps2pgf_color}\pgfsetfillcolor{eps2pgf_color}
\pgfpathmoveto{\pgfqpoint{0.044cm}{2.586cm}}
\pgfpathcurveto{\pgfqpoint{0.789cm}{2.747cm}}{\pgfqpoint{1.394cm}{3.29cm}}{\pgfqpoint{1.633cm}{4.014cm}}
\pgfusepath{stroke}
\end{pgfscope}
\begin{pgfscope}
\pgfsetdash{}{0cm}
\pgfsetlinewidth{0.317mm}
\definecolor{eps2pgf_color}{rgb}{0,0,0}\pgfsetstrokecolor{eps2pgf_color}\pgfsetfillcolor{eps2pgf_color}
\pgfpathmoveto{\pgfqpoint{3.538cm}{4.014cm}}
\pgfpathcurveto{\pgfqpoint{3.629cm}{3.205cm}}{\pgfqpoint{4.31cm}{2.592cm}}{\pgfqpoint{5.125cm}{2.586cm}}
\pgfusepath{stroke}
\end{pgfscope}
\begin{pgfscope}
\pgfsetdash{}{0cm}
\pgfsetlinewidth{0.317mm}
\definecolor{eps2pgf_color}{rgb}{0,0,0}\pgfsetstrokecolor{eps2pgf_color}\pgfsetfillcolor{eps2pgf_color}
\pgfpathmoveto{\pgfqpoint{0.046cm}{4.015cm}}
\pgfpathlineto{\pgfqpoint{5.126cm}{4.015cm}}
\pgfpathlineto{\pgfqpoint{5.126cm}{0.046cm}}
\pgfpathlineto{\pgfqpoint{0.046cm}{0.046cm}}
\pgfpathclose
\pgfusepath{stroke}
\end{pgfscope}
\begin{pgfscope}
\pgfsetdash{}{0cm}
\pgfsetlinewidth{0.317mm}
\definecolor{eps2pgf_color}{rgb}{0,0,0}\pgfsetstrokecolor{eps2pgf_color}\pgfsetfillcolor{eps2pgf_color}
\pgfpathmoveto{\pgfqpoint{0.046cm}{1.316cm}}
\pgfpathlineto{\pgfqpoint{5.126cm}{1.316cm}}
\pgfusepath{stroke}
\end{pgfscope}
\end{pgfscope}
\end{pgfscope}
\end{pgfpicture}
```
|
https://tex.stackexchange.com/users/203
|
PS-or-PDF to tikz converter?
| true |
You can try [eps2pgf](http://sourceforge.net/projects/eps2pgf/), it seems to be written for exactly this purpose. I have never tried it, so I am not sure how well it works.
Another option could be using `pstoedit` to convert your postscript to an editable format like gnuplot, xfig or svg, and convert that to tikz using an appropriate tool.
Number of tools that generate pgf/tikz code are described [here](http://www.texample.net/tikz/resources/).
|
13
|
https://tex.stackexchange.com/users/396
|
2448
| 1,701 |
https://tex.stackexchange.com/questions/2446
|
13
|
It is often the case that a postscript or PDF image used in a math paper consists mainly of a few lines and bezier curves. If there were an easy way to extract this information and convert it into tikz \draw commands, one could conveniently replace existing included graphics with tikz pictures. Does anyone know of a conversion program which does this? It would *not* need to be a completely general solution -- if it extracted a majority of the useful information (lines, curves, labels(?), ...) from a majority of the files it was presented with, that would be quite useful.
---
ADDED:
One of the commenters asked what the output of eps2pgf looks like. Here's a sample:
```
% Created by Eps2pgf 0.7.0 (build on 2008-08-24) on Sat Aug 28 14:14:16 PDT 2010
\begin{pgfpicture}
\pgfpathmoveto{\pgfqpoint{0cm}{0cm}}
\pgfpathlineto{\pgfqpoint{5.186cm}{0cm}}
\pgfpathlineto{\pgfqpoint{5.186cm}{4.092cm}}
\pgfpathlineto{\pgfqpoint{0cm}{4.092cm}}
\pgfpathclose
\pgfusepath{clip}
\begin{pgfscope}
\pgfpathmoveto{\pgfqpoint{0cm}{4.092cm}}
\pgfpathlineto{\pgfqpoint{0cm}{0cm}}
\pgfpathlineto{\pgfqpoint{5.186cm}{0cm}}
\pgfpathlineto{\pgfqpoint{5.186cm}{4.092cm}}
\pgfpathclose
\pgfusepath{clip}
\begin{pgfscope}
\begin{pgfscope}
\pgfsetdash{}{0cm}
\pgfsetlinewidth{0.317mm}
\definecolor{eps2pgf_color}{rgb}{0,0,0}\pgfsetstrokecolor{eps2pgf_color}\pgfsetfillcolor{eps2pgf_color}
\pgfpathmoveto{\pgfqpoint{0.044cm}{2.586cm}}
\pgfpathcurveto{\pgfqpoint{0.789cm}{2.747cm}}{\pgfqpoint{1.394cm}{3.29cm}}{\pgfqpoint{1.633cm}{4.014cm}}
\pgfusepath{stroke}
\end{pgfscope}
\begin{pgfscope}
\pgfsetdash{}{0cm}
\pgfsetlinewidth{0.317mm}
\definecolor{eps2pgf_color}{rgb}{0,0,0}\pgfsetstrokecolor{eps2pgf_color}\pgfsetfillcolor{eps2pgf_color}
\pgfpathmoveto{\pgfqpoint{3.538cm}{4.014cm}}
\pgfpathcurveto{\pgfqpoint{3.629cm}{3.205cm}}{\pgfqpoint{4.31cm}{2.592cm}}{\pgfqpoint{5.125cm}{2.586cm}}
\pgfusepath{stroke}
\end{pgfscope}
\begin{pgfscope}
\pgfsetdash{}{0cm}
\pgfsetlinewidth{0.317mm}
\definecolor{eps2pgf_color}{rgb}{0,0,0}\pgfsetstrokecolor{eps2pgf_color}\pgfsetfillcolor{eps2pgf_color}
\pgfpathmoveto{\pgfqpoint{0.046cm}{4.015cm}}
\pgfpathlineto{\pgfqpoint{5.126cm}{4.015cm}}
\pgfpathlineto{\pgfqpoint{5.126cm}{0.046cm}}
\pgfpathlineto{\pgfqpoint{0.046cm}{0.046cm}}
\pgfpathclose
\pgfusepath{stroke}
\end{pgfscope}
\begin{pgfscope}
\pgfsetdash{}{0cm}
\pgfsetlinewidth{0.317mm}
\definecolor{eps2pgf_color}{rgb}{0,0,0}\pgfsetstrokecolor{eps2pgf_color}\pgfsetfillcolor{eps2pgf_color}
\pgfpathmoveto{\pgfqpoint{0.046cm}{1.316cm}}
\pgfpathlineto{\pgfqpoint{5.126cm}{1.316cm}}
\pgfusepath{stroke}
\end{pgfscope}
\end{pgfscope}
\end{pgfscope}
\end{pgfpicture}
```
|
https://tex.stackexchange.com/users/203
|
PS-or-PDF to tikz converter?
| false |
There's also a [TikZ exporter](http://code.google.com/p/inkscape2tikz/) plugin for [Inkscape](http://inkscape.org) you might try. (Inkscape can import EPS/PS and PDFs and other vector formats.)
However, I guess I don't really see how it's more "convenient" to have TikZ code to replace the PDFs, unless you plan on making edits. PS/EPS/PDF images are very easily incorporated into LaTeX.
|
8
|
https://tex.stackexchange.com/users/411
|
2449
| 1,702 |
https://tex.stackexchange.com/questions/2445
|
5
|
How to create figure numbers like 1.1.1 and then 1.2.1, not 1.2.2?
I mean even if I added `\arabic{section}` into the command, the order of figures is still continuous, not accordingly rearranged by sections.
Is there any mistake I made? Below is the command line:
```
\renewcommand{\thefigure}{\arabic{chapter}.\arabic{section}.\arabic{figure}}
```
|
https://tex.stackexchange.com/users/nan
|
How to create multilevel figure / table numbers?
| false |
For numbering figures and tables per chapter you could use the command `\numberwithin` of [`amsmath`](http://ctan.org/pkg/amsmath):
```
\usepackage{amsmath}
\numberwithin{figure}{section}
\numberwithin{table}{section}
```
amsmath is very recommendable if you write mathematical expressions in your document.
Alternatively, use the package [`chngcntr`](http://ctan.org/pkg/chngcntr) which is specialized in such manipulations of counters:
```
\usepackage{chngcntr}
\counterwithin{figure}{section}
\counterwithin{table}{section}
```
|
8
|
https://tex.stackexchange.com/users/213
|
2452
| 1,703 |
https://tex.stackexchange.com/questions/2451
|
11
|
Running TeXLive 2009 on Ubuntu 10.4, a vanilla install. I used to be able to get updates for TeXLive 2009, I'm sure. But for months now it just tells me:
```
sudo /usr/local/texlive/2009/bin/i386-linux/tlmgr update --list
tlmgr: package repository http://www.tex.ac.uk/tex-archive/systems/texlive/tlnet
tlmgr: no updates available
```
I have a large TeXLive installation, with lots of packages. I would expect dozens of updates weekly to CTAN. Wouldn't 'tlmgr' normally get them? Or do I misunderstand things.
I also tried the tlmgr GUI, with the same result. My net connection is working. Any ideas?
|
https://tex.stackexchange.com/users/695
|
In TexLive 2009, 'tlmgr' tells me there are 'no updates available' for months now. Really?
| true |
We are currently 'between versions' of TeX Live. TeX Live 2009 is now 'frozen', which means there will be no further updates. Once TeX Live 2010 is released you'll be able to install it and update that. As I understand it, there are good technical reasons why TeX Live 2009 can't use the TeX Live 2010 packages (even though most of them do not contain binaries).
This question comes up quite a bit in one way or the other as MiKTeX has a different approach, with each version able to use its immediate predecessor's non-binary packages. So the TeX Live developers are well-aware that many users would like a more 'flexible' approach. As I say, I believe that there are good reasons why this is not currently the case.
|
10
|
https://tex.stackexchange.com/users/73
|
2453
| 1,704 |
https://tex.stackexchange.com/questions/2441
|
874
|
I have some text in a table and I want to add a forced line break. I want to insert a forced line break without having to specify the column width, i.e. something like the following:
```
\begin{tabular}{|c|c|c|}
\hline
Foo bar & Foo <forced line break here> bar & Foo bar \\
\hline
\end{tabular}
```
I know that `\\` inserts a line break in most cases, but here it starts a new table row instead.
---
A similar question was asked before: [How to break a line in a table](https://tex.stackexchange.com/questions/485/how-to-break-a-line-in-a-table)
|
https://tex.stackexchange.com/users/375
|
How to add a forced line break inside a table cell
| false |
```
\begin{tabular}{lll}
a&\vbox{\hbox{\strut ASDF}\hbox{\strut ASDF}\hbox{\strut This is my
really long line}}&c
\end{tabular}
```
The `\strut` is essential for spacing.
|
44
|
https://tex.stackexchange.com/users/647
|
2454
| 1,705 |
https://tex.stackexchange.com/questions/2441
|
874
|
I have some text in a table and I want to add a forced line break. I want to insert a forced line break without having to specify the column width, i.e. something like the following:
```
\begin{tabular}{|c|c|c|}
\hline
Foo bar & Foo <forced line break here> bar & Foo bar \\
\hline
\end{tabular}
```
I know that `\\` inserts a line break in most cases, but here it starts a new table row instead.
---
A similar question was asked before: [How to break a line in a table](https://tex.stackexchange.com/questions/485/how-to-break-a-line-in-a-table)
|
https://tex.stackexchange.com/users/375
|
How to add a forced line break inside a table cell
| false |
How about using `\parbox` in a custom command:
```
\documentclass{article}
\newsavebox\mybox
\newlength\mylength
\newcommand\boxup[2]{%
\savebox\mybox{#1}%
\setlength\mylength{\wd\mybox}%
\parbox{\mylength}{#1 \\ #2}%
}
\begin{document}
\begin{tabular}{|c|c|c|}
Foo bar & \boxup{Foo}{bar} & Foo bar \\
\end{tabular}
\end{document}
```
This takes two arguments with the assumption that the first line is longer than the second. It would be possible to refine the code to work through an arbitrary number of lines and find the longest. If that's of interest I'll write something, probably using [`expl3`](http://ctan.org/pkg/expl3) for the looping.
|
14
|
https://tex.stackexchange.com/users/73
|
2455
| 1,706 |
https://tex.stackexchange.com/questions/2450
|
45
|
I know how to use \label and \ref to get a reference to a result(or whatever else really) that I have made previously in the document. But this is tedious and requires me to create a label name every time.
What I am wondering, is if there is a more systematic/powerful way to accomplish this. I suppose there are many ways to skin a cat, so I will word the question like this;
>
> How do you reference theorem-like environments in your LaTeX documents, and why do you do so in this way?
>
>
>
Since I am asking the question in a way that suggest multiple answers with some opinions, I am marking this CW and putting the Big-list tag. If this is wrong, feel free to change.
|
https://tex.stackexchange.com/users/84
|
A better way to reference theorem-like environments?
| false |
If you use `ntheorem` package, this allows you to use `\thref` to reference theorem environments in a smart way. So it will reference a theorem as "Theorem 1" and a lemma as "Lemma 2" automatically.
`hyperref` will also automatically do the same sort of thing with its `\autoref` command.
|
16
|
https://tex.stackexchange.com/users/215
|
2456
| 1,707 |
https://tex.stackexchange.com/questions/2441
|
874
|
I have some text in a table and I want to add a forced line break. I want to insert a forced line break without having to specify the column width, i.e. something like the following:
```
\begin{tabular}{|c|c|c|}
\hline
Foo bar & Foo <forced line break here> bar & Foo bar \\
\hline
\end{tabular}
```
I know that `\\` inserts a line break in most cases, but here it starts a new table row instead.
---
A similar question was asked before: [How to break a line in a table](https://tex.stackexchange.com/questions/485/how-to-break-a-line-in-a-table)
|
https://tex.stackexchange.com/users/375
|
How to add a forced line break inside a table cell
| false |
This approach isn't so different from some of the others already given, except that it "externalises" all of the design decisions from the table definition itself (that is, leaving it cleaner to write and read each table should you want to include multiple tables like this throughout your doc or docs).
Preliminaries (presumably in your preamble):
```
\usepackage{array} % needed if you're going to use \\ together with centering,
% raggedright, raggedleft in your column specifier (see
% manuals on \arraybackslash)
\newlength{\mywidestcolwidth}
\newcommand*\mycellformat{\protect\footnotesize}
\newcommand*\mytableparskip{\setlength\parskip{4pt}}
\newcommand*\setmywidestcolwidth[1]{
\settowidth{\mywidestcolwidth}{\mycellformat #1}
}
```
Usage:
```
\setmywidestcolwidth{foo baz bar}
\begin{tabular}{|>{\mycellformat}c
|>{\mytableparskip\mycellformat\centering\arraybackslash}p{\mywidestcolwidth}
|>{\mycellformat}c|}
\hline
foo bar baz&
foo
foo baz bar
baz&
foo
foo baz bar
baz\\ \hline
\end{tabular}
```
Skip the `\mycellformat` and `\parskip` if you have no need for them (although not necessary in your case, I included `\parskip` since it's useful to visually distinguish paragraphs from one another since paragraph indentation is automatically switched off in tables, and added `\mycellformat` to allow for uniform document-wide table design settings).
|
3
|
https://tex.stackexchange.com/users/416
|
2457
| 1,708 |
https://tex.stackexchange.com/questions/2458
|
7
|
In my paper I need a letter $\mathbb{R}$ with a small circle above it.
Currently I'm using the following command:
`\newcommand{\obbR}{{\mbox{\kern1.4pt \raisebox{7pt} {\scriptsize$\circ$} \kern-9.1pt}\mathbb{R}}}`
But unfortunately it works only with standard font size. The question is how to make a command for this "composed letter", which works with all font sizes.
Actually, I have two problems with writing of this "universal" command.
1. I don't know, how can one make values font-dependent.
2. I don't know, how can one make the small circle, I should put above R, smaller, than `\scriptsize\circ`.
|
https://tex.stackexchange.com/users/475
|
How to make a command for a composed symbol to work with all font sizes?
| true |
I think you are looking for the `\mathring` accent. `$\mathring{\mathbb{R}}$` should do what you want.
|
12
|
https://tex.stackexchange.com/users/119
|
2459
| 1,709 |
https://tex.stackexchange.com/questions/80
|
562
|
If you have a TeX'ed resume, did you use a template or make your own? Are there any useful packages? What looks the most professional? How about special considerations for different areas of work (e.g. in academia)?
|
https://tex.stackexchange.com/users/8
|
LaTeX template for resume/curriculum vitae
| false |
Here's an example of a nice-looking "home-made" CV: <http://nitens.org/taraborelli/cvtex>
|
10
|
https://tex.stackexchange.com/users/988
|
2460
| 1,710 |
https://tex.stackexchange.com/questions/2396
|
54
|
I need to change the indentation that the `quote` and `quotation` environments and commands employ. I assume that there is some length I need to set, but I've googled around, and cannot find what I am after. So, how to alter the indentation?
|
https://tex.stackexchange.com/users/93
|
How can I change the indentation in quote and quotation environments and commands?
| false |
Use the [`etoolbox`](http://www.ctan.org/tex-archive/help/Catalogue/entries/etoolbox.html) package to patch the `\quote` command.
```
\usepackage{etoolbox}
\patchcmd{\quote}{\rightmargin}{\leftmargin 4em \rightmargin}{}{}
```
(The default definition of `\quote` is `\list{}{\rightmargin\leftmargin}\item\relax`.)
|
25
|
https://tex.stackexchange.com/users/510
|
2461
| 1,711 |
https://tex.stackexchange.com/questions/2450
|
45
|
I know how to use \label and \ref to get a reference to a result(or whatever else really) that I have made previously in the document. But this is tedious and requires me to create a label name every time.
What I am wondering, is if there is a more systematic/powerful way to accomplish this. I suppose there are many ways to skin a cat, so I will word the question like this;
>
> How do you reference theorem-like environments in your LaTeX documents, and why do you do so in this way?
>
>
>
Since I am asking the question in a way that suggest multiple answers with some opinions, I am marking this CW and putting the Big-list tag. If this is wrong, feel free to change.
|
https://tex.stackexchange.com/users/84
|
A better way to reference theorem-like environments?
| false |
How would the auto-labelling work? If there were a way of generating, say, `\label{thm1}`, `\label{thm2}`, and so on, then you couldn't rearrange the theorems or insert new ones without the labels automatically changing. And if you're willing to forswear such edits, then you might as well write `Theorem 1` in the source, and skip the `\label` business entirely.
|
3
|
https://tex.stackexchange.com/users/96
|
2464
| 1,712 |
https://tex.stackexchange.com/questions/2422
|
14
|
I have some graphs I drew in maple, some simple line plots and histograms. Now I'd like to redraw these graphs in LaTeX, so I can do fancy stuff in beamer like have one histogram appear, and then another on top of it on the next slide.
I guess one way to do this would be using R and sweave, but learning R seems like overkill, since I'm not really doing any statistical analysis: I just want to plot some data. Is there a simpler way to pass LaTeX the data in such a way that it will be able to plot the data in, say, a TikZ picture (since I already know how to use TikZ a bit...)
|
https://tex.stackexchange.com/users/215
|
Using LaTeX to draw time series graphs and histograms
| false |
pstricks extension and more specifically pst-plot package [pst-plot guide](http://www.ctan.org/tex-archive/graphics/pstricks/contrib/pst-plot/pst-plot-doc.pdf) may be a good solution as well. It is also a bit problematic if you use the pdflatex engine but works very well with dvips and ps2pdf.
|
3
|
https://tex.stackexchange.com/users/371
|
2465
| 1,713 |
https://tex.stackexchange.com/questions/2450
|
45
|
I know how to use \label and \ref to get a reference to a result(or whatever else really) that I have made previously in the document. But this is tedious and requires me to create a label name every time.
What I am wondering, is if there is a more systematic/powerful way to accomplish this. I suppose there are many ways to skin a cat, so I will word the question like this;
>
> How do you reference theorem-like environments in your LaTeX documents, and why do you do so in this way?
>
>
>
Since I am asking the question in a way that suggest multiple answers with some opinions, I am marking this CW and putting the Big-list tag. If this is wrong, feel free to change.
|
https://tex.stackexchange.com/users/84
|
A better way to reference theorem-like environments?
| true |
I solved this problem for myself a few years ago without knowing about the `theoremref` or `ntheorem` packages, but those in themselves do not do what you want anyway.
The problems that I had with the standard setup were the following:
1. You have to give each theorem type a different environment, which has both a "begin" and "end" tag containing the name of the theorem. If you want to make a change, you have to change two words not near each other.
2. You have to write `\label` every time.
3. You have to remember the name of the theorem type whenever you use `\ref`. This is the problem which `theoremref` also solves, though I think they do it in a slightly different way than I did.
4. The hyperlink produced by `ref` (when using `hyperref`) only encompasses the number and not the name ("Theorem 2", etc.), which is a small target but to change it is awkward.
I dealt with 1 and 2 by overwriting the `theorem` environment with one that has the syntax
```
\begin{theorem}{theorem type}{name of label} ... \end{theorem}
```
thus solving the locality problem for the theorem type and also allowing me to omit `\label`. For 3, I used the `fncylab` package to do the work that `theoremref` does (note that at the time, there was a bug in `amsthm` which makes this impossible without some work. It may be fixed now). This also takes care of 4, since now the word "Theorem" is part of the text produced by `\ref`, which is all wrapped in a hyperlink without my needing to do anything.
I like this solution very much. I write things like
```
\begin{theorem}{lem}{little lemma} This is a small lemma. \end{theorem}
It follows from \ref{little lemma} that we have
\begin{theorem*}{thm} The main result. \end{theorem*}
```
You can guess the effect of a `theorem*` environment, of course. You can see the .sty file on my website if you are interested.
**Later:** I just found out about the `thmtools` package. Man, that thing is awesome. I wish I had known about it. It does everything above (and more) and uses a keyval syntax for setting parameters, which is far better than having multiple arguments. Read p. 8 of its manual to see my hack done right. (It's not quite the same: it doesn't address point 1. However, I can imagine writing a wrapper environment taking a key "type" that would duplicate the above example.)
|
38
|
https://tex.stackexchange.com/users/575
|
2466
| 1,714 |
https://tex.stackexchange.com/questions/2462
|
4
|
I am trying to recompile a document in kwrite; I previously compiled it all OK under debian squeeze about 6 months ago, but I now have an opensuse 11.2 (kwrite-4.3.5-0.1.1.x86\_64).
A few problems have cropped up in the recompile
1) \begin{enumerate}...\end{enumerate} are undefined
2) \begin{itemize}...\end{itemize} are also undefined
3) all my captions now lead to undefined control errors
Example output:
```
1)
! Undefined control sequence.
\enit@endenumerate ->\enit@after
\endlist \enit@toks \expandafter {\enit@sav...
l.163 \end{enumerate}
2)
[9]
! Undefined control sequence.
\enit@enditemize ->\enit@after
\endlist \enit@toks \expandafter {\enit@savek...
3)
! Undefined control sequence.
\captiontextfont@default ->\cpb@font
l.144 ...d compositions as estimated by weighing.}
```
Any advice?
Also, the captcha on this site is really broken. disabling javascript just throws a (framed) content-length required error and shows a google page (WTF?) Secondly, I had to enter it in 4 times (after enabling javascript) because (I didn't have tags, I had invalid tags, I had a bad captcha (unreadable) and then I got a good one); Is there somewhere I can report this?
Edit:
* Could not report bug. Would not let me post my question "your openID (?) is incorrect", but there was no field (even with javascript) to enter this. ???
* Here is the minimal example that was asked for in the discussion (Am I meant to just keep editing my posts??)
```
\documentclass[a4paper,12pt,openright,twoside]{thesis}
\usepackage{enumitem}
\usepackage{paralist} %fancy list of figures
\title{A b C d e f g}
\author{me}\vspace{4ex}
\date{2010}
\begin{document}
\pagestyle{empty} \hspace{1pt} \pagebreak
\pagestyle{plain}
\begin{abstract}
\addcontentsline{toc}{chapter}{Abstract}
\vspace{1ex}
Stuff.
\end{abstract}
\cleardoublepage
{
\cleardoublepage
\mbox{}
\cleardoublepage
%back to 1,2,3 style numbering
\pagenumbering{arabic}
\begin{itemize}
\item One
\end{itemize}
\end{document}
```
Caption minimal example:
```
\documentclass[a4paper,12pt,openright,twoside]{thesis}
\usepackage[pdftex]{graphicx}
\usepackage{caption}
\title{asdf}
\author{me}\vspace{4ex}
\date{2010}
\begin{document}
\begin{abstract}
Lalalla
\end{abstract}
\begin{figure}
\includegraphics[width=0.95 \textwidth]{test.png}
\caption{Caption test}
\label{fig:test}
\end{figure}
\pagestyle{empty}
\thispagestyle{plain}
\end{document}
```
This results in:
```
! Undefined control sequence. \captionlabelfont@default ->\cph@font l.19 \caption{Caption test} ! Undefined control sequence. \captionlabelfont@default ->\cph@font l.19 \caption{Caption test} ! Undefined control sequence. \captiontextfont@default ->\cpb@font l.19 \caption{Caption test} ! Undefined control sequence. \captionlabelfont@default ->\cph@font l.19 \caption{Caption test} ! Undefined control sequence. \captionlabelfont@default ->\cph@font l.19 \caption{Caption test} ! Undefined control sequence. \captiontextfont@default ->\cpb@font l.19 \caption{Caption test}
[2 ] (./test.aux) ) (see the transcript file for additional information) Output written on test.pdf (2 pages, 471338 bytes). Transcript written on test.log.
```
|
https://tex.stackexchange.com/users/nan
|
Enumerate and itemize undefined + captions not working
| false |
OK, So for anyone out there; the UWA style file `thesis` is broken with my version of caption. Similar problems have been reported with upgrades to caption breaking university style files.
I have no ability to edit custom style files, I just use them.
As a work around, as suggested at <http://macosx-tex.576846.n2.nabble.com/problem-with-caption-in-Mactex-2009-td3988716.html#a3989331> (or <http://tug.org/pipermail/macostex-archives/2009-November/041847.html>), is to use `ccaption`, instead of `caption`. The result is different (and less nice looking), but it works.
Unfortunately, the caption file does not seem to be clearly version stamped, or a dependency is causing the problem, as the last marked change is in 2008, which was long enough ago, and my other system was up-to-date to make me suspicious.
So the only info I have is the non-working `caption.sty` file has:
\NeedsTeXFormat{LaTeX2e}[1994/12/01]
\ProvidesPackage{caption}[2008/04/01 v3.1h Customizing captions (AR)]
$ md5sum ./texmf/tex/latex/caption/caption.sty
677bc2647b4de7942f16e897e1eadab2 ./texmf/tex/latex/caption/caption.sty
Thanks to everyone for the help.
Hope this helps.
P.s. For a latex site, a software package that is usually associated with anti-wysiwig fuddy duddies, there sure is a lot of scripting going on here -- I can't even post without it.
|
0
|
https://tex.stackexchange.com/users/nan
|
2467
| 1,715 |
https://tex.stackexchange.com/questions/2462
|
4
|
I am trying to recompile a document in kwrite; I previously compiled it all OK under debian squeeze about 6 months ago, but I now have an opensuse 11.2 (kwrite-4.3.5-0.1.1.x86\_64).
A few problems have cropped up in the recompile
1) \begin{enumerate}...\end{enumerate} are undefined
2) \begin{itemize}...\end{itemize} are also undefined
3) all my captions now lead to undefined control errors
Example output:
```
1)
! Undefined control sequence.
\enit@endenumerate ->\enit@after
\endlist \enit@toks \expandafter {\enit@sav...
l.163 \end{enumerate}
2)
[9]
! Undefined control sequence.
\enit@enditemize ->\enit@after
\endlist \enit@toks \expandafter {\enit@savek...
3)
! Undefined control sequence.
\captiontextfont@default ->\cpb@font
l.144 ...d compositions as estimated by weighing.}
```
Any advice?
Also, the captcha on this site is really broken. disabling javascript just throws a (framed) content-length required error and shows a google page (WTF?) Secondly, I had to enter it in 4 times (after enabling javascript) because (I didn't have tags, I had invalid tags, I had a bad captcha (unreadable) and then I got a good one); Is there somewhere I can report this?
Edit:
* Could not report bug. Would not let me post my question "your openID (?) is incorrect", but there was no field (even with javascript) to enter this. ???
* Here is the minimal example that was asked for in the discussion (Am I meant to just keep editing my posts??)
```
\documentclass[a4paper,12pt,openright,twoside]{thesis}
\usepackage{enumitem}
\usepackage{paralist} %fancy list of figures
\title{A b C d e f g}
\author{me}\vspace{4ex}
\date{2010}
\begin{document}
\pagestyle{empty} \hspace{1pt} \pagebreak
\pagestyle{plain}
\begin{abstract}
\addcontentsline{toc}{chapter}{Abstract}
\vspace{1ex}
Stuff.
\end{abstract}
\cleardoublepage
{
\cleardoublepage
\mbox{}
\cleardoublepage
%back to 1,2,3 style numbering
\pagenumbering{arabic}
\begin{itemize}
\item One
\end{itemize}
\end{document}
```
Caption minimal example:
```
\documentclass[a4paper,12pt,openright,twoside]{thesis}
\usepackage[pdftex]{graphicx}
\usepackage{caption}
\title{asdf}
\author{me}\vspace{4ex}
\date{2010}
\begin{document}
\begin{abstract}
Lalalla
\end{abstract}
\begin{figure}
\includegraphics[width=0.95 \textwidth]{test.png}
\caption{Caption test}
\label{fig:test}
\end{figure}
\pagestyle{empty}
\thispagestyle{plain}
\end{document}
```
This results in:
```
! Undefined control sequence. \captionlabelfont@default ->\cph@font l.19 \caption{Caption test} ! Undefined control sequence. \captionlabelfont@default ->\cph@font l.19 \caption{Caption test} ! Undefined control sequence. \captiontextfont@default ->\cpb@font l.19 \caption{Caption test} ! Undefined control sequence. \captionlabelfont@default ->\cph@font l.19 \caption{Caption test} ! Undefined control sequence. \captionlabelfont@default ->\cph@font l.19 \caption{Caption test} ! Undefined control sequence. \captiontextfont@default ->\cpb@font l.19 \caption{Caption test}
[2 ] (./test.aux) ) (see the transcript file for additional information) Output written on test.pdf (2 pages, 471338 bytes). Transcript written on test.log.
```
|
https://tex.stackexchange.com/users/nan
|
Enumerate and itemize undefined + captions not working
| true |
Regarding your caption problem. I don't get any error. I would suspect that your caption.sty is too old.
I have caption.sty 2010/01/09 v3.1m Customizing captions (AR)
|
5
|
https://tex.stackexchange.com/users/2388
|
2469
| 1,716 |
https://tex.stackexchange.com/questions/2470
|
22
|
We are successfully using LaTeX at our company to create our product documentation. We have a custom document class that works OK and we currently use TeXnicCenter to edit our documentation. "We" are a bunch of Windows C++ developers.
I'm involved in maintaining our doc creation process and would like to improve the situation for all here when errors and warnings appear during PDF generation from our LaTeX files.
We would obviously like to have warning-free "builds" of our documents.
The problem with TeXnicCenter is that it does not parse the pdflatex output and so it's extremely tedious to manually scroll through pages and pages of output to see where a certain error or warning occurred. though it *does* parse the output and allow to jump to errors and warnings (via toolbar buttons) in the *result log*, it is not possible to jump to the file position where the error occurred, so it is left to the user to read the warning prelude and conclude where, in which file, the error happened, go there manually and see if he can spot the error.
I have tried TeXmaker and it does a semi decent job at parsing the output but it seems it gets lost as soon as there are errors in addition to warnings.
So long story short what I need is
* IDE/Editor for Windows + MikTeX
* One click generation of PDF
* Resulting in a list/table of warnings and errors and info messages that the developer can click on (as far as possible) to jump to the line where the error occured.
|
https://tex.stackexchange.com/users/1012
|
Which (La)TeX IDE(s) have good warning/error analysis
| false |
I have only used it for about 10 minutes, but the [TeXlipse](http://texlipse.sourceforge.net/) plugin to [Eclipse](http://www.eclipse.org/) seems to do a good job of parsing errors and warnings. Here is a screenshot of its error handling taken from their website:
|
8
|
https://tex.stackexchange.com/users/737
|
2472
| 1,717 |
https://tex.stackexchange.com/questions/2470
|
22
|
We are successfully using LaTeX at our company to create our product documentation. We have a custom document class that works OK and we currently use TeXnicCenter to edit our documentation. "We" are a bunch of Windows C++ developers.
I'm involved in maintaining our doc creation process and would like to improve the situation for all here when errors and warnings appear during PDF generation from our LaTeX files.
We would obviously like to have warning-free "builds" of our documents.
The problem with TeXnicCenter is that it does not parse the pdflatex output and so it's extremely tedious to manually scroll through pages and pages of output to see where a certain error or warning occurred. though it *does* parse the output and allow to jump to errors and warnings (via toolbar buttons) in the *result log*, it is not possible to jump to the file position where the error occurred, so it is left to the user to read the warning prelude and conclude where, in which file, the error happened, go there manually and see if he can spot the error.
I have tried TeXmaker and it does a semi decent job at parsing the output but it seems it gets lost as soon as there are errors in addition to warnings.
So long story short what I need is
* IDE/Editor for Windows + MikTeX
* One click generation of PDF
* Resulting in a list/table of warnings and errors and info messages that the developer can click on (as far as possible) to jump to the line where the error occured.
|
https://tex.stackexchange.com/users/1012
|
Which (La)TeX IDE(s) have good warning/error analysis
| false |
I always found that [WinEdt](http://www.winedt.com/) was pretty good at this. My current editor-of-choice is [TeXworks](http://www.texworks.org/), which currently is not so hot on automated parsing of the log, but the way I work means this is not a big issue for me: I always halt on the first error and jump to the appropriate line number.
|
3
|
https://tex.stackexchange.com/users/73
|
2473
| 1,718 |
https://tex.stackexchange.com/questions/2471
|
12
|
I'm using the [multibib package](http://www.ctan.org/tex-archive/help/Catalogue/entries/multibib.html) but cannot get links to work with it and [hyperref](http://www.ctan.org/tex-archive/help/Catalogue/entries/hyperref.html). Is this combination possible? A sample document follows:
If I add a `\usepackage{natbib}` in the preamble then links do work, but the custom labeling provided by multibib is removed. For example, without natbib the citations are [F3] and [B2] and no links. With natbib, citations are (3) and (2) and do link.
The [multibib documentation (PDF)](http://www.ctan.org/tex-archive/macros/latex/contrib/multibib/multibib.pdf) has a section (3) on how to handle packages which modify `\@citex`, but I am not sure how to use the information there to solve this problem.
```
% multibiblinktest.tex
\documentclass[10pt,letter]{article}
\usepackage[labeled,resetlabels]{multibib}
\newcites{F}{Foo}
\newcites{B}{Bar}
\usepackage{hyperref}
\hypersetup{
colorlinks = true,
linkcolor=blue, % color of internal links
citecolor=blue, % color of links to bibliography
urlcolor=blue, % color of external links
pagebackref=true,
implicit=false,
bookmarks=true,
bookmarksopen=true,
pdfdisplaydoctitle=true
}
% \usepackage{natbib} % links work, citations not formatted by multibib...
\begin{document}
\nociteF{ref1}
\nociteF{ref2}
\nociteB{ref3}
A link to \citeF{ref4} and \citeB{ref5} goes here.
\bibliographystyleF{unsrt}
\bibliographyF{test.bib}
\bibliographystyleB{unsrt}
\bibliographyB{test.bib}
\end{document}
```
And the bibliography file:
```
% test.bib
@Article {ref1, author = Author1, title = Title1, year = 2010}
@Article {ref2, author = Author2, title = Title2, year = 2010}
@Article {ref3, author = Author3, title = Title3, year = 2010}
@Article {ref4, author = Author4, title = Title4, year = 2010}
@Article {ref5, author = Author5, title = Title5, year = 2010}
```
And to compile the document:
```
pdflatex multibiblinktest
pdflatex multibiblinktest
pdflatex multibiblinktest
bibtex F
bibtex B
pdflatex multibiblinktest
pdflatex multibiblinktest
pdflatex multibiblinktest
open multibiblinktest.pdf
```
|
https://tex.stackexchange.com/users/360
|
multibib and links to bibliography (with hyperref, natbib)?
| false |
I have changed the line:
```
\usepackage[labeled,resetlabels]{multibib}
```
to
```
\usepackage[labeled]{multibib}
```
And it seems to work without natbib.
Make sure you keep multibib before hyperref!
|
0
|
https://tex.stackexchange.com/users/137
|
2474
| 1,719 |
https://tex.stackexchange.com/questions/2470
|
22
|
We are successfully using LaTeX at our company to create our product documentation. We have a custom document class that works OK and we currently use TeXnicCenter to edit our documentation. "We" are a bunch of Windows C++ developers.
I'm involved in maintaining our doc creation process and would like to improve the situation for all here when errors and warnings appear during PDF generation from our LaTeX files.
We would obviously like to have warning-free "builds" of our documents.
The problem with TeXnicCenter is that it does not parse the pdflatex output and so it's extremely tedious to manually scroll through pages and pages of output to see where a certain error or warning occurred. though it *does* parse the output and allow to jump to errors and warnings (via toolbar buttons) in the *result log*, it is not possible to jump to the file position where the error occurred, so it is left to the user to read the warning prelude and conclude where, in which file, the error happened, go there manually and see if he can spot the error.
I have tried TeXmaker and it does a semi decent job at parsing the output but it seems it gets lost as soon as there are errors in addition to warnings.
So long story short what I need is
* IDE/Editor for Windows + MikTeX
* One click generation of PDF
* Resulting in a list/table of warnings and errors and info messages that the developer can click on (as far as possible) to jump to the line where the error occured.
|
https://tex.stackexchange.com/users/1012
|
Which (La)TeX IDE(s) have good warning/error analysis
| false |
Texmaker and TeXstudio, although I've never used either in Windows.
|
8
|
https://tex.stackexchange.com/users/928
|
2475
| 1,720 |
https://tex.stackexchange.com/questions/2476
|
17
|
I decided to look if the solution [Caramdir](https://tex.stackexchange.com/users/83/caramdir) gave in this [question](https://tex.stackexchange.com/questions/2098) would work as well for my attempts to use a new notation for hypergeometric functions. However, trying
```
{}_3 F_2\left(\begin{matrix}a& &b& &c\\&d& &e&\end{matrix}\middle;z\right)
```
resulted in the arguments before the semicolon being too widely spaced. I could of course just give up on the "staggered array notation" and align by columns what can be aligned by columns, or just use a two row, one column `matrix` and then use commas as delimiters, but I kind of like to see how to do a staggered array in LaTeX, and reserve `matrix` for the case of the number of parameters in both rows being equal.
So, how does one do a tighter looking (but still nicely spaced) staggered array?
|
https://tex.stackexchange.com/users/nan
|
Using LaTeX to render hypergeometric function notation
| true |
```
\setlength\arraycolsep{1pt}
{}_3 F_2\left(\begin{matrix}a& &b& &c\\&d&
&e&\end{matrix};z\right)
```
That tightens up the spacing quite a bit. I made a hypergeometric macro previously, but it doesn't support the `;z`, unfortunately.
```
\newcommand*\pFq[2]{{}_{#1}F_{#2}\genfrac[]{0pt}{}}
```
Then you use `\pFq{3}{2}{a,b,c}{d,e}`. (Or replace the commas with any other sort of spacing you want.) I was fairly happy with that.
Edit: Actually, how about something like this?
```
\newcommand*\pFqskip{8mu}
\catcode`,\active
\newcommand*\pFq{\begingroup
\catcode`\,\active
\def ,{\mskip\pFqskip\relax}%
\dopFq
}
\catcode`\,12
\def\dopFq#1#2#3#4#5{%
{}_{#1}F_{#2}\biggl[\genfrac..{0pt}{}{#3}{#4};#5\biggr]%
\endgroup
}
```
Change `\pFqskip` to whatever spacing you want between the elements. You use it like
```
\pFq{3}{2}{a,b,c}{d,e}{z}
```
|
12
|
https://tex.stackexchange.com/users/647
|
2477
| 1,721 |
https://tex.stackexchange.com/questions/15
|
149
|
What's the best strategy for spell checking LaTeX documents?
|
https://tex.stackexchange.com/users/55
|
Spell checking LaTeX documents
| false |
```
detex doc.tex | spell
```
|
5
|
https://tex.stackexchange.com/users/360
|
2478
| 1,722 |
https://tex.stackexchange.com/questions/2471
|
12
|
I'm using the [multibib package](http://www.ctan.org/tex-archive/help/Catalogue/entries/multibib.html) but cannot get links to work with it and [hyperref](http://www.ctan.org/tex-archive/help/Catalogue/entries/hyperref.html). Is this combination possible? A sample document follows:
If I add a `\usepackage{natbib}` in the preamble then links do work, but the custom labeling provided by multibib is removed. For example, without natbib the citations are [F3] and [B2] and no links. With natbib, citations are (3) and (2) and do link.
The [multibib documentation (PDF)](http://www.ctan.org/tex-archive/macros/latex/contrib/multibib/multibib.pdf) has a section (3) on how to handle packages which modify `\@citex`, but I am not sure how to use the information there to solve this problem.
```
% multibiblinktest.tex
\documentclass[10pt,letter]{article}
\usepackage[labeled,resetlabels]{multibib}
\newcites{F}{Foo}
\newcites{B}{Bar}
\usepackage{hyperref}
\hypersetup{
colorlinks = true,
linkcolor=blue, % color of internal links
citecolor=blue, % color of links to bibliography
urlcolor=blue, % color of external links
pagebackref=true,
implicit=false,
bookmarks=true,
bookmarksopen=true,
pdfdisplaydoctitle=true
}
% \usepackage{natbib} % links work, citations not formatted by multibib...
\begin{document}
\nociteF{ref1}
\nociteF{ref2}
\nociteB{ref3}
A link to \citeF{ref4} and \citeB{ref5} goes here.
\bibliographystyleF{unsrt}
\bibliographyF{test.bib}
\bibliographystyleB{unsrt}
\bibliographyB{test.bib}
\end{document}
```
And the bibliography file:
```
% test.bib
@Article {ref1, author = Author1, title = Title1, year = 2010}
@Article {ref2, author = Author2, title = Title2, year = 2010}
@Article {ref3, author = Author3, title = Title3, year = 2010}
@Article {ref4, author = Author4, title = Title4, year = 2010}
@Article {ref5, author = Author5, title = Title5, year = 2010}
```
And to compile the document:
```
pdflatex multibiblinktest
pdflatex multibiblinktest
pdflatex multibiblinktest
bibtex F
bibtex B
pdflatex multibiblinktest
pdflatex multibiblinktest
pdflatex multibiblinktest
open multibiblinktest.pdf
```
|
https://tex.stackexchange.com/users/360
|
multibib and links to bibliography (with hyperref, natbib)?
| false |
You are using a standard BibTeX style with `natbib`. You should be using the `unsrtnat` style rather than `unsrt` as you are using the `natbib` package.
|
2
|
https://tex.stackexchange.com/users/73
|
2480
| 1,723 |
https://tex.stackexchange.com/questions/2479
|
13
|
There are **many** ways to get LaTeX on an OS X box. I prefer to manage my software via fink, and even then there are a lot of choices. At the time of this writing (2010-08-28) I have the following options:
* texlive (0.20080816-3)
* xetex (0.996-1001)
* tetex (3.0-1006)
* extex (0.0svn8062-1)
* ptex (3.1.11-3)
And I might have missed some. Which of these works best? Which is most up-to-date? Why are there so many?
|
https://tex.stackexchange.com/users/360
|
What are the differences between the many LaTeX versions available for OS X?
| false |
I've never heard of ptex or extex until now, but ptex seems to be something related to Japanese LaTeX. I can't find much information on extex. XeTeX is a particular TeX engine that is distributed with recent TeX distributions, so I'm not sure why it's listed separately. teTeX is [old](http://www.tug.org/tetex/) and not updated any longer. TeX Live is what I suggest you use. TeX Live and MiKTeX are the two major TeX distributions. TeX Live 2008 is fairly recent.
|
2
|
https://tex.stackexchange.com/users/647
|
2481
| 1,724 |
https://tex.stackexchange.com/questions/2479
|
13
|
There are **many** ways to get LaTeX on an OS X box. I prefer to manage my software via fink, and even then there are a lot of choices. At the time of this writing (2010-08-28) I have the following options:
* texlive (0.20080816-3)
* xetex (0.996-1001)
* tetex (3.0-1006)
* extex (0.0svn8062-1)
* ptex (3.1.11-3)
And I might have missed some. Which of these works best? Which is most up-to-date? Why are there so many?
|
https://tex.stackexchange.com/users/360
|
What are the differences between the many LaTeX versions available for OS X?
| false |
Don't use Tetex. Unfortunately, last time I looked, it was the only Tex supported as a binary by Fink.
Your list misses:
* [Gwtex](http://www.tug.org/twg/mactex/award/2007/gerben/aboutgwtex.html), which is, like Tetex, abandonware, but used to be the nicest Tex install for the Mac.
* [Mactex](http://www.tug.org/twg/mactex/), which is an up-to-date descendant of Gwtex, and is a reasonable alternative to Texlive.
Your best options are Texlive (the 2009 is considered stable, and the 2010 version is usable) or Mactex. I install Texlive from the ISO image directly to my Mac, and have no problems. Mactex comes with GUI extras.
|
6
|
https://tex.stackexchange.com/users/175
|
2482
| 1,725 |
https://tex.stackexchange.com/questions/2483
|
37
|
I often find myself wanting to use standard data structures in TeX. For example, lists or maps. Each time this need comes up, I reinvent the wheel. For some reason, I find myself using stacks fairly frequently.
Is there a standard package (either plain TeX or LaTeX) that offers a convenient interface to data structures? They would be most useful if the structures could be combined so that you could have lists of maps, for example.
|
https://tex.stackexchange.com/users/647
|
Data structures for TeX
| true |
One of the ideas of [`expl3`](http://ctan.org/pkg/expl3) is to provide a number of standard programming tools, and data structures are included in this. Currently, the structured data types available are sequences, stacks and property lists. Sequences and stacks have the same underlying structure: they are different ways of looking at the same thing. So we might have
```
\seq_new:N \l_my_seq
\seq_put_right:Nn \l_my_seq { Some-tokens } % Sequence-like access
\seq_push:Nn \l_my_seq { More-tokens } % Stack-like access, puts to left
```
Property lists are a key-value type data type
```
\prop_new:N \l_my_prop
\prop_put:Nnn \l_my_prop { key-name } { value }
```
Property lists are 'unordered', whereas sequences/stacks are ordered. In both cases there are functions available to map to each item in the stored data, for example `\seq_map_function:NN`.
New data types can be added to `expl3` as needed: this depends on the requirements of the LaTeX3 Project but also of others. (Note of course that I'm on the LaTeX3 Project!)
An alternative set of packages providing some similar ideas to `expl3` including a number of data-related structures is the combination of [`etoolbox`](http://ctan.org/pkg/etoolbox) and [`etextools`](http://ctan.org/pkg/etextools). These two packages provide functions for mapping to lists and so on.
You might also look at the [`datatool`](http://ctan.org/pkg/datatool) package, which can be used to construct tables in LaTeX and access the data in a database-like fashion.
One other note. LuaTeX provides access to the native Lua data storage methods, which if you are doing a LuaTeX-only project would of course be the first place to look.
|
30
|
https://tex.stackexchange.com/users/73
|
2484
| 1,726 |
https://tex.stackexchange.com/questions/2485
|
13
|
I would like to know that which one of the following commands is faster in running?
`\usepackage{A,B,C,...}` or
```
\usepackage{A}
\usepackage{B}
\usepackage{C}
...
```
Thanks
|
https://tex.stackexchange.com/users/885
|
Is it faster to load packages together or not?
| true |
In either case, the difference is too small to worry about it. If you preamble is slow to process, you might consider using [mylatex](http://ctan.org/pkg/mylatex) to speed things up.
|
21
|
https://tex.stackexchange.com/users/179
|
2486
| 1,727 |
https://tex.stackexchange.com/questions/2479
|
13
|
There are **many** ways to get LaTeX on an OS X box. I prefer to manage my software via fink, and even then there are a lot of choices. At the time of this writing (2010-08-28) I have the following options:
* texlive (0.20080816-3)
* xetex (0.996-1001)
* tetex (3.0-1006)
* extex (0.0svn8062-1)
* ptex (3.1.11-3)
And I might have missed some. Which of these works best? Which is most up-to-date? Why are there so many?
|
https://tex.stackexchange.com/users/360
|
What are the differences between the many LaTeX versions available for OS X?
| false |
[ExTeX](http://www.extex.org) is (was?) a project that aims to create 'typesetting for the 21st century' with a Java-based system derived from TeX (via NTS). It is not finished and in fact seems to be abandoned or at least hybernating (even the nightly builds fail since August last year)
|
2
|
https://tex.stackexchange.com/users/89
|
2487
| 1,728 |
https://tex.stackexchange.com/questions/2488
|
4
|
Sometimes, I get errors when I compile with pdfLaTeX in TeXnicCenter. Looking through the error logs, I get something like:
```
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
```
How do I take advantage of this `Type H <return> for immediate help`? I'm new to LaTeX and I would purposefully introduce errors to my source so I could learn more about them.
|
https://tex.stackexchange.com/users/791
|
Get help on errors in TeXnicCenter
| false |
I can't help with TeXnicCenter, but why not just run pdflatex on the file and then type H when you get an error?
|
0
|
https://tex.stackexchange.com/users/647
|
2489
| 1,729 |
https://tex.stackexchange.com/questions/2479
|
13
|
There are **many** ways to get LaTeX on an OS X box. I prefer to manage my software via fink, and even then there are a lot of choices. At the time of this writing (2010-08-28) I have the following options:
* texlive (0.20080816-3)
* xetex (0.996-1001)
* tetex (3.0-1006)
* extex (0.0svn8062-1)
* ptex (3.1.11-3)
And I might have missed some. Which of these works best? Which is most up-to-date? Why are there so many?
|
https://tex.stackexchange.com/users/360
|
What are the differences between the many LaTeX versions available for OS X?
| true |
I'd simply go to <http://www.tug.org/mactex/> and download one zip file and that's everything that you'll need. It includes a complete TeX Live distribution, and also some very useful Mac-specific GUI tools like LaTeXiT.
Fink, MacPorts, etc. may be useful for many things, but getting a complete up-to-date TeX distribution isn't one of those cases. See also [this](https://tex.stackexchange.com/questions/2172/macports-tex-install-does-not-have-nag-sty) closely related question.
|
14
|
https://tex.stackexchange.com/users/100
|
2490
| 1,730 |
https://tex.stackexchange.com/questions/2488
|
4
|
Sometimes, I get errors when I compile with pdfLaTeX in TeXnicCenter. Looking through the error logs, I get something like:
```
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
```
How do I take advantage of this `Type H <return> for immediate help`? I'm new to LaTeX and I would purposefully introduce errors to my source so I could learn more about them.
|
https://tex.stackexchange.com/users/791
|
Get help on errors in TeXnicCenter
| false |
Texniccenter builds the file in a way similar to a silent mode, and displays you only a subset of the log file.
You can take advantage of the live help (`type H for help`) only if you build the file from a command prompt. That is: open a command prompt, go to the folder of the files you are working on, issue the command `pdflatex filename.tex` and see the output.
|
2
|
https://tex.stackexchange.com/users/177
|
2491
| 1,731 |
https://tex.stackexchange.com/questions/2485
|
13
|
I would like to know that which one of the following commands is faster in running?
`\usepackage{A,B,C,...}` or
```
\usepackage{A}
\usepackage{B}
\usepackage{C}
...
```
Thanks
|
https://tex.stackexchange.com/users/885
|
Is it faster to load packages together or not?
| false |
I think the only difference that may arise is when you have to specify some options for the packages you are loading. In this case you have to load the packages one by one.
|
5
|
https://tex.stackexchange.com/users/177
|
2492
| 1,732 |
https://tex.stackexchange.com/questions/2317
|
48
|
Is there a suitable macro (or even style) for responses to referees and editor?
These often entails several points to that need to be addressed. It would be nice to, say, quote the original text (possibly numbered) and the show the response slightly indented, as in
>
> a) Spell foo as bar
>
>
>
> >
> > We opted to follow the ABC style of ...
> >
>
>
> b) Include reference to Really, Important and Stuff (2010)
>
>
>
> >
> > Section 2 has been updated and the discussion ...
> >
>
>
>
|
https://tex.stackexchange.com/users/980
|
LaTeX style or macro for detailed response to referee report
| true |
Given the lack of pointers to anything pre-existing, I ended up with the following (and rather simplistic) solution, at least for now:
```
\newcommand{\pointRaised}[2]{\medskip \hrule \noindent
\textsl{{\fontseries{b}\selectfont #1}: #2}}
\newcommand{\reply}{\noindent \textbf{Reply}:\ }
```
The `\pointRaised` macro takes two arguments. The first is the enumeration and/or location of the issue. This will be set bold. The remainder is the what I chose to quote from the issue raised. This will be set in slanted. The whole block is separated by some vertically space and a horizontal rule.
The `\reply` simply starts with a bold token followed by the comment.
|
18
|
https://tex.stackexchange.com/users/980
|
2493
| 1,733 |
https://tex.stackexchange.com/questions/2488
|
4
|
Sometimes, I get errors when I compile with pdfLaTeX in TeXnicCenter. Looking through the error logs, I get something like:
```
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
```
How do I take advantage of this `Type H <return> for immediate help`? I'm new to LaTeX and I would purposefully introduce errors to my source so I could learn more about them.
|
https://tex.stackexchange.com/users/791
|
Get help on errors in TeXnicCenter
| true |
Since your plan is to "purposefully introduce errors to my source so I could learn more about them", you might find this will help expedite your cunningly twisted goals:
Define a new profile in `TeXnicCenter`:
1. Choose `Define Output Profiles...` from `TeXnicCenter`'s `Build` menu
2. Select the profile you'd like to use, e.g., `LaTeX => PDF`
3. Clone it by clicking the `Copy` button
4. Give it a nice new name, e.g., `LaTeX => PDF (shell)`
5. In the `Path to the (La)TeX compiler` box, type `launchpdflatex.bat`
6. In the `Command line arguments to pass to the compiler` box, type `"%pm"`
Create a new file called `launchpdflatex.bat` containing this line:
```
start cmd /K pdflatex.exe -interaction=errorstopmode %1
```
(you can omit the `-interaction=errorstopmode` part if you like.)
Save this file somewhere in your system path. (NB, this command assumes that the shell processor can also find `pdflatex.exe` somewhere in your system path.)
Now, whenever you've run a compile that has errors in it for which you'd like to `Type H <return>`, simply select your `LaTeX => PDF (shell)` profile from `TeXnicCenter`'s `LaTeX` toolbar dropdown listbox and, voila, it will launch `pdflatex` in an interactive command shell for you. (Of course, `TeXnicCenter` won't run `makeindex` or whatever other postprocessor commands you have in your build profile, but, hey, you've got an error to deal with, so there's no point in chugging any further along.)
|
3
|
https://tex.stackexchange.com/users/416
|
2496
| 1,734 |
https://tex.stackexchange.com/questions/2495
|
27
|
I want to completely separate formatting and content creation. The articles I will write are all plain prose that requires minimum or zero LaTeX formatting.
Also, the text file doesn't have the **one-blank-line gap** between paragraphs. They are separated only by one linefeed.
**SUMMARY:**
Is there a way to import it roughly like:
```
\begin{document}
\importtextfile{my_essay.txt}
\end{document}
```
Can I also tell LaTeX to interpret the *single* linefeeds as *new paragraph*?
|
https://tex.stackexchange.com/users/791
|
How do I import a text file so that it becomes the body text of my LaTeX document?
| true |
Sure. TeX inserts (by default) `^^M` at the end of each line. So something like
```
\begingroup
\catcode`\^^M\active
\let ^^M\par%
\input{youressay.txt}%
\endgroup%
```
should do it, although I didn't test.
Edit: I just remembered the `\obeylines` macro which does exactly what I wrote above.
```
\begingroup
\obeylines
\input{youressay.txt}%
\endgroup%
```
|
31
|
https://tex.stackexchange.com/users/647
|
2497
| 1,735 |
https://tex.stackexchange.com/questions/2498
|
7
|
**The Context:**
I am writing a multi-chapter scientific report with many numbered hypotheses.
I have created a custom hypothesis environment in the preamble:
`\newtheorem{hypothesis}{Hypothesis}[chapter]`
An example of a hypothesis in the body of the document is:
```
\begin{hypothesis}
\label{HXonY}
There is a positive relationship between X and Y.
\end{hypothesis}
```
**My Question:**
How can I create a custom List of Hypotheses like a Table of Contents that lists:
* the hypothesis number (e.g.,1.1, 1.2, 2.1, etc.)
* the text of each hypothesis in the document
* the page number where it is recorded
E.g.,
```
List of Hypotheses
1.1 There is a positive relationship between X and Y .................. 32
1.2 There is a negative relationship between something and Z........... 43
```
etc.
|
https://tex.stackexchange.com/users/151
|
Custom list of hypotheses in table of contents format
| false |
The `ntheorem` package can do this:
```
\listtheorems{hypothesis}
```
|
3
|
https://tex.stackexchange.com/users/627
|
2499
| 1,736 |
https://tex.stackexchange.com/questions/2498
|
7
|
**The Context:**
I am writing a multi-chapter scientific report with many numbered hypotheses.
I have created a custom hypothesis environment in the preamble:
`\newtheorem{hypothesis}{Hypothesis}[chapter]`
An example of a hypothesis in the body of the document is:
```
\begin{hypothesis}
\label{HXonY}
There is a positive relationship between X and Y.
\end{hypothesis}
```
**My Question:**
How can I create a custom List of Hypotheses like a Table of Contents that lists:
* the hypothesis number (e.g.,1.1, 1.2, 2.1, etc.)
* the text of each hypothesis in the document
* the page number where it is recorded
E.g.,
```
List of Hypotheses
1.1 There is a positive relationship between X and Y .................. 32
1.2 There is a negative relationship between something and Z........... 43
```
etc.
|
https://tex.stackexchange.com/users/151
|
Custom list of hypotheses in table of contents format
| false |
You may use the [thmtools](http://www.ctan.org/tex-archive/help/Catalogue/entries/thmtools.html) package (note the different syntax for creating new theorems).
```
\documentclass{book}
\usepackage{amsthm}
\usepackage{thmtools}
\declaretheorem[numberwithin=chapter]{hypothesis}
\declaretheorem[numberwithin=chapter]{theorem}
\begin{document}
\renewcommand{\listtheoremname}{List of Hypotheses}
\listoftheorems[ignoreall,show={hypothesis}]
\chapter{foo}
\begin{hypothesis}[X-Y-relationship]
There is a positive relationship between X and Y.
\end{hypothesis}
\begin{theorem}
Some text.
\end{theorem}
\end{document}
```
|
2
|
https://tex.stackexchange.com/users/510
|
2500
| 1,737 |
https://tex.stackexchange.com/questions/2160
|
24
|
How do I make theorems and equations share numbering? The default numbering system goes like this:
>
> Theorem 1. Blah blah blah...
>
>
> 1=0+1 (1)
>
>
> Theorem 2. More blahs...
>
>
> Theorem 3. No more blahs...
>
>
> 2=1+1 (2)
>
>
>
The numbers in the parenthesis are equation numbers. How do you change the above into this:
>
> Theorem 1. Blah blah blah...
>
>
> 1=0+1 (2)
>
>
> Theorem 3. More blahs...
>
>
> Theorem 4. No more blahs...
>
>
> 2=1+1 (5)
>
>
>
I am using ntheorem package, but couldn't figure out how. Would I need to use a different package?
|
https://tex.stackexchange.com/users/1000
|
How to Make Theorems and Equations Share Numbering
| false |
Here's a solution using the [thmtools](http://www.ctan.org/tex-archive/help/Catalogue/entries/thmtools.html) package in addition to ntheorem.
```
\documentclass{article}
\usepackage{ntheorem}
\usepackage{thmtools}
\declaretheorem[numberlike=equation]{theorem}
\begin{document}
\begin{equation}
a^2 + b^2 = c^2
\end{equation}
\begin{theorem}
Some text.
\end{theorem}
\end{document}
```
|
3
|
https://tex.stackexchange.com/users/510
|
2501
| 1,738 |
https://tex.stackexchange.com/questions/422
|
100
|
Often in my papers I want to mention theorems in the introduction that are introduced in more detail and proved in a later section.
I'd like to include the statement of these theorems twice over, each time numbered as the theorem would naturally appear in its later section.
My current solution (using amsthm) is, e.g.
```
%(in the introduction)
\newtheorem*{thm:associativity}{Theorem \ref{thm:associativity}}
\begin{thm:associativity}
Lorem ipsum ...
\end{thm:associativity}
%(in a later section)
\begin{thm}
\label{thm:associativity}
Lorem ipsum ...
\end{thm}
```
>
> Can anyone think of a cleaner solution?
>
>
>
|
https://tex.stackexchange.com/users/77
|
How do I repeat a theorem number?
| false |
What about the thmtools bundle? Check out page 6 of [the guide](http://mirrors.ctan.org/macros/latex/contrib/thmtools/doc/thmtools-manual.pdf): there's a 'restatable' environment.
|
40
|
https://tex.stackexchange.com/users/704
|
2502
| 1,739 |
https://tex.stackexchange.com/questions/265
|
180
|
How can I make text that is larger than the size of the output of `{\Huge ...}`?
I would like to be able to make text arbitrarily large (even if that is done by some suboptimal scaling routine).
|
https://tex.stackexchange.com/users/136
|
Fonts larger than \Huge?
| false |
In your class add:
```
%% Define a HUGE
\newcommand\HUGE{\@setfontsize\Huge{38}{47}}
```
|
22
|
https://tex.stackexchange.com/users/963
|
2503
| 1,740 |
https://tex.stackexchange.com/questions/2505
|
22
|
I'm looking for a nice font to use for my `\url{...}`s that goes well with Palatino. Courier does not look good at all. It's much too light. Helvetica (scaled .92) looks pretty good, but the `~` looks bad, raised so high.
None of [these](http://www.tug.dk/FontCatalogue/typewriterfonts.html) fonts looked very good to me, but I'm no designer so I'm sure my opinion could be changed if others think one of those looks good.
|
https://tex.stackexchange.com/users/647
|
What is a good font for URLs to go with Palatino for the main text?
| true |
A sans serif font that blends well with Palatino (and is freely available) is Bera Sans:
```
\usepackage[scaled=0.86]{berasans}
```
URLs are often typeset in a monospaced font. Probably anything is better than Courier; I recommend Inconsolata:
```
\usepackage[scaled=1.03]{inconsolata}
```
(The specified scale factors will adapt the x-height of the respective font to that of the Palatino.)
EDIT: The Myriad font and its Open Type incarnation Myriad Pro, which are not freely available, are even better sans serif matches for Palatino. The files (excluding the actual font files) necessary to use Myriad with LaTeX can be found [here](http://home.vrweb.de/~was/fonts.html).
|
16
|
https://tex.stackexchange.com/users/510
|
2506
| 1,741 |
https://tex.stackexchange.com/questions/1116
|
2
|
I have installed the most recent version of [Eclipse](http://www.eclipse.org) (version 1.3.0.20100617-0521, build id 20100617-1415) and am trying to install the [TeXlipse](http://texlipse.sourceforge.net) plugin. I've followed the [installation guide](http://texlipse.sourceforge.net/manual/installation.html) thoroughly (although in my build of Eclipse the option was called "Install new software..." instead of "Software Updates/Find and install", but I assume that's because their screenshots are old...) and the installation seems to have gone through fine - no errors, and the Help/About pages suggest that TeXlipse (version 1.4) is installed and working.
However, there are no configuration options available, so I can't follow [step 2 of the installation guide](http://texlipse.sourceforge.net/manual/configuration.html), and when I try to open a \*.tex document my old tex editor (TeXWorks) opens it instead.
**What am I doing wrong here?**
|
https://tex.stackexchange.com/users/223
|
TeXlipse installation problems
| false |
Well I've tried just now.
Yeap the screenshots are old. I have added the repository, clicked on the TeXlipse and went throught the installation (downaloding, confirming unsigned content etc.)
Upto the part where Ecplipse suggest to restart itself. Choose to restart eclipse.
After the restart the options are available in the "Window -> Preferences -> Texlipse" You can use the filter in the preferences dialog to search for "Tex" and texlipse shows up.
This is tested with "Version: 3.5.2" of eclipse.
|
1
|
https://tex.stackexchange.com/users/137
|
2510
| 1,743 |
https://tex.stackexchange.com/questions/2505
|
22
|
I'm looking for a nice font to use for my `\url{...}`s that goes well with Palatino. Courier does not look good at all. It's much too light. Helvetica (scaled .92) looks pretty good, but the `~` looks bad, raised so high.
None of [these](http://www.tug.dk/FontCatalogue/typewriterfonts.html) fonts looked very good to me, but I'm no designer so I'm sure my opinion could be changed if others think one of those looks good.
|
https://tex.stackexchange.com/users/647
|
What is a good font for URLs to go with Palatino for the main text?
| false |
If you're happy with `ttfamily` for typesetting `\url`'s, you might like LuxiMono. It is, dare I say it, Palatino's identical twin cast in `tt` typeface.
```
\usepackage[scaled]{luximono} % equivalent to [scaled=0.87]
```
|
9
|
https://tex.stackexchange.com/users/416
|
2511
| 1,744 |
https://tex.stackexchange.com/questions/2504
|
20
|
Is there a way to emulate beamer blocks, e.g., alert/example, in
ordinary pdflatex in article documents? Is there a pure tikz way of
doing this?
|
https://tex.stackexchange.com/users/1018
|
beamer blocks in ordinary article-style document
| false |
It is relatively easy to reproduce similar boxes using TikZ in a non-beamer document. For example, [see here](http://www.texample.net/tikz/examples/boxes-with-text-and-math/). Do you really need it to look exactly the same as in beamer? If so, you can just look at how it is implemented within beamer; I think it is defined either in `beamerbaselocalstructure.sty` or `beamerinnerthemeinmargin.sty`.
|
4
|
https://tex.stackexchange.com/users/737
|
2512
| 1,745 |
https://tex.stackexchange.com/questions/163
|
86
|
Is there a program equivalent to lint for LaTeX? (lint checks C code for syntax errors and possible mistakes.)
|
https://tex.stackexchange.com/users/93
|
Is there a program equivalent to lint for LaTeX?
| false |
Below is a link to a package that provides style checking for latex source files.
<http://www.cs.umd.edu/~nspring/software/style-check-readme.html>
It will find common latex typos (e.g. " instead of ``) rather than overt syntax problems. It also comes with a set of rules to detect common grammar mistakes.
I used it (with some modifications to the style rules) on my thesis. I found it most useful to enforce my own spelling rules and standardize some latex constructions.
It's pretty easy to customize, which makes it handy; though I haven't used the other suggestions so I don't know how easy they are to customize.
|
5
|
https://tex.stackexchange.com/users/474
|
2513
| 1,746 |
https://tex.stackexchange.com/questions/2515
|
103
|
Is there any source where I can find the required fields in my bibliography file to refer to a chapter within a book? I found @inbook, but I cannot find the fields (author=, chapter=... ). In general it would be nice to know what are all the possible fields for each type of reference i.e. @article, @book, @unpublished and so forth.
|
https://tex.stackexchange.com/users/888
|
How to cite chapter in book?
| false |
For the various fields, I usually check [the BibTeX article](http://en.wikipedia.org/wiki/BibTeX) in Wikipedia. I believe you want `@inbook` to cite a chapter. Normally, I'll just write `\cite[Chapter~5]{foo}`, though.
From the Wikipedia link, the required fields for `@inbook` are: author/editor, title, chapter/pages, publisher, year and the optional fields are volume, series, address, edition, month, note, key.
|
20
|
https://tex.stackexchange.com/users/647
|
2516
| 1,747 |
https://tex.stackexchange.com/questions/2440
|
19
|
I'm using `fancyhdr`package for headings and footers. I have defined left-header as a big image, and I want to vertically align (to the top or to the center, the default is to the bottom) the text from the right-header. How can I do that?
```
\usepackage{fancyhdr}
\pagestyle{fancy}
\lhead{\includegraphics[height=21mm]{some_fancy_logo.pdf}}
\chead{}
\rhead{I want to vertically align THIS text}
```
|
https://tex.stackexchange.com/users/375
|
How to vertically align headers/footers in fancyhdr package?
| false |
```
\documentclass{article}
\usepackage[demo]{graphicx}
\usepackage{fancyhdr}
\pagestyle{fancy}
\lhead{\raisebox{-0.5\height}{\includegraphics[height=21mm]{some_fancy_logo.pdf}}}
\chead{}
\rhead{I want to vertically align THIS text}
\begin{document}
abc
\end{document}
```
And don't ignore the warning of `fancyhdr`:
```
Package Fancyhdr Warning: \headheight is too small (12.0pt):
Make it at least 59.75078pt.
```
Use `\headheight=22mm` or something like this.
|
11
|
https://tex.stackexchange.com/users/2388
|
2517
| 1,748 |
https://tex.stackexchange.com/questions/2515
|
103
|
Is there any source where I can find the required fields in my bibliography file to refer to a chapter within a book? I found @inbook, but I cannot find the fields (author=, chapter=... ). In general it would be nice to know what are all the possible fields for each type of reference i.e. @article, @book, @unpublished and so forth.
|
https://tex.stackexchange.com/users/888
|
How to cite chapter in book?
| true |
I think the best policy is never to talk of chapter numbers in the reflist at all, and move talk of chapter numbers, on the few occasions they are needed, to the citation in the main text. But of course you can't always choose. So, if you *must* use a particular Bibtex style that uses chapters, then include them in your `*.bib` files, and avoid Bibtex styles that allow you to refer to chapter numbers in the reference list whenever you can.
Notes on citation style
=======================
Citation styles vary, but IMO the cleanest policy is the following:
* Do not refer to chapters in the reference list (i.e., what Bibtex calls the bibliography, but the `{thebibliography}` environment calls the *References* section/chapter), and refer only to page numbers in references for articles in journals and collected articles;
* Citations of chapters and page numbers within works cited in the reflist should consist of the identifier of the work cited in the reflist, together with the specification of the part of the work of interest;
* Volume numbers are trickier... I could say more, but for the sake of brevity, I won't.
This policy is followed by *The Chicago Manual of Style* and the *Publication Manual of the APA*, and is supported by the [`{natbib}`](http://ctan.org/pkg/natbib) and `{apalike}` Bibtex styles.
Example
=======
**Reflist**
* Boolos, G., 1971/1998. 'The iterative conception of set'. *In* R.C. Jeffrey (ed.), *Logic, Logic, and Logic*, Harvard University Press, pp. 13-29. First published, *The Journal of Philosophy*, 68:215-232.
* Johnstone, P.T., 1987. *Notes on Logic and Set Theory*. Cambridge University Press.
(We are interested in chapter one of the collected articles of George Boolos, a fact we never mention, since we have the title of the chapter and the page numbers in the reflist. We are interested in three chapters of Peter Johnstone's work, which we don't mention in the reflist, but do in the citation in the main text).
**Citations in main text**
The cumulative hierarchy had a long prior history, but was not taken seriously as the intellectual foundation of Zermelo-Fränkel set theory until the landmark work of Boolos (1971). In the following, we shall assume the treatment of ZFC given by Johnstone (1987, chapters 5-7).
|
36
|
https://tex.stackexchange.com/users/175
|
2518
| 1,749 |
https://tex.stackexchange.com/questions/429
|
92
|
I sometimes have to present on other people's equipment, such as machines running stripped down Linux distributions, presentation servers with a bare-bones PDF viewer running in a virtual machine, or a Windows box with a heavily locked-down Adobe Reader (e.g. with JavaScript disabled). So far I've tried to avoid doing anything fancy with `beamer`. But for some concepts, animations seem necessary.
>
> How can one create PDF presentations in LaTeX, preferably with `beamer`, which include animations that work on most PDF viewers?
>
>
>
Ideally, if the animations don't work then they should degrade gracefully. For instance, the first and last frame could still be shown.
`Beamer` has `\animate` but this requires the PDF viewer to support showing several slides in succession, without manual intervention. [Jens Nöckel suggests using external movies](http://www.uoregon.edu/~noeckel/PDFmovie.html), which seems even less likely to work; this relies on a viewer being available for the movie format, and that the movie viewer can be called by the PDF viewer.
Older documents suggest MetaPost or animated GIF files, which seem hacky (though I will consider them if no other alternatives exist).
Please discuss only one main approach per answer.
|
https://tex.stackexchange.com/users/132
|
Animation in PDF presentations, without Adobe Reader?
| false |
The easiest way to produce animations from image sequences (pdf, mps
[metapost], jpeg, png, jb2 with pdflatex; ps/eps, mps with latex) or
inline images (pstricks, tikz) is to use the animate package. Depending
on the option settings, poster=first or poster=last, bare-bone viewers
without JavaScript, such as Xpdf, GV or GSview will display the
corresponding animation frame. For playback, however, Adobe Reader is
indispensable. Animated Gif must be split into png or eps sequence
before embedding, because it is not supported by the PDF specification.
<http://www.ctan.org/tex-archive/macros/latex/contrib/animate/animate.pdf>
|
12
|
https://tex.stackexchange.com/users/nan
|
2519
| 1,750 |
https://tex.stackexchange.com/questions/2520
|
15
|
Is there a difference between
```
A\hskip 1pt \hskip 0pt plus 1fil B
```
and
```
A\hskip 1pt plus 1fil B
```
?
Are these two glues the same in terms of spacing and (line-)breaking? Or do they just add up, as I assume?
|
https://tex.stackexchange.com/users/243
|
Difference between one glue and two glues after each other
| false |
They are mostly the same. The difference comes if you put a `\unskip` before `B`. In the first case, there will be `1pt` of space between the A and B. In the second case, there will be no space.
|
3
|
https://tex.stackexchange.com/users/647
|
2522
| 1,751 |
https://tex.stackexchange.com/questions/2520
|
15
|
Is there a difference between
```
A\hskip 1pt \hskip 0pt plus 1fil B
```
and
```
A\hskip 1pt plus 1fil B
```
?
Are these two glues the same in terms of spacing and (line-)breaking? Or do they just add up, as I assume?
|
https://tex.stackexchange.com/users/243
|
Difference between one glue and two glues after each other
| true |
For spacing and line breaking rules, two glue nodes are exactly the same as one glue except that the algorithms run a little slower. So, the distinction only matters if
* you do node processing with `\unskip` (or using luatex)
* when the absolute of one of the combined parts would be larger than `\maxdimen` (in which case you cannot specify the single glue without an error)
* when you parse the output of `\showbox` somehow.
|
15
|
https://tex.stackexchange.com/users/89
|
2523
| 1,752 |
https://tex.stackexchange.com/questions/2215
|
7
|
I would like to have a scrolling marquee across the entire width of a page. I am intending this for a Beamer presentation, but the solution doesn't necessarily have anything to do with beamer. I would rather not use Beamer's built-in `\animate` command because (1) I would like to have control over the frame rate; and (2) I would like the slide to appear as a single page in the PDF. I therefore started playing around with the `animate` package for PDF animations. The tricky part is that I would like to have the marquee scroll *on top of* some other text/images on the slide. My first instinct was to do something like this:
```
\begin{amimateinline}[autoplay,
begin={\begin{tikzpicture}[overlay]},
end={\end{tikzpicture}}]{10}
\multiframe{20}{rmarqueexpos=1.0+-0.05}{
\node at ($(current page.west)!\rmarqueexpos!(current page.east)$) {The marquee text!};
}
\end{animateinline}
```
The problem with this approach is that `animateinline` apparently expects its contents to be a non-zero-width box, and `tikzpicture` overlays are not apparently typeset as a box (I'm assuming they act like floats).
My second, more successful approach was to put the `animateinline` inside of an overlaid node that is centered on `(current page.center)`. The difficulty there is that `animateinline` apparently also expects each frame of the animation to be the same width. Therefore, I have to pad the right and left sides of the marquee with whitespace to make it work.
Here is the closest I have gotten so far:
```
\documentclass{article}
\pagestyle{empty}
\usepackage{tikz}
\usepackage{animate}
\begin{document}
\LARGE Lorem ipsum dolor sit amet, consectetur adipiscing
elit. Vivamus nibh nibh, porttitor eu porttitor ac, tincidunt ut
massa. Nullam quis semper erat. Ut non massa eu est aliquam suscipit
at vel mi. Fusce commodo porttitor metus rhoncus bibendum. Ut
fermentum pharetra lacus, id ornare dolor pretium tempor. Sed
scelerisque mollis nisi quis malesuada. Mauris vitae nisi vitae
augue gravida ultrices et nec metus. Quisque egestas, libero vel
tempor dignissim, dolor tellus lacinia felis, nec imperdiet tortor
ipsum dapibus ipsum. Quisque sodales eleifend molestie. Duis ac
tortor velit. Nullam non justo a nunc tempus dignissim. Praesent
condimentum ullamcorper mi, ut molestie odio placerat at. Duis
consectetur consequat luctus. Nullam neque sem, sodales non porta
ut, commodo vitae justo. Aenean eu facilisis quam. Sed dui nulla,
venenatis a ullamcorper ac, blandit non dolor.
\begin{tikzpicture}[remember picture,overlay]
\node at (current page.center) {
\begin{animateinline}[autoplay]{10}
\multiframe{20}{rmarqueexpos=1.0+-0.05}{
\setbox0=\hbox{\scalebox{2}{\Huge The marquee text!}}
\dimen0=\wd0 % The width of the marquee
\dimen1=\textwidth %% \dimen1 will be the lefthand padding
\advance\dimen1 by \dimen0
\dimen2=\dimen1 %% \dimen2 will be the righthand padding
\advance\dimen2 by -\rmarqueexpos\dimen1
\advance\dimen2 by -\dimen0
\hspace*{-\dimen0}\hspace*{\rmarqueexpos\dimen1}\box0\hbox to \dimen2{}
}
\end{animateinline}
};
\end{tikzpicture}
\end{document}
```
The problem with that is that the margins are a bit off (probably due to my hacked padding).
**Edit:** I solved this problem: It was just an off-by-one error in the `multiframe` for-loop. See my answer for details.
What am I doing wrong (besides being crazy enough to try and do an animated marquee in TeX)?
Is there a better way to do this?
|
https://tex.stackexchange.com/users/737
|
Animated scrolling marquee across an entire page.
| true |
try this (edited, see comment below):
```
\documentclass{article}
\usepackage{tikz}
\usepackage{animate}
\newlength\diffPos %diff between two positions
\def\markeetext{\scalebox{2}{\Huge+++ The marquee text +++}}
\begin{document}
\LARGE Lorem ipsum dolor sit amet, consectetur adipiscing
elit. Vivamus nibh nibh, porttitor eu porttitor ac, tincidunt ut
massa. Nullam quis semper erat. Ut non massa eu est aliquam suscipit
at vel mi. Fusce commodo porttitor metus rhoncus bibendum. Ut
fermentum pharetra lacus, id ornare dolor pretium tempor. Sed
scelerisque mollis nisi quis malesuada. Mauris vitae nisi vitae
augue gravida ultrices et nec metus. Quisque egestas, libero vel
tempor dignissim, dolor tellus lacinia felis, nec imperdiet tortor
ipsum dapibus ipsum. Quisque sodales eleifend molestie. Duis ac
tortor velit. Nullam non justo a nunc tempus dignissim. Praesent
condimentum ullamcorper mi, ut molestie odio placerat at. Duis
consectetur consequat luctus. Nullam neque sem, sodales non porta
ut, commodo vitae justo. Aenean eu facilisis quam. Sed dui nulla,
venenatis a ullamcorper ac, blandit non dolor.
\begin{tikzpicture}[remember picture, overlay]
\node
at (current page.center) {%
\begin{animateinline}[autoplay,loop]{5}
\setlength{\diffPos}{%
(\textwidth+\widthof\markeetext)*\real{0.025}}%
\multiframe{40}{dTextPos=\textwidth+-\diffPos}{%
\makebox[\textwidth][l]{%
\hspace{\dTextPos}%
\makebox[0pt][l]\markeetext%
}%
}%
\end{animateinline}
};
\end{tikzpicture}
\end{document}
```
Alexander
|
3
|
https://tex.stackexchange.com/users/nan
|
2524
| 1,753 |
https://tex.stackexchange.com/questions/2521
|
8
|
How do I write some text in the bottom-right hand corner of a rectangle so that the text is as far to the right and down as possible without exceeding the bounds of the rectangle?
The rectangle is defined using `fit`, like so:
```
\node[draw=black,inner sep=2mm,thick,rectangle,fit=(a) (b)] {};
```
|
https://tex.stackexchange.com/users/512
|
Text in corner of tikz rectangle
| true |
While driving up from Wales to London, I realised that the `tabular` was redundant for the question as asked, and when I arrived, I found that @Caramdir had justly taken me to task. Here is a completely new answer, which addresses a bit more than the original question.
---
For a single line of text, all you need to do is align the **node**:
```
\begin{tikzpicture}
\node at (0,0) (a) {a};
\node at (5,5) (b) {b};
\node[draw=black,inner sep=2mm,thick,rectangle,fit=(a) (b)] (x) {};
\node[anchor=south east,inner sep=1pt] at (x.south east)
{$ H \Psi = \nabla \Psi $};
\end{tikzpicture}
```
---
For multiple lines, things get a bit more elephantine, though the next release of Tikz will have, I believe, constructs like `align=right` for text. Meanwhile, one way is to use a `tabular`:
```
\begin{tikzpicture}
\node at (0,0) (a) {a};
\node at (5,5) (b) {b};
\node[draw=black,inner sep=0pt,thick,rectangle,fit=(a) (b)] (x) {};
\node[anchor=south east] at (x.south east) {%
\begin{tabular}{r}
$ H \Psi = \nabla \Psi $\\
$ J \Phi = \nabla \Phi $
\end{tabular}
};
\end{tikzpicture}
```
You may want to tweak the tabular parameters to alter the space between the right/bottom of the text
and the corner of the rectangle...
|
8
|
https://tex.stackexchange.com/users/344
|
2525
| 1,754 |
https://tex.stackexchange.com/questions/2393
|
18
|
Is there a way of testing if a `\pageref` is the current page? For example, in the next code:
```
\newcommand\figureref[1]{%
Figure~\ref{#1} (p.~\pageref{#1})
}
```
I would like to eliminate the `(p.~\pageref{#1})` if the referenced figure is on the same page as the reference. I tried using the `varioref` package and but couldn't tweak it to the desired behavior.
**UPDATE:**
Going back to the original question of *testing for current page*, this almost worked:
```
\newcounter{cPage}
\newcommand\figureref[1]{%
Figure~\ref{#1}%
\setcounter{cPage}{\value{page}}\addtocounter{cPage}{1}%
\ifthenelse{\value{cPage}=\pageref{#1}}{}{(p.~\pageref{#1})}%
}
```
But, the page value is not very consistent. Sometimes it changes in the middle of a page. The offset varies, between -1/1 and +1/2, and I can't seem to find any logic behind it.
|
https://tex.stackexchange.com/users/877
|
Testing for current page
| true |
If you want to compare a \pageref with the current page you should use \pageref for the current page too by setting an internal label. E.g.:
```
\documentclass{article}
\usepackage{ifthen}
\newcounter{cPage}
\newcommand\figureref[1]{%
Figure~\ref{#1}%
\refstepcounter{cPage}\label{current\thecPage}%
\ifthenelse{\equal{\pageref{#1}}{\pageref{current\thecPage}}}%
{}{~(p.~\pageref{#1})}}%
\begin{document}
\begin{figure}
\caption{blub}\label{bla}
\end{figure}
\figureref{bla} \newpage \figureref{bla} abc
\end{document}
```
(varioref is setting such internal labels too, and I'm rather certain that one could get the wanted behaviour with varioref but I don't have the time to look it up).
Your \spacefactor error is probably due to a missing \makeatletter.
|
13
|
https://tex.stackexchange.com/users/2388
|
2526
| 1,755 |
https://tex.stackexchange.com/questions/2514
|
7
|
This is a bit of a long post, so apologies in advance. I would like to nest xymatrices in `Xy-pic` so that entire xymatrices would be treated as single entries in another xymatrix.
I tried the obvious method of putting an xymatrix as an entry in another, which didn't work.
I then did some search and read a few manuals, and found one method which only deals with two matrices side by side, with the starting point of the arrows not at the centers of the two matrices, as in the code below:
```
\[
\xymatrix{
& R_1 \ar[r] \ar[d] & P \\
R_2 \ar[r] \ar[d] & B & \\
Q &&
} \qquad\rightarrow\qquad
\xymatrix{a}
\]
```
I then found on a thread on the Xy official site someone asking the same question as me; and he was told to use xygraph, and that there is an xymovie about this type of construction.
I couldn't find the movie; and couldn't find much information on how to use xygraph either ( the section in Xy-pic RM didn't include many examples).
Eventually I tried this:
```
\xy
\xygraph{!M
\xymatrix{
& R_1 \ar[r] \ar[d] & P \\
R_2 \ar[r] \ar[d] & B & \\
Q &&
} ([u]X : ?, [l]Y : ?)
}
\endxy
```
which still didn't do what I wanted.
So is there a way to nest xymatrices? Or maybe I need to use some other graphics packages? Thank you very much for you help! (And your time for reading this.)
|
https://tex.stackexchange.com/users/1025
|
How to nest xymatrix in Xy-pic
| false |
You could use several `xy` matrices inside an `xy` environment and refer to them. Here's an example, using pieces of your code, which prints two `xy` matrices and connects them by an arrow:
```
\documentclass{article}
\usepackage[matrix,arrow]{xy}
\begin{document}
\[
\xy
\xymatrix"m"{
& R_1 \ar[r] \ar[d] & P \\
R_2 \ar[r] \ar[d] & B & \\
Q &&
}
\POS+(42,0)
\xymatrix{
\ar@{<-}["m"rr] A \ar[r] & B
}
\endxy
\]
\end{document}
```
The first matrix is named `"m"`. The command `\ar@{<-}["m"rr]`in the second matrix draws an arrow from the current point to the node `P` of the matrix `"m"` using the relative positioning `rr` from the upper left corner. I used `@{<-}` to revert the arrow.
Output:
This way you could use several matrices and connect them by arrows. Regarding actual nesting: the `xy-pic` reference manual says:
>
> Matrix nesting is not safe.
>
>
>
|
3
|
https://tex.stackexchange.com/users/213
|
2529
| 1,756 |
https://tex.stackexchange.com/questions/2514
|
7
|
This is a bit of a long post, so apologies in advance. I would like to nest xymatrices in `Xy-pic` so that entire xymatrices would be treated as single entries in another xymatrix.
I tried the obvious method of putting an xymatrix as an entry in another, which didn't work.
I then did some search and read a few manuals, and found one method which only deals with two matrices side by side, with the starting point of the arrows not at the centers of the two matrices, as in the code below:
```
\[
\xymatrix{
& R_1 \ar[r] \ar[d] & P \\
R_2 \ar[r] \ar[d] & B & \\
Q &&
} \qquad\rightarrow\qquad
\xymatrix{a}
\]
```
I then found on a thread on the Xy official site someone asking the same question as me; and he was told to use xygraph, and that there is an xymovie about this type of construction.
I couldn't find the movie; and couldn't find much information on how to use xygraph either ( the section in Xy-pic RM didn't include many examples).
Eventually I tried this:
```
\xy
\xygraph{!M
\xymatrix{
& R_1 \ar[r] \ar[d] & P \\
R_2 \ar[r] \ar[d] & B & \\
Q &&
} ([u]X : ?, [l]Y : ?)
}
\endxy
```
which still didn't do what I wanted.
So is there a way to nest xymatrices? Or maybe I need to use some other graphics packages? Thank you very much for you help! (And your time for reading this.)
|
https://tex.stackexchange.com/users/1025
|
How to nest xymatrix in Xy-pic
| false |
Your second example wouldn't compile because you shouldn't add the `\xymatrix` command after `M`. The documentation states that
>
> `M<matrix>` will be insert the result of `\xymatrix<matrix>` as the node
>
>
>
So
```
\xy
\xygraph{!M{
& R_1 \ar[r] \ar[d] & P \\
R_2 \ar[r] \ar[d] & B & \\
Q &&
} ([u]X : ?, [l]Y : ?)
}
\endxy
```
will compile. On the other hand, reading the manual, it states that for an `\xymatrix`
>
> the entire matrix is an object itself with reference point its top left entry
>
>
>
arrows going to and from it won't center correctly. Which can be seen if you compile the above code.
|
1
|
https://tex.stackexchange.com/users/119
|
2531
| 1,757 |
https://tex.stackexchange.com/questions/2530
|
4
|
I have been using my computer to generating pdf files from latex file by Winshell (or lyx), but the characters (or images) in the pdf files generated on my computer looks always much worse than the pdf files other people generate on their computers. Could anyone tell me what the problem is, or how to improve the quality of pdf file to be generated on the my computer? (I am using the newest version of Adobe Reader, and the miktek files are almost complete.)
|
https://tex.stackexchange.com/users/1028
|
Image quality of pdf file generated from latex
| false |
[This FAQ answer](http://texfaq.org/FAQ-dvips-pdf) discusses a number of reasons why the PDF quality may suffer.
The [testflow](http://www.ctan.org/pkg/testflow) package can also help with diagnosing such problems.
If you post a [small example](https://tex.meta.stackexchange.com/questions/228/ive-just-been-told-i-have-to-write-a-minimal-example-what-is-that) of latex you are compiling and you also put resulting PDF online somewhere ([drop.io](http://drop.io) for example) then we can probably help further.
|
3
|
https://tex.stackexchange.com/users/627
|
2533
| 1,758 |
https://tex.stackexchange.com/questions/2527
|
22
|
Is there any convenient package/way to link photograph credits with a figure, and then generate a kind of `\listoffigures`?
Have you any other solution than generating the `.lof` temporary file, and edit it manually?
|
https://tex.stackexchange.com/users/896
|
Photograph credits in LaTeX
| false |
**Attempt #1:** Use `tocloft`
With the [tocloft](https://ctan.org/pkg/tocloft?lang=en) package you can create your own *List of ...* list. [Here](http://texblog.wordpress.com/2008/07/13/define-your-own-list-of/) is a nice tutorial. You can define a `\PictureAuthor{John Doe}` command to issue in each figure caption.
However, in the lists of figures there will be no links to the authors (as they will be lested in a separate page).
**Attempt #2":** Use `bibtopic`
You can use the [bibtopic](http://ctan.org/tex-archive/macros/latex/contrib/bibtopic/) package to generate a reference list only for the authors, and use the `cite{John Doe}` command in each picture caption.
Using the `backref` option of the `hyperref` package, in the list of references (generated by `\bibliography{}`), for each of the referenced authors a list of the picture will be appended.
|
4
|
https://tex.stackexchange.com/users/177
|
2535
| 1,760 |
https://tex.stackexchange.com/questions/2528
|
9
|
I want to use symbols from the [`phaistos`](http://ctan.org/pkg/phaistos) package as "numbers"
This means that I want to type something like:
```
\documentclass{amsart}
\usepackage{phaistos}
\newcommand{\lo}{\text{\PHbee}}
\newcommand{\loo}{\text{\PHboomerang}}
\begin{document}
\[
\lo + \loo
\]
\end{document}
```
and have it come out looking semi-decent. Since the symbols in this package are large text symbols, they do no go below the bottom line that text is sitting on. To make the math look correct, they would need to go below the line. I think if I made them large math symbols, this would center them the way I want.
Thoughts on a good way to do this?
|
https://tex.stackexchange.com/users/867
|
New Large Math Symbol
| false |
You could use the command [`\raisebox`](http://texblog.net/help/latex/ltx-302.html) with negative height to lower your symbols:
```
\documentclass{amsart}
\usepackage{phaistos}
\newcommand*{\lo}{\raisebox{-.6ex}{\PHbee}}
\newcommand*{\loo}{\raisebox{-1ex}{\PHboomerang}}
\begin{document}
\[
\lo + \loo = ?
\]
\end{document}
```
Output:
Alternatively, you could use an array or a tabular environment to achieve vertical centering:
```
\newcommand*{\lo}{\begin{tabular}{@{}c@{}}\PHbee\end{tabular}}
\newcommand*{\loo}{\begin{tabular}{@{}c@{}}\PHboomerang\end{tabular}}
```
Here I used `tabular` because those symbols require text mode, otherwise I would prefer `array`. The `@{}` suppress the tabular resp. array intercolumn space, that's why the I used the `@{}c@{}` column options.
|
2
|
https://tex.stackexchange.com/users/213
|
2539
| 1,762 |
https://tex.stackexchange.com/questions/2528
|
9
|
I want to use symbols from the [`phaistos`](http://ctan.org/pkg/phaistos) package as "numbers"
This means that I want to type something like:
```
\documentclass{amsart}
\usepackage{phaistos}
\newcommand{\lo}{\text{\PHbee}}
\newcommand{\loo}{\text{\PHboomerang}}
\begin{document}
\[
\lo + \loo
\]
\end{document}
```
and have it come out looking semi-decent. Since the symbols in this package are large text symbols, they do no go below the bottom line that text is sitting on. To make the math look correct, they would need to go below the line. I think if I made them large math symbols, this would center them the way I want.
Thoughts on a good way to do this?
|
https://tex.stackexchange.com/users/867
|
New Large Math Symbol
| false |
Perhaps you can take the + and = signs from the [cow font](http://www.ntg.nl/maps/34/11.pdf). They are part of ConTeXt minimals(but not TL, as far as I could tell).
|
1
|
https://tex.stackexchange.com/users/323
|
2540
| 1,763 |
https://tex.stackexchange.com/questions/2528
|
9
|
I want to use symbols from the [`phaistos`](http://ctan.org/pkg/phaistos) package as "numbers"
This means that I want to type something like:
```
\documentclass{amsart}
\usepackage{phaistos}
\newcommand{\lo}{\text{\PHbee}}
\newcommand{\loo}{\text{\PHboomerang}}
\begin{document}
\[
\lo + \loo
\]
\end{document}
```
and have it come out looking semi-decent. Since the symbols in this package are large text symbols, they do no go below the bottom line that text is sitting on. To make the math look correct, they would need to go below the line. I think if I made them large math symbols, this would center them the way I want.
Thoughts on a good way to do this?
|
https://tex.stackexchange.com/users/867
|
New Large Math Symbol
| true |
This way does automatic centering...
```
\newcommand*{\lo}{\vcenter{\hbox{\PHbee}}}
\newcommand*{\loo}{\vcenter{\hbox{\PHboomerang}}}
```
|
8
|
https://tex.stackexchange.com/users/627
|
2542
| 1,764 |
https://tex.stackexchange.com/questions/2527
|
22
|
Is there any convenient package/way to link photograph credits with a figure, and then generate a kind of `\listoffigures`?
Have you any other solution than generating the `.lof` temporary file, and edit it manually?
|
https://tex.stackexchange.com/users/896
|
Photograph credits in LaTeX
| true |
For my thesis I made a "copyright permissions" section, using a combination of `bibunits`, `bibentry` and `cleveref`. I made a bibliography style file that displays the `copyright` field (only for this list--the main bibliography can use a normal style). You can [see the sources](http://www.levbishop.com/thesis/source) for all the details, but in the end, you enter a list like:
```
\begin{itemize}
\item \Cref{fig:coupling,fig:capnet} reproduced with permission from:\\*
\bibentry{koch_charge-insensitive_2007}.
\item \Cref{sample,schematic,fig:vrabimap,fig:extjc,fig:exp,fig:relim,%
fig:hetvsphtcnt,fig:arrows,%
fig:linecuts,fig:powsweep,fig:hirelim3,fig:wolverine}
reproduced (with altered formatting) with permission from:\\*
\bibentry{bishop_nonlinear_2009}.
\end{itemize}
```
and this produces a list like:
>
> • Figures 2.7 and 2.8 reproduced with
> permission from:
>
>
> Jens Koch, Terri M. Yu, Jay Gambetta,
> A. A. Houck, D. I. Schuster, J. Majer,
> Alexandre Blais, M. H. Devoret, S.
> M. Girvin, and R. J. Schoelkopf,
> Physical Review A 76, 042319 (2007).
>
>
> Copyright (2007) by the American
> Physical Society.
>
>
> • Figures 4.2 to 4.8 and 4.10 to 4.14
> reproduced (with altered formatting)
> with permission from:
>
>
> Lev S. Bishop, J. M. Chow, Jens Koch,
> A. A. Houck, M. H. Devoret, E.
> Thuneberg, S. M. Girvin, and R. J.
> Schoelkopf, Nature Physics 5, 105–109
> (2009).
>
>
> Copyright © 2009, Nature Publishing
> Group.
>
>
>
|
10
|
https://tex.stackexchange.com/users/627
|
2544
| 1,765 |
https://tex.stackexchange.com/questions/2541
|
64
|
I have a beamer presentation in which I have some additional slides in an appendix. The additional slides are only there in case someone asks a specific question; I won't necessarily have to use any of them.
I am using a theme that prints both the current frame number and the total number of frames on the bottom of each page. My problem is that the total number of frames includes all of the "extra" frames I have in the appendix. Let's say I have 20 "real" frames and then 5 additional frames in the appendix. The problem now is that `\inserttotalframenumber` (which is what the theme uses to print the total number of frames) returns 25. This is misleading to the audience because I may never even present any of the 5 additional frames.
The ideal behavior would be for `\inserttotalframenumber` to return 20, not 25. If I did advance to one of the appendix frames then I would like the frame to be "26/25", "27/25", and so on. How can this be done?
**Edit**:
I see that `\inserttotalframenumber` is defined in `beamerbasemisc.sty` by writing the value of the `\c@framenumber` counter to the `.aux` file at the end of the document. I guess one way to achieve my desired behavior is to do something like
```
\AtEndDocument{
\immediate\write\@auxout{\string\@writefile{nav}%
{\noexpand\headcommand{\noexpand\def\noexpand\inserttotalframenumber{\insertframenumber}}}}
}
```
on the last "real" slide of my document. That seems like a bit of a hack though. Is there a better way?
|
https://tex.stackexchange.com/users/737
|
Beamer frame numbering in appendix
| false |
You could use the standard referencing features and redefine `\inserttotalframenumber` right after `\begin{document}` (not before):
```
\renewcommand*{\inserttotalframenumber}{\pageref{lastframe}}
```
In the last frame, before your appendix, set the label:
```
\begin{frame}\label{lastframe}
...
\end{frame}
% now your appendix frames follow
```
If you set the `lastframe` label on frame 20 and let 5 frames follow, an infolines theme would show "4 / 20" and so on. The last appendix frame would show "25 / 20" like desired.
|
9
|
https://tex.stackexchange.com/users/213
|
2545
| 1,766 |
https://tex.stackexchange.com/questions/2543
|
34
|
This question is pretty much identical to [this (to the best of my knowledge) unanswered question from comp.text.tex](http://newsgroups.derkeiler.com/Archive/Comp/comp.text.tex/2009-01/msg00317.html), which, at the moment, is the top Google hit for this problem: when specifying frame labels in Beamer with the intention of using them with the `\againframe` command, LaTeX begins spitting out errors over "multiply-defined labels".
Here's a specific, compilable example to demonstrate this issue:
```
\documentclass{beamer}
\begin{document}
\begin{frame}<1>[label=firstframe]{The first frame}
\begin{itemize}
\item This is not the fourth slide
\pause
\item Ah, but now it \emph{is} the fourth slide!
\end{itemize}
\end{frame}
\begin{frame}{The second frame}
This is a boring second slide.
\end{frame}
\againframe{firstframe}
\end{document}
```
The intention here is to display the first frame's first bullet point in the first slide, then again on the third slide, and then both bullet points on the fourth slide.
LaTeX will report the following warnings when compiling this presentation:
```
LaTeX Warning: Label `firstframe<1>' multiply defined.
LaTeX Warning: Label `firstframe' multiply defined.
```
How does one remove the occurrence of these warnings, other than avoiding the use of `\againframe`?
|
https://tex.stackexchange.com/users/879
|
Multiply-defined labels warnings with frame labels in Beamer with againframe
| true |
You add a second `\pause` and use the overlay specification. Like this
```
\begin{frame}<1>[label=firstframe]{The first frame}
\begin{itemize}
\item This is not the fourth slide
\pause \pause
\item Ah, but now it \emph{is} the fourth slide!
\end{itemize} \end{frame}
\begin{frame}{The second frame}
This is a boring second slide. \end{frame}
\againframe<2-3>{firstframe}
```
Yes, the solution is a bit silly, but this has to do with how `beamer` process the `\againframe` command internally. The command is built to 'continue' a frame, not to 'repeat' a frame. (The reason that you get repeated label warnings is that every frame/overlay is labelled internally (so that the various TOC jumping around and hyperlinks work). If you label a frame, the internal labels will be `name<n>` for the n'th overlay of that frame.)
|
16
|
https://tex.stackexchange.com/users/119
|
2546
| 1,767 |
https://tex.stackexchange.com/questions/2541
|
64
|
I have a beamer presentation in which I have some additional slides in an appendix. The additional slides are only there in case someone asks a specific question; I won't necessarily have to use any of them.
I am using a theme that prints both the current frame number and the total number of frames on the bottom of each page. My problem is that the total number of frames includes all of the "extra" frames I have in the appendix. Let's say I have 20 "real" frames and then 5 additional frames in the appendix. The problem now is that `\inserttotalframenumber` (which is what the theme uses to print the total number of frames) returns 25. This is misleading to the audience because I may never even present any of the 5 additional frames.
The ideal behavior would be for `\inserttotalframenumber` to return 20, not 25. If I did advance to one of the appendix frames then I would like the frame to be "26/25", "27/25", and so on. How can this be done?
**Edit**:
I see that `\inserttotalframenumber` is defined in `beamerbasemisc.sty` by writing the value of the `\c@framenumber` counter to the `.aux` file at the end of the document. I guess one way to achieve my desired behavior is to do something like
```
\AtEndDocument{
\immediate\write\@auxout{\string\@writefile{nav}%
{\noexpand\headcommand{\noexpand\def\noexpand\inserttotalframenumber{\insertframenumber}}}}
}
```
on the last "real" slide of my document. That seems like a bit of a hack though. Is there a better way?
|
https://tex.stackexchange.com/users/737
|
Beamer frame numbering in appendix
| false |
Inspired by Stefan's answer, here is the solution up with which I ended (which rectifies the problem of using `\pageref`):
Immediately before `\appendix` I added this:
```
\makeatletter
\immediate\write\@mainaux{\string\gdef\string\inserttotalframenumbernew{\insertframenumber}}
\makeatother
```
That writes the number of the last "real" frame to the `.aux` file as the new command `\inserttotalframenumbernew`. Then, at the beginning of my document, I added this:
```
\makeatletter
\@ifundefined{inserttotalframenumbernew}{
\gdef\inserttotalframenumbernew{1}
}{}
\gdef\inserttotalframenumber{\inserttotalframenumbernew}
\makeatother
```
That redefines `\inserttotalframenumber` to be the value of `\inserttotalframenumbernew` (which is read from the `.aux`).
This still feels like a bit of a hack to me, though. It would be a lot cleaner if beamer had a macro that acted like `\pageref` but instead returned a frame number, but beamer doesn't seem to.
|
1
|
https://tex.stackexchange.com/users/737
|
2548
| 1,768 |
https://tex.stackexchange.com/questions/2547
|
27
|
I have two figure/caption related questions.
Firstly, in many textbooks, it is customary to put thin figures (along with their captions) entirely in the outer margin of the page. What is the most elegant way of doing this in LaTeX?
Secondly, for wider figures many books set the figure to be the width of the page (so spewing out into the outer margin) and then place the caption in the margin space below the figure. How can one achieve this effect in LaTeX?
|
https://tex.stackexchange.com/users/753
|
Margin Figures/Captions
| true |
You can use the the tufte-book class. It has margin figures, margin notes as well as full width environments. In general it has the general style you are looking for. It also has a fullwidth environment for larger figures - as you describe.
|
15
|
https://tex.stackexchange.com/users/963
|
2549
| 1,769 |
https://tex.stackexchange.com/questions/2550
|
9
|
Running the code:
```
\documentclass{article}
\usepackage{amsmath}
\begin{document} Test: $e^{\sum{x}}$ \end{document}
```
Dies, yet it runs just fine with the `\usepackage{amsmath}` commented out. The logs show:
```
!pdfTeX error: pdflatex (file fmex7.pfb): cannot open Type 1 font file for reading
```
Which seems to indicate a missing font. I've used amsmath quite a bit in the past and never come across the problem. A bit of googleing shows some other Debian users have had this problem but I'm not quite sure what to do here. I'm running Ubuntu 10.04 with most LaTeX packages installed.
|
https://tex.stackexchange.com/users/352
|
Amsmath has problems with $e^{\sum{x}}$
| true |
This [seems to be caused by an out-of-date `$HOME/.texmf-var` folder](http://groups.google.com/group/comp.text.tex/browse_thread/thread/771bd8f21acb8571). Simply deleting that folder should solve the problem.
(I like Ubuntu, but its TeX packages are a mess.)
|
12
|
https://tex.stackexchange.com/users/83
|
2551
| 1,770 |
https://tex.stackexchange.com/questions/2527
|
22
|
Is there any convenient package/way to link photograph credits with a figure, and then generate a kind of `\listoffigures`?
Have you any other solution than generating the `.lof` temporary file, and edit it manually?
|
https://tex.stackexchange.com/users/896
|
Photograph credits in LaTeX
| false |
While I haven't previously attempted exactly what you need (I'm in economics so have little need for photos), I have done something very similar using the ever-powerful but sometimes daunting `glossaries` package.
You can set up any number of *List of...* structures in your doc with `glossaries`, the two standards being *Glossary* and *Abbreviations*. The *List of...* structures can be formatted in a number of canned and tailored ways, including, for example, look-alike of Lev's example in his answer. If you were to attach the glossary citations (in your case, references to credits) to your figure captions or labels, then only those credits attached to figures actually appearing in your end document would be listed in your *List of Credits*.
For myself, I'm a great fan of the `glossaries` package. It's still relatively new, but that shouldn't stop it from being more widely known. I have no doubt that it would satisfy your needs. Nevertheless, it does have a bit of a learning curve, so in that respect it mightn't be as "convenient" as you might like.
|
1
|
https://tex.stackexchange.com/users/416
|
2552
| 1,771 |
https://tex.stackexchange.com/questions/2554
|
16
|
I recently created a makefile to use with my TeX documents and am quite happy with the discovery. When I create Beamer slides to use in class, I create both a set of slides and a handout to go along with them. I'd like to have a makefile that creates the slides, then changes one or two lines of the header of my TeX file (by uncommenting and commenting perhaps) to create a set of handouts (possibly by generating a new, intermediate TeX file). I'm guessing that a make file can't edit my TeX file, but that would be cool. Is it possible? Thanks!
|
https://tex.stackexchange.com/users/758
|
Changing LaTeX headers via a makefile
| false |
The way I would accomplish this would be to place the core content in one LaTeX file (say `content.tex`) and write two wrapper files (say `slides.tex` and `handouts.tex`) that incorporate `content.tex` by invoking `\input{content}`. Then you could create the appropriate targets and rules in your makefile, one to compile `slides.tex` and the other to compile `handouts.tex`
|
9
|
https://tex.stackexchange.com/users/569
|
2555
| 1,772 |
https://tex.stackexchange.com/questions/2554
|
16
|
I recently created a makefile to use with my TeX documents and am quite happy with the discovery. When I create Beamer slides to use in class, I create both a set of slides and a handout to go along with them. I'd like to have a makefile that creates the slides, then changes one or two lines of the header of my TeX file (by uncommenting and commenting perhaps) to create a set of handouts (possibly by generating a new, intermediate TeX file). I'm guessing that a make file can't edit my TeX file, but that would be cool. Is it possible? Thanks!
|
https://tex.stackexchange.com/users/758
|
Changing LaTeX headers via a makefile
| false |
The answer by las3rjock is probably the best, but if you really want `make` to change or generate your headers, there are several options. You could use [sed](http://sed.sourceforge.net/) or another stream editor to actually edit your file. Or you could use a preprocessor like [cpp](http://gcc.gnu.org/onlinedocs/cpp/) or [M4](http://gcc.gnu.org/onlinedocs/cpp/) to generate a proper file from a template.
|
2
|
https://tex.stackexchange.com/users/396
|
2556
| 1,773 |
https://tex.stackexchange.com/questions/2541
|
64
|
I have a beamer presentation in which I have some additional slides in an appendix. The additional slides are only there in case someone asks a specific question; I won't necessarily have to use any of them.
I am using a theme that prints both the current frame number and the total number of frames on the bottom of each page. My problem is that the total number of frames includes all of the "extra" frames I have in the appendix. Let's say I have 20 "real" frames and then 5 additional frames in the appendix. The problem now is that `\inserttotalframenumber` (which is what the theme uses to print the total number of frames) returns 25. This is misleading to the audience because I may never even present any of the 5 additional frames.
The ideal behavior would be for `\inserttotalframenumber` to return 20, not 25. If I did advance to one of the appendix frames then I would like the frame to be "26/25", "27/25", and so on. How can this be done?
**Edit**:
I see that `\inserttotalframenumber` is defined in `beamerbasemisc.sty` by writing the value of the `\c@framenumber` counter to the `.aux` file at the end of the document. I guess one way to achieve my desired behavior is to do something like
```
\AtEndDocument{
\immediate\write\@auxout{\string\@writefile{nav}%
{\noexpand\headcommand{\noexpand\def\noexpand\inserttotalframenumber{\insertframenumber}}}}
}
```
on the last "real" slide of my document. That seems like a bit of a hack though. Is there a better way?
|
https://tex.stackexchange.com/users/737
|
Beamer frame numbering in appendix
| false |
I've dealt with this by making two distinct pdfs and then pasting them together with the command line tool `pdftk`. Not fancy, but it works. (That said, I will be trying the solution @ESultanik ended up with if ever this comes up again.)
|
1
|
https://tex.stackexchange.com/users/93
|
2557
| 1,774 |
https://tex.stackexchange.com/questions/2554
|
16
|
I recently created a makefile to use with my TeX documents and am quite happy with the discovery. When I create Beamer slides to use in class, I create both a set of slides and a handout to go along with them. I'd like to have a makefile that creates the slides, then changes one or two lines of the header of my TeX file (by uncommenting and commenting perhaps) to create a set of handouts (possibly by generating a new, intermediate TeX file). I'm guessing that a make file can't edit my TeX file, but that would be cool. Is it possible? Thanks!
|
https://tex.stackexchange.com/users/758
|
Changing LaTeX headers via a makefile
| false |
Another way to do this is to use a macro to contain the information you wish to pass, and do something like
```
pdflatex "\def\MyHeaders{Whatever} \input MyFile.tex"
```
in your `makefile`. You'd probably include a `\providecommand*\MyHeaders{}` line in the main document to avoid awkward errors.
|
6
|
https://tex.stackexchange.com/users/73
|
2558
| 1,775 |
https://tex.stackexchange.com/questions/2541
|
64
|
I have a beamer presentation in which I have some additional slides in an appendix. The additional slides are only there in case someone asks a specific question; I won't necessarily have to use any of them.
I am using a theme that prints both the current frame number and the total number of frames on the bottom of each page. My problem is that the total number of frames includes all of the "extra" frames I have in the appendix. Let's say I have 20 "real" frames and then 5 additional frames in the appendix. The problem now is that `\inserttotalframenumber` (which is what the theme uses to print the total number of frames) returns 25. This is misleading to the audience because I may never even present any of the 5 additional frames.
The ideal behavior would be for `\inserttotalframenumber` to return 20, not 25. If I did advance to one of the appendix frames then I would like the frame to be "26/25", "27/25", and so on. How can this be done?
**Edit**:
I see that `\inserttotalframenumber` is defined in `beamerbasemisc.sty` by writing the value of the `\c@framenumber` counter to the `.aux` file at the end of the document. I guess one way to achieve my desired behavior is to do something like
```
\AtEndDocument{
\immediate\write\@auxout{\string\@writefile{nav}%
{\noexpand\headcommand{\noexpand\def\noexpand\inserttotalframenumber{\insertframenumber}}}}
}
```
on the last "real" slide of my document. That seems like a bit of a hack though. Is there a better way?
|
https://tex.stackexchange.com/users/737
|
Beamer frame numbering in appendix
| true |
I've used the following macros for this purpose:
```
\newcommand{\backupbegin}{
\newcounter{framenumberappendix}
\setcounter{framenumberappendix}{\value{framenumber}}
}
\newcommand{\backupend}{
\addtocounter{framenumberappendix}{-\value{framenumber}}
\addtocounter{framenumber}{\value{framenumberappendix}}
}
```
The bonus slides are then put between the two commands:
```
\appendix
\backupbegin
\frame{\frametitle{One more thing}}
\backupend
```
This will get you the desired numbering, too.
|
52
|
https://tex.stackexchange.com/users/nan
|
2559
| 1,776 |
https://tex.stackexchange.com/questions/2554
|
16
|
I recently created a makefile to use with my TeX documents and am quite happy with the discovery. When I create Beamer slides to use in class, I create both a set of slides and a handout to go along with them. I'd like to have a makefile that creates the slides, then changes one or two lines of the header of my TeX file (by uncommenting and commenting perhaps) to create a set of handouts (possibly by generating a new, intermediate TeX file). I'm guessing that a make file can't edit my TeX file, but that would be cool. Is it possible? Thanks!
|
https://tex.stackexchange.com/users/758
|
Changing LaTeX headers via a makefile
| true |
This is the same sort of problem as asked the *Passing parameters to a document* question; what follows is adapted from [my answer](https://tex.stackexchange.com/questions/1492/passing-parameters-to-a-document/1501#1501) there.
Have the target in your Makefile clobber a file that is `\input` by your Latex document, which should set the header. Don't be fussy about Latex convention: saving characters by using `\def` makes your makefile easier to read.
For example, let the Makefile have:
```
HEADERNAME = My Header
handout: echo "\def\hdrparam{$(HEADERNAME)}">params.tex; latex manuscript
```
Then `manuscript.tex` should begin with `\input{params.tex}`, defining `\hdrparam` for use in your header macros.
|
6
|
https://tex.stackexchange.com/users/175
|
2560
| 1,777 |
https://tex.stackexchange.com/questions/2547
|
27
|
I have two figure/caption related questions.
Firstly, in many textbooks, it is customary to put thin figures (along with their captions) entirely in the outer margin of the page. What is the most elegant way of doing this in LaTeX?
Secondly, for wider figures many books set the figure to be the width of the page (so spewing out into the outer margin) and then place the caption in the margin space below the figure. How can one achieve this effect in LaTeX?
|
https://tex.stackexchange.com/users/753
|
Margin Figures/Captions
| false |
### Figures in margins
I haven't done this for years, but when I did I used the wrapfig package. Something like
```
\documentclass[twoside]{article}
\usepackage{wrapfig,calc,lipsum}
\newlength{\marginspace}
\setlength{\marginspace}{\marginparwidth+\marginparsep}
\setlength{\wrapoverhang}{\marginspace+\columnsep}
\begin{document}
\lipsum[1]
\begin{wrapfigure}{o}{\marginspace}
\centering
\rule{4em}{4em}
\caption{Black box.}
\label{fig:bb}
\end{wrapfigure}
\lipsum[2]
\end{document}
```
### Full-width figures
This one is easier. Using the changepage package,
```
\documentclass{article}
\usepackage{changepage,lipsum,calc}
\newenvironment{wide}{%
\strictpagecheck % just in case
\begin{adjustwidth*}{0pt}{-\marginparsep-\marginparwidth}
}{%
\end{adjustwidth*}
}
\begin{document}
\lipsum
\begin{wide}
\lipsum
\end{wide}
\end{document}
```
Of course, you could also use a command instead of an environment if you prefer.
---
While the code above is fairly small (in the scheme of things) the floatrow package provides an interface around such elements (and much more).
---
**Update**: I don't personally use floatrow, so I don't know if it has its own methods for doing something like this, but here's an example of putting a margin caption beneath a wide figure:
```
\makeatletter
\newcommand\margincaption[1]{%
\par
\setbox\@tempboxa=\hbox{\parbox{\marginparwidth}{\caption{#1}}}
\@tempdima=\dimexpr\ht\@tempboxa+\dp\@tempboxa\relax
\par\null\hfill\usebox\@tempboxa\par
\vspace*{\dimexpr-\@tempdima-\baselineskip\relax}
}
\makeatother
...
\lipsum[1]
\begin{figure}[tp]
\begin{wide}
\rule{15cm}{1em}
\margincaption{A black long line with lots of explanation so it fills up some space.}
\end{wide}
\end{figure}
\lipsum[2]
\end{document}
```
|
11
|
https://tex.stackexchange.com/users/179
|
2561
| 1,778 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.