I have a great idea for a latex book. I am just not good enough to do it. In all the latex books I have, none of them do this in any good way. Here is the idea: The book will be just full of small complete examples how to setup different things. On the left side will be the result, and on the right side will be the code. That is all.
Many times I want to do something, and I spend so much time looking for example like it. If there was such a book, or web site, that will be help. It will be like a handbook, or catalog type book. But it has to be extensive and covers many different variations of the same thing to make it complete.
2 another items that htlatex does not support for HTML: minpages and multicol :(
I'm trying the below script to make a header but its not working and this is very urgent if anyone could help me.
\documentclass[conference,letterpaper]{IEEEtran}
\usepackage{fancyhdr}
\setlength{\paperwidth}{215.9mm}
\setlength{\hoffset}{-9.7mm}
\setlength{\oddsidemargin}{0mm}
\setlength{\textw...
@user1460166 Sorry, but that's just not the way it works. Gonzalo gave you a working example to start from. Please find out what exactly needs to be added (by systematic experimentation) to make it stop working. Then you have the basis for asking a precise question.
@user1460166 Maybe the conference template doesn't allow you to use a header.
@Nasser this is not surprising - CSS columns didn't exist when tex4ht was created. And of course, it is really impossible for tex4ht to support all of thousands LaTeX packages, commands and environments. Especially in the case when they produce something what doesn't have equivalent in HTML. But it should be possible to configure both multicol and minipage to your needs with \ConfigureEnv and some CSS code.
@michal.h21 sure. I understand. It is struggle though to understand some simple things about htlatex. Like why this code
\begin{tabularx}{\linewidth}{p{1in}|p{7in}}
dfkjadfkljds;afkjdsf;kldjsf;lkdsjafkldsjflk;dsjfadsl;fj
dfkjadfkljds;afkjdsf;kldjsf;lkdsjafkldsjflk;dsjfadsl;fj
dfkjadfkljds;afkjdsf;kldjsf;lkdsjafkldsjflk;dsjfadsl;fj
&
dkfjdasklfjsd
\end{tabularx}
does not make a table of first col smaller than the second. it is always the first column is very wide.
it is driving me crazy :)
The problem really is that the mapping from Latex to HTML seems to be always somewhat distorted. What I see in PDF does not always match what is on the HTML page. Like the above simple example.
I know it is very hard problem, this latex to HTML conversion. It is like magic for me.
@Nasser yeah, I was looking at that issue and it is hidden really deep, I think tables handling is one of most mysterious thing with tex4ht. probably easiest is to fix such issues with some CSS
@Nasser yeah, because sometimes what seems simple is in reality pretty complex.
@michal.h21 I am now just playing with latexml to try it out. It seems OK so far, but many packages are missing. But I think this is matter of just finding missing ones and installing them from here trac.mathweb.org/LaTeXML/browser/trunk/lib/LaTeXML/Package
I was impressed with dlmf.nist.gov it was generated by latexml.
but I just started playing with it few hrs ago. Wanted to try it out.
@nuttyaboutnatty nowhere I was just showing it,that is the standard definition from book class.
@Nasser I suspect it simply ignores the widths (which is often the right thing to do) as the page size is typically completely different the model was converting existing latex files, not as you are doing writing a file for dual use from the start, in the latter case it is much easier to come up with sensible interpretations for col widths
@Nasser that is being used to convert the arxiv archive with quite high (but not 100%) success rates
@DavidCarlisle, I found also latexml ignores the widths given. I run the same example on latexml with similar result as tex4ht
I am learning latexml now. But very HARD to find any simple instructions to follow ! Like how to install latexml packages from trac.mathweb.org/LaTeXML/browser/trunk/lib/LaTeXML/Package it is amazing that no one explains things in simple terms any more. Or may be I am just getting old. I do not know ;)
@Nasser as I say it's probably a deliberate decision in both cases (although both could be configured differently) almost everything about the table models of tex and css/html are different so it is hard to come up with a natural mapping from one to the other.
@Nasser latexml hasn't so much end user doc, it was originally an internal project to produce the DLMF at NIST, but it's an impressive system.
@Nasser tex4ht is slow because it runs latex 3 times. but with make4ht, you can create make file to run it only once. and you can use mathml with tex4ht too
Hello I want to try the following: when i label something which got an explicit name beside the standard name like for examlpe in \begin{Theorem}[Fundamental Theorem of Algebra] ... I want that when i use a \ref (or a \cref) that the link looks like Fundamental Theorem of Algebra (Theorem x.y)
@Nasser well not exactly, Michael has had a succession of students working on it and extending it as they worked through the arxiv archive of latex documents, but I don't think Michael or Bruce (who wrote all of it originally) are going out of their way to advertise it. Users can be such a pain:-)
@Nasser you don't need html customisation for most packages (or just make an empty one to silence the warning) You don't need to use the same fonts in pdf and html, so you don't need lmodern, you definitely don't want to move the crazy world of tex font encodings over to html so you don't want fontenc and if you write verbatim.4ht or fancyvrb.4ht into google the first hit in each case is a file you just need to copy.
@PauloCereda The weather is very good! Last year's procession had to be cancelled for heavy rain. :) More than 100000 visitors are expected, according to the newspaper.
Is there a good discussion of the benefits (and drawbacks !) of extra leading (double spacing, one-half spacing) that anyone is aware of ? CMS, some website ? I would like to convince my supervisor of the evils of double spacing, and this would aid in that purpose
Oh, btw @egreg you don't happen to have a good reference I can use to explain the evils of double-spaced text ? I am having a fun time trying to convince my supervisor.
@ach is this for a paper or for your actual thesis (in the latter case there are often rules to be followed and what it looks like isn't highest priority)
@ach hmm you might need to check they almost certainly do have rules. A single spaced thesis is probably a bigger crime than walking on the grass, and prevent ever getting a degree....
@DavidCarlisle My strategy will probably be to ask if I can submit a properly typeset version after corrections - if the examiners want a 1.5 or 2x copy so be it
@egreg probably the best solution, yes
but it makes quite a difference for page breaks, float positioning, etc. I guess that's just life !
@ach During my LaTeX course I always tell the students that their thesis should be as readable as possible: somebody has to read it! The better we set our text, the easier will be for the examiners to do their duty.
@egreg I agree, but when I pointed out that books are not double spaced it was put to me that this was to save printing cost (!!) and that one typically would not read a whole book in one go as one would a thesis.
@ach when I started my phd my supervisor told me where to find the university rules but remarked that his own thesis had been around 8 pages long, if you prove a good enough result they couldn't fail you no matter what....
Psmith, the TeX bot, in fixed font mode: Let's take a look at the last cricket results:
- Leicestershire 142/3 * v Northamptonshire 567/7
- Middlesex 27/1 & 175/10 * v Yorkshire 390/10
- Durham 267/10 & 18 * v Warwickshire 209/10
- Essex 273/10 v Lancashire 185/5 *
- Hampshire v Gloucestershire 242/5 *
- Kent 8 * v Glamorgan 378/10
- Nottinghamshire v Derbyshire 306/6 *
- Sussex 201/4 * v Surrey
- England 256/7 * v Sri Lanka
Our cricket expert David might explain these results later on.
if one installs TexLive 2013, does it also come with TexLive-science? (for things like algorithms package) or does one have to install that manually afterwords? Worried about version problems.
I just installed texlive-science using sudo apt-get install texlive-science and found problem. I am using debian TexLive package as well.
@TorbjørnT. but if default is everything, why it was missing then on my Linux mint box? I did install tex-live debian package before? It was missing the algorithms2e.sty and googling around found I need to do more installations...
@Nasser The usual recommendation is to install a vanilla texlive from tug rather than the repackaged linux distribution versions (only problem is persuading your OS package manager that you do have tex in that case)
@DavidCarlisle good idea. But when as most users, start using linux, they use sudo command with install to install stuff. They do not know that there is TUG and another texLive. This is a big mess.
Why not have just ONE version of texlive, and one place, instead of different packages on different linux versions and so on. someone needs to have a meeting with all the linux distros and sort this mess out.
@Nasser Not really (a) most users just use article class and cm fonts and a distribution from 1995 will work fine. (b) Most users of the linux distro version have everything they need or can get it using yum or apt-get or whatever. It is only people who hang arond sites like this who get worried that they have last year's version of a package.
@DavidCarlisle I solved this by installing the official one (in /usr/share/texmf), then install the official one (in /usr/local/texlive) and then give /usr/local/bin larger priority than /usr/bin
@Nasser Either way it's not really a "mess" and a lot easier than getting a large tape of the unix tex distribution, compiling it from source and then trying to add additional latex packages by using JANET ftp from the aston tex archive or from the states via a JANET/internet relay (which involved at least a day to fetch anything)
@DavidCarlisle it is really more than just this. It is the idea of using software engineering right. There should be one version, one source, and one known fixed places to install something from. This mess extends to Linux itself as well. Too many different versions of same thing all over the place. Any way, getting off topic, so I'll be quite and just use TUG's texlive
@tohecz Yes I do something with cygwin, cygwin's tex is installed somewhere and I hav ea tug cygwin texlive in front of it in the path.
@Nasser it's like saying there should be one linux not debian and fedora and ubuntu and .... one linux package system not yum and apt-get and whatever, saying it would be simpler doesn't actually make it happen. Perhaps everyone should use Windows, or a Mac or PS/2 or something. Life's complicated:-)
@DavidCarlisle I am talking about the same NAME coming from 2 different places. If debian texlive was NOT called texlive, then it is OK. if it was called debianTex for example. fedora has different name from mint. I am talking about calling something the same name, when it is different somehow. Any way, I do not think having 100 different flavors for Linux is a good thing. Or for any software. Users do not really want 100 different choices of one thing, just one good to use.
But @Nasser isn't this the case for all packaged goods you might get via apt-get ? It is just quite evident in TeX distros because of the pace of updates - but you would have the very same problem with any other software
@cgnieder books are made so they can be put on the shelf and look good
anybody has experience in indexing/glossary/acronym workflow, I want to use imakeidx, glossaries, xindy, arara for automation, anyone cna help in his advise?
I want to ask general things: during writing, how do you, index words, some of them glossaries also, some of them are acronyms, so how do you address thesse in the flow of text wriiting, paulo, marco, if this is a big questions, shall I post it an dyou reply?
@doctorate If you work with imakeidx you should compile you document with shell-escape. Then imakeidx will do the xindy job. makeglossaries (the script) does the job for all auxiliary files created by glossaries.
I mean practically in a a large Phd document, or a boook, some words are glossaries, acronym and and index at teh same time, how to mark them effectively?
@MarcoDaniel, i figured out this also lately, but I am talking now about the marking up words in day-to-day long term writing process.
@MarcoDaniel, when u write a long text, you want to index every occurance of words, so you do \index{thatword}, but if it is an acronym also and a glossary, so in reality what would be the marking here for this word?
let me give you an example already been posted, so to be clearer
this is just example of the concept but ignore the tool which is datagidx, i wnat to use other tools like imakeidx, xindy, etc.. so this is it:
I came across datagidx package, which is part of the datatool bundle, the killing feature of this package is that you can use it independently, not relying on external indexing applications, e.g., xindy or makeidx. One more feature, is that you can use it to address index, glossary (definitions),...
@MarcoDaniel, other wish is to mark up the short version of the word, while its long version is shown in index, glossary, e.g., \somecommand{pdf}, and if pdf is in glossary database, it will show in glosary long version as well as in index
@MarcoDaniel, if one would like to do extensive indexing, every and every occurance of the word, can this be done without marking up each single word?
@MarcoDaniel, i thought that is the wish of everybody, because in phd, if index is decided, then glossary and aconyms are most likely there also, so it would a good and common interest to envisage this pathway.
@MarcoDaniel, I will post this as question any suggestions to improve it to get relevant answers?
anyone know if it's possible to prevent \forlistcsloop from executing one handler iteration when the csname isn't defined?
I have a list that is populated with some \@starttoc stuff, but is undefined on the first pass, and I was hoping not to have to prefix my loops with an if check for the cs name definition
@MarcoDaniel, hallo, based on your answer I am using these directives of arara, % arara: xelatex % arara: makeglossaries % arara: xelatex % arara: xelatex
but how to add one for biblatex (biber backend) and one for index xelatex shell escape?
Was just wondering, is there any inherit limitation of how large one single .tex file can be to process by pdflatex or later? For example, if I have a file say 10,000 pages, I assume it will work? (will take long time, I know) but assuming I have enough RAM and CPU, there is no hidden limits in Latex? doing quick search shows nothing.
I am thinking of appending many latex files into one, since I am tired of making links all the time, and was wondering about this...
@doctorate The first compilation step should be used shell: true too. However if you want to avoid unnecessary compilation, you can work with arara RC4. It has nice new features: github.com/cereda/arara/wiki/Features-in-arara-4.0 -- I think in your case the feature "if changed" is interesting.
@doctorate @PauloCereda did/ is doing a great job.
@doctorate Well, I think you could stick with your current workflow. Some of the features @Marco highlighted in v4 wont make much of a difference, IMHO. :)
@doctorate Sadly no, TL2013 is frozen right now. :( But hopefully v4 will be available soon (maybe in two months) and available via repository updates. :)
@PauloCereda, % arara: xelatex { shell: true } , then error in this line:Apparently, there's an invalid directive at line 5. Please take a look and fix it.
Are there some limitations regarding the pdflatex command with respect to the count of pages of the input files?
My highest page count, when compiling, was 90 without any troubles. (2008)
Currently another document will be prepared which will be approx. 170 pages in sum.
EDIT:
Thanks to all an...
in HTML, there is something called grid based design. Where there is an underline grid on the page. Next, this grid is used to help in the layout of things on the page. This makes it easy to layout things, since there is a uniform grid to use. Like a snap grid. One can decide on the grid size before. It is really neat idea
I do not know if something like this can be implemented in Latex.
A typographic grid is a two-dimensional structure made up of a series of intersecting vertical and horizontal axes used to structure content. The grid serves as an armature on which a designer can organize text and images in a rational, easy to absorb manner.
The less common printing term “reference grid,” is an unrelated system with roots in the early days of printing.
History
Antecedents
Before the invention of movable type and printing, simple grids based on optimal proportions had been used to arrange handwritten text on pages. One such system, known as the “Villiards Diagram,” wa...
@Nasser search for the word grid on this or any other tex forum you will find lots of questions (not so many answers) there are latex packages for this but latex2e doesn't really help Context has more complete support (I'm told) and there are plans for latex3. But TeX's box and glue model really doesn't like grids It's like building scaffolding out of springs.
@DavidCarlisle I see. thanks. When targeting the web, or even for paper only, having an underlining grid really makes sense. I always wanted something like this. Most of the time I spend on layout, as I never like how things look. A grid like system will make layout design much simpler.
@Nasser It's easy to have a grid based system where you always add fixed lengths everywhere, but TeX is really designed to optimise white space stretching so almost always you have stretchable space above and below section heads and inserts and equations etc, if you fix everything you stay on the grid but get poor page breaks and ugly spaces at the bottom, if you stretch you fall off alignment ideally you want to be able to strech in discrete units, ie allow the space above and below a ..
@DavidCarlisle good answer on memory limitations there. just +1 it. Good to know there is little limit. I am planning on putting all my reports in one file. WIll let htlatex make the TOC and the links. I am tried of putting each HW and report in different folder and having to add links manually between thing. Let Latex do it. It will be a huge file, but I have lots of RAM :)
... section head to stretch but only so the total size of the heading is a multiple of baselineskip, you can do that in tex but only by taking full control at the macro layer you can not allow any access to the primitive \vskip
@egreg me having an advantage is fair, you having an advantage less so.
Imagine the blue block above is my figure. I simple put it there, and it will SNAP and adjust it size automatically to fit in. Same for text, equations, etc... I can resize things, but they always move by grid increments.
@Nasser yes that's what you want I know, but what I am saying is that you want to build it from TeX and TeX isn't made out of rigid Danish plastic it is made out of American rubber, so things don't quite work the way you hope.
@Nasser People have tried to come up with non tex systems but it is hard. LaTeX Context and all the packages are not rewriting TeX they are written in TeX that is a very different thing.
@tohecz only reason I was looking at grid based typesetting, is because I do not like to see lots of wasted white space on my pages (web or printed). Which means I have to spend more time in layout trying to force/move things (like using 2 columns, mini-pages, tables) etc.. to fit as much information on one page. Grid based system will make this easier. My latex pages have lots of empty white space in them.
@tohecz but it will make it easier to move things around? Like the lego example above. If the underlining board was not there, it will hard to layout things. that is what I mean. Page design should be like putting blocks on lego board.
@Nasser grid layout makes some things easier and makes some things look nicer (eg baselines in a two column layout lining up) but as @tohecz says it must increase the amount of white space generally
@Nasser the problem is you think a lego layout is nice until you want to centre that blue piece on the yellow board and find you can't the grid forces you to be out by half a unit. TeX uses a smooth board and fits springs to either side of the block so it naturally centres. Both systems have advantages and disadvantages, but it's hard to have both at the same time.
is it possible to make pdflatex print my HW on a 11 by 17 inch printer? i.e. typeset the pages so things are for that size? i.e. can I just do \usepackage[paperwidth=11in, paperheight=17in]{geometry} or do I have to change document class also? or one or the other will do? I should try it, I know :)
Ok, so it worked, but all what happend is that the paper size became large, but latex itself did not spread the content over the paper actually like I thought it will do. THe contented remained as before, but now more white space around it. I think I need to change the class itself. Will work on this more....