Text FormattingQuestion on package error: need perltex?

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
Faust
Posts: 55
Joined: Thu Oct 29, 2009 12:45 pm

Question on package error: need perltex?

Post by Faust »

Hi, I've been trying to implement the thumby package, but when compiling it returns an error: Package perltex error: document must be compiled using perltex.

So how do I do this? I'm on win7 64 bit using texniccenter.

Thanks!

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

svend_tveskaeg
Posts: 478
Joined: Sun Jul 12, 2009 5:31 am

Re: Question on package error: need perltex?

Post by svend_tveskaeg »

We need a minimal working example.
``In the game of chess, you can never let your adversary see your pieces.''
-- Zapp Brannigan, Futurama (season 1, episode 4)
Faust
Posts: 55
Joined: Thu Oct 29, 2009 12:45 pm

Re: Question on package error: need perltex?

Post by Faust »

Ok sorry here you go:

I want thumbs on the side of the pages for my full document (7 chapters)
I think I need to run it through perl somehow but I have no clue what to do.



\documentclass[10pt,a4paper,twoside]{report}
\usepackage{thumby}
\thumbySides{two}
\thumbyTotalChapters{10}
\thumbyPageHeight{795}
\thumbyThumbWidth{42.5}
\thumbyForeground{white}

\thumbyBackground{black}
\thumbyNumberFormat{\Huge\textbf{$chapter number}}
\thumbySetup


\usepackage[Conny]{fncychap}
\ChNameUpperCase \ChTitleUpperCase \ChNameVar{\centering\Huge\rm\bfseries}
\ChNumVar{\Huge} \ChRuleWidth{2pt} \ChTitleVar{\centering\Huge\rm}


\begin{document}
\chapter{Chapter 1}
\section{bla}
bla bla bla

\newpage

bla

\end{document}
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Question on package error: need perltex?

Post by localghost »

Is it so difficult to tag source code by using the code environment of the forum? Read the thumby manual thoroughly and install perltex if necessary.


Best regards
Thorsten
Faust
Posts: 55
Joined: Thu Oct 29, 2009 12:45 pm

Re: Question on package error: need perltex?

Post by Faust »

Sorry I never noticed that option. I have the perltex package too but how do I get texniccenter to run it through perl or something?

I'm sory Im just a noob on this. The thumpy pdf manual -which I read- says I have to run twice perltex --latex=pdflatex

how the hell do I achieve that? ;)

sorry for being a pain in the ass
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Question on package error: need perltex?

Post by localghost »

Faust wrote:Sorry I never noticed that option. [...]
It's hard to overlook because it can be found in the button list right above the input window when writing a post.

Just open a command prompt and type in that line.

Code: Select all

perltex --latex=pdflatex filename.tex
After the first run just start the next.
Faust
Posts: 55
Joined: Thu Oct 29, 2009 12:45 pm

Re: Question on package error: need perltex?

Post by Faust »

ok thanks, but I'd like this automatically executed from texniccenter when compiling a document. Is this possible?
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Question on package error: need perltex?

Post by localghost »

Integrate the two runs into the post-processing section of a build profile. But from my point of view it's not worth the effort unless you always work with the thumby package.
Faust
Posts: 55
Joined: Thu Oct 29, 2009 12:45 pm

Re: Question on package error: need perltex?

Post by Faust »

well I have several problems now:

when running a commandline prompt and typing in the following:
perltex --latex=latex d:\test.tex

I get an error, it says file c:.test.tex not found (I specifically typed a "\" but it returns a ".")
retyping the exact same location e.g. d:\test.tex will find the file and it will produce a dvi file, but the output location is c:\users\faust instead of where my document is located.

The resulting dvi file does not look quite as expected, chapter numbers do not appear in the thumbs.

Running through pdflatex instead of latex does work better.
I am using tikz in my document so I cant use pdf2latex directly.

However when I'm trying to put in a file that uses figures this method will return an error on all images, saying file not found.


Last, when I want to insert the command line into texniccenters output profiles, what should I enter in the specific fields for "executable" and "arguments" in the postprocessor tab? I've made a new postprocessor before the Dvips postprocessor and ghostscript one.

Thank you for your help, appreciated.
Faust
Posts: 55
Joined: Thu Oct 29, 2009 12:45 pm

Re: Question on package error: need perltex?

Post by Faust »

ok, one problem is solved, kinda:

When putting all my files in the c:\users\faust folder it compiles properly using pdflatex.

using latex.exe there appears no text in the thumbs. I think I'll go with localghost's suggestion of only using this package when I need to -final run-.
Post Reply