reitzig / ltx2any

Yet another LaTeX build wrapper, with one or two nifty features
GNU General Public License v3.0
59 stars 4 forks source link

Absolute paths for files break PDF log on Windows #79

Closed koppor closed 8 years ago

koppor commented 8 years ago

When I compile on windows and get the PDF output, it looks like follows:

grabbed_20160318-230103

The C:29.sty seems to point to a file outside the current directory. I think, the Windoze backslashes cause issues.

reitzig commented 8 years ago

Yup, these warnings apparently come from package files. Can you please add what the LaTeX log has there? (I agree, looks like "unescaped" backslashes being the problem.) Do the links work?

koppor commented 8 years ago

SumatraPDF tries to open c:\git-repositories\latex-templates\LNCS\C:.sty, which is invalid.

I think, the log excerpt is as follows

(C:\MiKTeX\tex\latex\bezos\soulpos.sty
Package: soulpos 2012/02/25 v1.0 Fancy underlining
\ulp@subcnt=\count191
\ulp@cnt=\count192
\ulp@out=\write3
\ulp@in=\read1
\ulwidth=\dimen136
)

Package hyperref Warning: Option `pdftex' has already been used,
(hyperref)                setting the option has no effect on input line 1348.
reitzig commented 8 years ago

I don't see how this path would be created from this excerpt. More has to go wrong. Can you please create a LaTeX log with -lf latex and copy-paste the relevant section here? Thanks!

koppor commented 8 years ago
\item\blockitem
\warning{\fileref{C:\MiKTeX\tex\latex\pdfcomment\pdfcomment.sty}{1348}{}}

\begin{verbatim}
 Package hyperref Warning: Option `pdftex' has already been used,
 setting the option has no effect
\end{verbatim}

\logref{81}{82}
\endblockitem

Source of the document is available at https://github.com/latextemplates/LNCS.

Log output starting with pdfcomment.sty and ending with input line 1348:

(C:\MiKTeX\tex\latex\pdfcomment\pdfcomment.sty
Package: pdfcomment 2012/09/28 pdfcomment.sty v2.3a - Josef Kleber (C) 2008-201
2
\c@pc@count@i=\count157
\c@pc@count@ii=\count158
\c@pc@count@iii=\count159
\c@pc@count@iv=\count160
\pc@mathannot@box=\box54
\pc@dima=\skip51
\pc@dimb=\skip52
\pc@Sposx=\skip53
\pc@Sposy=\skip54
\pc@Eposx=\skip55
\pc@Eposy=\skip56
\pc@column=\skip57
\pc@box@width=\skip58
\pc@box@height=\skip59
\pc@box@depth=\skip60

(C:\MiKTeX\tex\latex\oberdiek\zref-savepos.sty
Package: zref-savepos 2012/04/04 v2.24 Module savepos for zref (HO)

(C:\MiKTeX\tex\latex\oberdiek\zref-base.sty
Package: zref-base 2012/04/04 v2.24 Module base for zref (HO)
Package zref Info: New property list: main on input line 759.
Package zref Info: New property: default on input line 760.
Package zref Info: New property: page on input line 761.
)
Package zref Info: New property list: savepos on input line 75.
Package zref Info: New property: posx on input line 76.
Package zref Info: New property: posy on input line 77.
)
\c@zref@unique=\count161

(C:\MiKTeX\tex\latex\tools\calc.sty
Package: calc 2014/10/28 v4.3 Infix arithmetic (KKT,FJ)
\calc@Acount=\count162
\calc@Bcount=\count163
\calc@Adimen=\dimen133
\calc@Bdimen=\dimen134
\calc@Askip=\skip61
\calc@Bskip=\skip62
LaTeX Info: Redefining \setlength on input line 80.
LaTeX Info: Redefining \addtolength on input line 81.
\calc@Ccount=\count164
\calc@Cskip=\skip63
)
(C:\MiKTeX\tex\latex\marginnote\marginnote.sty
Package: marginnote 2012/03/29 v1.1i non floating margin notes for LaTeX
\c@mn@abspage=\count165
)
(C:\MiKTeX\tex\latex\datetime\datetime.sty
Package: datetime 2015/03/20 v2.60 Date Time Package

(C:\MiKTeX\tex\latex\fmtcount\fmtcount.sty
Package: fmtcount 2015/05/05 v3.01

(C:\MiKTeX\tex\latex\fmtcount\fcprefix.sty
Package: fcprefix 2012/09/28

(C:\MiKTeX\tex\latex\fmtcount\fcnumparser.sty
Package: fcnumparser 2012/09/28
\fc@digit@counter=\count166
))
(C:\MiKTeX\tex\latex\amsmath\amsgen.sty
File: amsgen.sty 1999/11/30 v2.0
\@emptytoks=\toks23
\ex@=\dimen135
)
\c@padzeroesN=\count167
\fc@tmpcatcode=\count168

(C:\MiKTeX\tex\latex\fmtcount\fc-english.def
File: fc-english.def 2013/08/17
)
\@DT@modctr=\count169
\@ordinalctr=\count170
\@orgargctr=\count171
\@strctr=\count172
\@tmpstrctr=\count173
\@DT@loopN=\count174
\@DT@X=\count175
)
(C:\MiKTeX\tex\latex\datetime\datetime-defaults.sty
Package: datetime-defaults 2013/09/10
)
\@day=\count176
\@month=\count177
\@year=\count178
\c@HOUR=\count179
\c@HOURXII=\count180
\c@MINUTE=\count181
\c@TOHOUR=\count182
\c@TOMINUTE=\count183
\c@SECOND=\count184
\currenthour=\count185
\currentminute=\count186
\currentsecond=\count187
Package datetime Info: No datetime.cfg file found, using default settings on in
put line 308.
\@dtctr=\count188
\dayofyear=\count189
\dayofweek=\count190
LaTeX Info: Redefining \today on input line 736.

(C:\MiKTeX\tex\latex\datetime\dt-american.def
File: dt-american.def 2013/09/10
)
\dt@a=\toks24
\dt@b=\toks25
)
(C:\MiKTeX\tex\latex\bezos\soulpos.sty
Package: soulpos 2012/02/25 v1.0 Fancy underlining
\ulp@subcnt=\count191
\ulp@cnt=\count192
\ulp@out=\write3
\ulp@in=\read1
\ulwidth=\dimen136
)

Package hyperref Warning: Option `pdftex' has already been used,
(hyperref)                setting the option has no effect on input line 1348.
akerbos commented 8 years ago

Should be fixed in the dev branch. Hope to merge into master soon-ish.

Closing for now.