Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make -C doc latexpdf Fails #8494

Closed
rickhg12hs opened this issue Sep 27, 2014 · 10 comments
Closed

make -C doc latexpdf Fails #8494

rickhg12hs opened this issue Sep 27, 2014 · 10 comments

Comments

@rickhg12hs
Copy link
Contributor

Recent changes break the latexpdf build.

After fixing the sed -i bak <other stuff> command to sed -ibak <other stuff>, then I get errors that the font "Times" cannot be found. I have the full TexLive 2014 install on Fedora 19 Linux.

$ ./julia -e 'versioninfo()'
Julia Version 0.4.0-dev+810
Commit 1673449 (2014-09-26 21:20 UTC)
Platform Info:
  System: Linux (i686-redhat-linux)
  CPU: Genuine Intel(R) CPU           T2250  @ 1.73GHz
  WORD_SIZE: 32
  BLAS: libopenblas (DYNAMIC_ARCH NO_AFFINITY Banias)
  LAPACK: libopenblas
  LIBM: libopenlibm
  LLVM: libLLVM-3.3
$ make -C doc latexpdf
make: Entering directory `/usr/local/src/julia/julia/doc'
PYTHONPATH=/usr/local/lib/python2.7/site-packages:juliadoc sphinx-build -b latex -d _build/doctrees   . _build/latex
Running Sphinx v1.2.3
loading pickled environment... done
building [latex]: all documents
updating environment: 0 added, 0 changed, 0 removed
looking for now-outdated files... none found
processing JuliaLanguage.tex... latex manual/index manual/introduction manual/getting-started manual/variables manual/integers-and-floating-point-numbers manual/mathematical-operations manual/complex-and-rational-numbers manual/strings manual/functions manual/control-flow manual/variables-and-scoping manual/types manual/methods manual/constructors manual/conversion-and-promotion manual/modules manual/metaprogramming manual/arrays manual/linear-algebra manual/networking-and-streams manual/parallel-computing manual/nullable-types manual/interacting-with-julia manual/running-external-programs manual/calling-c-and-fortran-code manual/embedding manual/packages manual/performance-tips manual/style-guide manual/faq manual/noteworthy-differences manual/unicode-input stdlib/index stdlib/base stdlib/sparse stdlib/linalg stdlib/constants stdlib/file stdlib/punctuation stdlib/sort stdlib/pkg stdlib/collections stdlib/graphics stdlib/test stdlib/profile 
resolving references...
writing... done
copying TeX support files...
done
build succeeded.
sed -i bak '/graphicx/d' _build/latex/sphinx.sty
sed: can't find label for jump to `ak'
make: *** [latexpdf] Error 4
make: Leaving directory `/usr/local/src/julia/julia/doc'

@ivarne
Copy link
Sponsor Member

ivarne commented Sep 27, 2014

Seems to be related to #8479
cc @jiahao

Seems like you use a incompatible version of sed. I think there was some trouble with in-place substitution with sed last time I tried.

@rickhg12hs
Copy link
Contributor Author

My sed.

$ sed --version
sed (GNU sed) 4.2.2
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Jay Fenlason, Tom Lord, Ken Pizzini,
and Paolo Bonzini.
GNU sed home page: <https://www.gnu.org/software/sed/>.
General help using GNU software: <https://www.gnu.org/gethelp/>.
E-mail bug reports to: <[email protected]>.
Be sure to include the word ``sed'' somewhere in the ``Subject:'' field.

$ sed --help
Usage: sed [OPTION]... {script-only-if-no-other-script} [input-file]...

  -n, --quiet, --silent
                 suppress automatic printing of pattern space
  -e script, --expression=script
                 add the script to the commands to be executed
  -f script-file, --file=script-file
                 add the contents of script-file to the commands to be executed
  --follow-symlinks
                 follow symlinks when processing in place
  -i[SUFFIX], --in-place[=SUFFIX]
                 edit files in place (makes backup if SUFFIX supplied)
  -c, --copy
                 use copy instead of rename when shuffling files in -i mode
  -l N, --line-length=N
                 specify the desired line-wrap length for the `l' command
  --posix
                 disable all GNU extensions.
  -r, --regexp-extended
                 use extended regular expressions in the script.
  -s, --separate
                 consider files as separate rather than as a single continuous
                 long stream.
  -u, --unbuffered
                 load minimal amounts of data from the input files and flush
                 the output buffers more often
  -z, --null-data
                 separate lines by NUL characters
      --help     display this help and exit
      --version  output version information and exit

If no -e, --expression, -f, or --file option is given, then the first
non-option argument is taken as the sed script to interpret.  All
remaining arguments are names of input files; if no input files are
specified, then the standard input is read.

GNU sed home page: <https://www.gnu.org/software/sed/>.
General help using GNU software: <https://www.gnu.org/gethelp/>.
E-mail bug reports to: <[email protected]>.
Be sure to include the word ``sed'' somewhere in the ``Subject:'' field.

@jiahao
Copy link
Member

jiahao commented Sep 27, 2014

#8479 was merged to get the help for Unicode tab-completion in HTML format. Unfortunately this breaks the PDF build because I have no idea how to get any of pdflatex, xetex or luatex to compile a document with all the Unicode characters without complaining. I'm really stuck.

@jiahao
Copy link
Member

jiahao commented Sep 27, 2014

Regarding Times, try changing doc/conf.py:203 to a different font and see what works for you.

@rickhg12hs
Copy link
Contributor Author

Yeah, I can find fonts that work. I wonder how this could work for everybody, taking into account the fonts they have. Or could fonts be part of the source distro?

@jiahao
Copy link
Member

jiahao commented Sep 29, 2014

We should probably restrict ourselves (if possible) to standard fonts included in any reasonably complete and modern TeX distribution. I thought Times was one such font, but apparently not.

@tkelman
Copy link
Contributor

tkelman commented Sep 29, 2014

Seems like you use a incompatible version of sed. I think there was some trouble with in-place substitution with sed last time I tried.

OSX is the outlier, forces you to use an extension for in-place sed. But the space between -i and the extension is nonstandard.

@ivarne
Copy link
Sponsor Member

ivarne commented Sep 29, 2014

sed -ibak '/graphicx/d' _build/latex/sphinx.sty without space seems to work on OSX also. Should we just remove the space?

@tkelman
Copy link
Contributor

tkelman commented Sep 29, 2014

Should we just remove the space?

Yes.

ivarne added a commit that referenced this issue Sep 29, 2014
@ivarne
Copy link
Sponsor Member

ivarne commented Sep 29, 2014

Done in 4f98c92

@nolta nolta closed this as completed in a583726 Oct 3, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants