Hi, I decided to load up an old thesis i wrote a year a go in lynx to get familiar with the tools again. But i keep getting unkown floating option H. The document worked fine before, I assume something was changed during the updates?
I have created the following table with numbers and asterisks in it.
Now I would like to align the numbers by decimal points. I included the package dcolumn and defined a new column type: \newcolumntype{d}[1]{D{.}{.}{#1}}.
Then I replaced {ccccc} by {d{2.0}d{1.2}d{2.2}d{2.3}d{1.2}} and ended ...
How to influence the position of float environments like figure and table in LaTeX?
This is a general question and should collect useful answers for all users. I hope we can use this as a reference
Sorry for yet another Google quagmire. What do `<` and `>` do in terms of alignment in `tabularx`? For instance: `\begin{tabularx}{\textwidth}{>{\centering}p{3cm} c >{\centering}p{2cm} >{\centering}p{2cm} >{\centering}p{2cm} p{2cm}<{\centering}}`
I am the one who wrote the code but I completely forgot.
@Sidar You need \usepackage{float} to use the H specifier. LyX should add that automatically when you select 'Here definitely' in the float settings, but if that somehow has been removed, you can add it back in, in Document --> Settings --> LaTeX preamnble.
@Johannes_B I get the feeling the problem here is the common misunderstanding about PDFs: a lot of people see features in one viewer and think it's 'standard' behaviour
@JosephWright: I am no expert in the PDF specification, but I believe, that even Adobe does not fulfil its specification in their non - commercial products such as the Reader, so much for 'standard'
@JosephWright: Yes, I understood your statement that way ;-) I just wanted to add that not even Adobe does regard the specifications of their own format (at least I have the impression)
I'd like to try and format my captions with single-line spacing.
A brief search lead me to this post on komascript.de, in which Markus wrote:
Du kannst der Schrift für caption wahlweise ein \linespread{1}\selectfont oder die entsprechende setspace-Anweisung hinzufügen. \singlespacing sollte ...
@JosephWright: I believe that in the long run the disadvantages would overweigh the advantages of a Scottish independence, spoken from an international viewpoint
@ChristianHupfer My take too, but I see it really as about emotion really: it's a big enough place that independence is viable, so it's about how people feel. That's very tricky to judge from the outside.
@ChristianHupfer Anyway, settled for at least a few years :-)
@JosephWright: Yes, that's what I meant: It's difficult for a person not living in the UK to empathize the emotions about independence/autonomy etc, so no comment on this special, but crucial aspect
@henry: Markus is one of the developpers of KOMA -- I assume he knows 'his' bundle, but I am no expert on KOMA
@JosephWright: If in Germany, say, Bavaria would declare independence, this would be very hard for the rest of the country, from an economical point of view. If Berlin (not only the capital, but also a own state in the federation) would say 'Goodbye', there would be a great party in whole Germany I assume : The inhabitants of Berlin would celebrate and the rest of Germany would do so too, being glad to get rid off Berlin ;-)
@henry Especially after the last big update. I don't have any old versions to check right now, but there is a high probability that Markus had something built-in.
@henry What do you get with the above minimal example?
@henry Of course, package setspace doesn't know of KOMAs captionof (also provided by packages capt-of and caption). There you have to set it manually (best using etoolbox and adding the commands). But right now, i gotta go.
@henry I guess that KOMA-Script sets single spacing in table and figure environments, because \captionof simply calls the same command as \caption, after setting the “caption type”. Since \captionof should not be used at the outer level, but only inside an environment, one might think to add \singlespacing to it. But as \captionof should be rarely used at all…
@egreg I am quite lost with your statement. The MWE used \captionof just for demonstrative purposes I think. I mean of course I make use of \captionof at some points in my big document but ... um, yes. Well it works.
Essentially it does not seem to matter, whether I define the line-spacing or not, but rather safe than sorry I say.
@egreg Sorry if that seemed abrupt, I am currently deep in focus on something else and couldn't compute your message at first. I appreciate the comments on this. :)
@egreg why wouldn't you want rightskip glue though? I 'm sure the OP just didn't want spaces within the line, really whatever he said in the question:-)
If you use them in the title of a question you get the correct "66" and "99" form, but if you use them in the body of the question you only get the "99"?
A variable in an equation may be replaced by any of the numbers in its domain. The resulting equation may be either true or false.
Here is another way to show that the domain of a variable $y$ is $\lbrace$$0, 1, 2, 3$$\rbrace$:
$$y\in\lbrace 0, 1, 2, 3\rbrace$$
(Read $"y$ $\color\red{\text...
@IceBoy When you use the straight double quotes in TeX you always get the closing quotes. I guess there is a mechanism for using the curly quotes in titles even if straight quotes are used (not in math mode).
@IceBoy If you use straight quotes in the body (not inside math), you get straight quotes, as far as I can see.
@IceBoy See your last paragraph, where the quotes are straight.
@IceBoy Using “ and ” is not difficult on my keyboard, but I often forget to use them, because in the editor I use for TeX pressing " is usuall sufficient to get either `` or '' depending on context (and pressing " twice gives the straight double quote).
After updating from MacTex 2013 to MacTex 2014 natbib and showkeys stopped working together.
Whenever pdflatex is processing a citation with both packages enabled, I receive the following error
./fail.tex:8: TeX capacity exceeded, sorry [main memory size=5000000].
\rlap #1->\hb@xt@ \z@ {#1\hss ...
That feeling, when you notice your document does not compile anymore because you changed some customized commands you used somewhere, you got into your git repo (Git GUI, the pro I am), look at the history and find the commit that caused it, c&p the old definitions and it all works again.
@LaRiFaRi ah yes you'll get a bit of space added between the mathord of the hphantom and the following sum, when you've added the space internally. Somewhere there's a phantom macro that preserves the math class so \foo{=} is mathrel automatically, I wonder where that is (\bm has to do the same to preserve the math class while making it bold)
Who starred egreg's unhappiness? Most uncharitable.
@LaRiFaRi Either \hphantom{{}={}} or \mathrel{\hphantom{=}}; \hphantom{...} by itself is an ordinary symbol, so the implicit {} at the start of left aligned columns in align does nothing, so you got only the space on the right with \hphantom{={}}. Embedding it in \mathrel makes it into a relation.
@ChristianHupfer ask @Paulo how many machines he's had before this one, add one, and you know the rank of Manchester University by the date of foundation ;)
It's quite obvious that David abuses this forum for talking about crickets, which is by no means connected to TeX, contrary to such topics computer hostnames, cooking, indian food, ducks, black forest, black forest ducks, Czech beer ... and the correct recipe for pesto ... ;-)
@ChristianHupfer you forgot the endless droning on about football (which was the original reason for introducing some cricket news as a counterbalance)
@Kasper look at any tex math font it is the same, the height of the character determines the width of the bar over the argument
@Kasper a particularly unfortunate design choice in tex-the-program really as it makes it even harder than it would have been to share fonts between tex and everyone else
@Kasper see page 6 of ctan.mirrorcatalogs.com/support/pkfix-helper/encoding-samples.pdf
@DavidCarlisle I'm not sure if I completely understand this. Other opentype math fonts that I use with XeLaTeX doesn't have this positioning it seems. At least XITS and Tex Gyre
@Kasper yes that's what's happened for the last 30 years if you tried cmsy10 in anything other than tex as well, latin modern is just showing its heritage
One other thing I don't understand about Latin Modern is why they choosed to do different mathbb letters. Everything seems quite the same as Computer Modern except for mathbb
@Kasper well I don't know why but cm of course doesn't have blackboad bold and teh ams ones which are commonly used were designed to go with times rather than cm (as that is what the AMS were using for typesetting) so designing a new set is not an unreasonable idea
Well I've made a new font LMMath-bbfix that uses the mathbb and sqrt from the mathjax font. Not usefull for (xe)latex, but kind of usefull for me on the web.
@Kasper weird depends on what you're used to, when teh amsfonts became available lots of people certainly English Mathematicians) thought they were pretty odd with natural numbers being |\\| rather than ||\ | I think Alan made bbold pretty much as a reaction to that
@tohecz: About indenting \shortintertext, I think it makes sense, as there was an old typographical layout with equation numbers slightly indented on the left. Such a layout could be restored, withe same inden for intertext. After all, displayed equations are a semantic group. Don't you agree with this point of view?
Well, what is the purpose of indentation, in the first place?
For me, the purpose of indentation is to visually separate a new paragraph. Now, if you start to indent in the very same way something mid-paragraph, the original purpose of indentation is spoiled.
@Tohecz: I mean indentation of equation numbers and intertext. Just like one can use some indentation for theorem proofs, if one wants to ease skipping proofs for a first reading. Actually I see my wording is not so good (it comes from the \theoremindent length). In TeXnical terms, it amounts to more or less increasing \leftskip.
@Bernard well, is intertext really a part of the equation? To me, it's not.
As I replied to Mico, the text has to be anchored somewhere: Either it's just a piece of text, which happens to be coded by a command called \intertext in LaTeX, and then it should stay on the most left ("anchored" to the paragraph). Or it is a part of the equation, and then it should be bonded to the equation contents, and not just float somewhere in the empty space.
@Tohecz: it's probably the difference between our points of view: if I have a piece of text that I consider part of the main flow of text, I close the math display, write the text, then open a new display. It's all the ambiguity of intertexts: they live in an in-between, and their status strongly depends on the semantical context.
@Bernard well, the true only purpose of \intertext is to preserve the & positions inside align and similar arguments. For me, \intertextis closing the display, and opening a new one just after that. I focus on the result, and don't care if the code is this or that.