Search found 12 matches

by batonac
Mon May 09, 2011 6:06 pm
Forum: Text Formatting
Topic: Custom fraction convertor produces strange space.
Replies: 1
Views: 1418

Custom fraction convertor produces strange space.

OK, so per the instructions here, http://tex.stackexchange.com/questions/9173/are-there-any-packages-that-i-should-not-be-using-with-ifthen-package , I figured it out. By adding a comment symbol (%) after each line, the extra space vanished!

Here's my new functional code:
\NeedsTeXFormat{LaTeX2e ...
by batonac
Mon May 09, 2011 2:26 pm
Forum: Text Formatting
Topic: Custom fraction convertor produces strange space.
Replies: 1
Views: 1418

Custom fraction convertor produces strange space.

I've been using ratexdb to create database reports using LaTex. I couldn't figure out how to convert decimal database input into LaTex fractions, so I custom coded a simple LaTex package which accepts decimal input (actually, the whole number & # of 64ths) and converts it into a LaTex fraction using ...
by batonac
Sat Sep 04, 2010 10:06 pm
Forum: General
Topic: How to keep \poemtitle on same page as \verse
Replies: 2
Views: 2471

Re: How to keep \poemtitle on same page as \verse

Hey Thanks ALOT! This suggestion worked pretty good, but I still had problems with keeping all of the content grouped together as I wanted it, so I finally found a solution in the poemscol package, which seems to have been designed exactly for my use case!

Again, thanks for your time, I hope this ...
by batonac
Tue Jul 20, 2010 3:30 am
Forum: General
Topic: How to keep \poemtitle on same page as \verse
Replies: 2
Views: 2471

How to keep \poemtitle on same page as \verse

I am trying to compile a large book of poems. I'm using the verse package to format the poetry.

Because of the helpful responses in this form: http://www.latex-community.org/forum/viewtopic.php?t=872 I am now able to keep the lines of my poetry together on the same page. (by using \\*)

My problem ...
by batonac
Fri Mar 05, 2010 4:00 pm
Forum: General
Topic: Making graphicx and texdbi work together
Replies: 9
Views: 4540

Making graphicx and texdbi work together

Does anyone know of a preprocessor that will combine all of my files into one tex document right before it is processed by ratexdb?

In other words, something that would work like this:


preprocessor catalog.tex > catalogcompiled.tex
ratexdb catalogcompiled.tex > catalogfinished.tex
pdflatex ...
by batonac
Fri Mar 05, 2010 3:58 pm
Forum: General
Topic: LaTeX preprocessor (combining input files)
Replies: 2
Views: 3793

LaTeX preprocessor (combining input files)

If you have GNU-AWK on your system, the following command will do what you desire, provided all \input commands are on a line by themselves:


awk '!/input\{/ {print}
/input\{/ {
sub (/input\{/,"")
sub (/\}.*/,"")
cmd= "cat "$1".tex"
system(cmd)
}' input-unmerged.tex > input-merged.tex


Wow ...
by batonac
Wed Mar 03, 2010 10:18 pm
Forum: General
Topic: LaTeX preprocessor (combining input files)
Replies: 2
Views: 3793

LaTeX preprocessor (combining input files)

Does anyone know of a way to process only the \input command of a LaTeX file so that a multi-file document is joined into one (big) LaTeX file? I need to do this in order to use a database preprocessor (ratexdb) which doesn't support the \input command.
by batonac
Wed Mar 03, 2010 4:00 pm
Forum: General
Topic: Making graphicx and texdbi work together
Replies: 9
Views: 4540

Making graphicx and texdbi work together

It may be that \texdbivalue{imagepath} doesn't simply expand to the path name. (For example, it may perform a check to determine if the key exists.)

I'm kinda confused. It may check if what key exists? This code works perfectly if it's not included as an \includegraphics argument. In other words ...
by batonac
Tue Mar 02, 2010 5:09 am
Forum: General
Topic: Making graphicx and texdbi work together
Replies: 9
Views: 4540

Re: Making graphicx and texdbi work together

hmm... latexdb does not seem to be compatible at all with my needs. It runs only as a preprocessor, not as an integral part of the latex engine. In other words, it creates a .tex file with the database fields that you requested included in the file, but you cant use other latex packages to digest ...
by batonac
Fri Feb 26, 2010 10:53 pm
Forum: General
Topic: Making graphicx and texdbi work together
Replies: 9
Views: 4540

Making graphicx and texdbi work together

Hm. It's only an idea. But did you insert the path in the right notation? Remember that (La)TeX needs slashes instead of backslashes in the path to a file.

An alternative interface may be latexdb . It also handles MySQL databases.

My paths are correct. I also already tried latexdb, but ran into ...