problem about tex-Collection of common programming errors


  • andrz_001
    latex tex
    After transferring all my files onto a new machine, all files that were once LaTeX files (having the texnic center “T” icon) are now TeX files (having the TeX works icon –I don’t remember installing that one!). But….the files are associated with the technic center! In other words, the files open with the texnic center, yet the “type of file” is “tex document”.I’m using the same miktex distrubution and texnicCenter (both for windows xp) as on the old machine. Again, I don’t know how/where I g

  • drasto
    memory memory-management latex macros tex
    I’ve got a latex macro that makes small pictures. In that picture I need to draw area. Borders of that area are quadratic bezier curves and that area is to be filled. I did not know how to do it so currently I’m “filling” the area by drawing a plenty of bezier curves inside it…This slows down typeseting and when a macro is used multiple times (so tex is drawing really a lot of quadratic bezier curves) it produces following error: ! TeX capacity exceeded, sorry [main memory size=3000000].How ca

  • Don
    latex tex
    I spent some time trying to write a ‘helper’ macro to test a parameter for a new value, else use the existing value — default values exist for all parameter positions.I wanted to be able to write:\foo{left}{nil}{}{20pt}so that the second parameter would used its current value but the third value would be the value empty string. I wanted to use the notation:\edef\pA{\isnil{#1}{\pA){#1}} % one for each parameterI defined \isnil like so:\def\nil{nil} \def\isnil#1#2#3{%\edef\nilTest{#1}%\ifx\nilTes

  • olan
    latex abstract tex typesetting
    I’ve been looking for the answer to this question for a while now but can’t seem to find it, so I’m hoping someone on here can help me. I’m writing up a thesis in Latex, and really like the \frontmatter, \mainmatter and \backmatter ability when using the “book” environment. However I need to add an abstract and the \begin{abstract} environment is undefined when creating a “book”. If I change to a “report” however, I lose the functionality of the *matter terms.So what I really need to know is: is

  • drfrogsplat
    latex macros return-value tex
    I’m writing my thesis/dissertation and since its an on-going work I don’t always have the actual images ready for the figures I put into my document, but for various reasons want to automatically have it substitute a dummy figure in place when the included graphics file doesn’t exist. E.g. I can do something like \includegraphics[width=8cm]{\chapdir/figures/fluxcapacitor} (where \chapdir is a macro for my ‘current’ chapter directory, e.g. \def\chapdir{./ch_timetravel} and if there’s no ./ch_time

  • jparker
    tex pdftex xetex
    As far as I understand it (a few days of research here and there), there are two major TeX engines: pdfTeX and XeTeX. pdfTeX is the “standard”, having been around since the early 1990s, renders straight to PDF, and improves on some minor formatting issues with original TeX.XeTeX, on the other hand, also outputs PDF, can use any system font without complication, and can accept Unicode input by default. And yet for some reason it’s not the default engine in any of the TeX distributions.Do I have t

  • Brian M. Hunt
    latex scons tex xetex xelatex
    I’m trying to determine when a re-run of Xe(La)TeX is required because of undefined references. I’ve posted a related question on the SCons mailing list, and the problem is as follows:Page counts and other references that require multiple runs of XeLaTeX are sometimes not at present detected by SCons and other build systems. Here’s an example file (which we’ll call job.tex):\documentclass[ones?ide,12pt]{memoir} \usepackage{xltxtra} \usepackage[T1]{fontenc} \makepagestyle{plain} \makeoddfoot{pla

Web site is in building