• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

pictures/H03-May-2022-

MakefileH A D25-Dec-202113.4 KiB355180

README.mdH A D25-Dec-20219.3 KiB231142

StyleInd.istH A D25-Dec-2021331 44

app_accuracy.texH A D25-Dec-202116.1 KiB301252

app_acknowledgements.texH A D25-Dec-202129.5 KiB432397

app_bortle_scale.texH A D25-Dec-20215.7 KiB144119

app_config_ini.texH A D25-Dec-202174.6 KiB993902

app_hotkeys.texH A D25-Dec-202114.9 KiB442410

app_license.texH A D25-Dec-202121.8 KiB16096

app_nomenclature.texH A D25-Dec-202116.8 KiB241215

app_ssystem_ini.texH A D25-Dec-202121.6 KiB577475

app_star_catalogue.texH A D25-Dec-202198.5 KiB1,8341,723

catoptions.styH A D25-Dec-2021182.3 KiB6,3326,289

ch_advanced_use.texH A D25-Dec-202128.3 KiB562479

ch_astronomical_concepts.texH A D25-Dec-202156.3 KiB1,170981

ch_astronomical_phenomena.texH A D25-Dec-202159.3 KiB1,2051,014

ch_dso.texH A D25-Dec-202137.4 KiB799691

ch_exercises.texH A D25-Dec-20219 KiB213169

ch_getting_started.texH A D25-Dec-20218.8 KiB214172

ch_interface.texH A D25-Dec-202164 KiB1,3931,165

ch_introduction.texH A D25-Dec-20218.7 KiB170149

ch_landscapes.texH A D25-Dec-202139.4 KiB934845

ch_landscapes_gz.texH A D25-Dec-202179 KiB1,6611,437

ch_plugins.texH A D25-Dec-20213.4 KiB8768

ch_scripting.texH A D25-Dec-202111.4 KiB317273

ch_sky_guide.texH A D25-Dec-202127.7 KiB541449

ch_skycultures.texH A D25-Dec-202118.4 KiB393326

ch_surveys.texH A D25-Dec-20215.9 KiB153123

ch_tour.texH A D25-Dec-202117.8 KiB331276

guide.bibH A D25-Dec-202170.4 KiB1,9731,800

guide.mk4H A D25-Dec-2021369 1513

guide.texH A D25-Dec-202114.7 KiB368300

htFixes.cfgH A D25-Dec-20214.3 KiB12799

menukeys.styH A D25-Dec-202127.9 KiB879849

pgfsys-tex4ht.defH A D25-Dec-202117.5 KiB490430

plg_archaeolines.texH A D25-Dec-202112.7 KiB260226

plg_atTheTelescope.texH A D25-Dec-202160.8 KiB1,077889

plg_calendars.texH A D25-Dec-202113.7 KiB285250

plg_catalogs.texH A D25-Dec-202185.3 KiB1,3431,182

plg_interfaces.texH A D25-Dec-202136.4 KiB673558

plg_scenery3d.texH A D25-Dec-202147.5 KiB893760

structure.texH A D25-Dec-202132 KiB783698

tab_accuracy.texH A D25-Dec-202120.7 KiB201195

tab_accuracy_tt.texH A D25-Dec-202115.2 KiB144139

README.md

1# README for Stellarium User Guide
2
3Georg Zotti, December 28, 2017
4
5Stellarium's user guide (SUG) for versions 0.15 and later has been re-assembled from the Stellarium wiki by Alexander Wolf and Georg Zotti and greatly extended into what they thought was a complete and optimal format: hyperlinked PDF, created by PDFLaTeX. LaTeX is intimidating to the uninitiated, but the best system in the world for those who are. By V0.17 it had almost 350 pages and came as 28MB PDF file.
6
7During moving the project to Github some demand has been expressed for again providing an online version of the manual, i.e., HTML. Other developers discussed even leaving LaTeX, but the guide editors resist moving. We decided to widen our typesetting capabilities further by trying to make the PDF smaller, and to make also an HTML version using `htlatex` or something similar.
8
9The interesting part is now getting all tools right to create the documents. Of course `make` is applied by using a Makefile. But regarding variants in TeX Systems, our multi-platform universe provides many options.
10
11## Installation of tools
12### Windows
13
14The classic TeX environment on Windows is MikTeX, a very complete TeX environment with its own package management system. Install it with the option to download missing packages as required.
15
16Alternatively, to be inline with the other Systems, consider TeXlive also for Windows (https://www.tug.org/texlive/windows.html).
17
18Windows is still the most common desktop platform in 2019, like it or not. However, its command shell is an embarassing relic of the DOS era and a far cry from tools available on the tiniest Linux system.
19The shortcomings of the command line have brought several Options for Linux-affine working:
20
21* GNUWin32 tools
22* Cygwin
23* MinGW
24* Windows Subsystem for Linux (WSL): Ubuntu for Windows 10. Consider installing Version 18.04 LTS.
25
26In addition, the GIT Version Control System brings its own MinGW-based git shell.
27
28The GNUWin32 project provides many important tools to fill in the gaps. From GnuWin32, we need to install make and uname. We also need to install GhostScript. Make sure the relevant programs are found in PATH. Also install Clink from http://mridgers.github.io/clink.
29
30Cygwin and Ubuntu can bring their own optional TeXLive installations, which may however be a bit outdated. If you have problems with the following setup, consider installing current TeXlive (see below). But if you have already MikTeX installed, you can use it from the MinGW/git, cygwin or Ubuntu bash shell and save the diskspace (up to a few gigabytes) for a TeX Installation. However, while cygwin and MinGW based shells will find executables in the Windows PATH called without the .exe extension, WSL/Ubuntu's shell needs the .exe in the called filenames.
31
32The Makefile is able to detect all these setups on Windows. You can check with
33
34```
35make diag
36```
37
38whether your System is properly identified. Note that it does not check whether the programs are installed! If Ubuntu's TeXlive is not installed, we only *assume* that MiKTeX has been installed and the programs available in PATH.
39
40### Linux
41
42These instructions are based on Ubuntu. Find out and add the changes required for your System.
43
44Ubuntu 14.04's TeXlive is a bit outdated. Install TeXlive directly. See https://www.tug.org/texlive/quickinstall.html
45
46On Ubuntu 18.04 and later the following should work:
47
48```
49sudo apt-get install texlive-base texlive-bibtex-extra texlive-latex-recommended \
50texlive-latex-extra texlive-pictures texlive-fonts-recommended biber make
51```
52
53
54### Mac OS X
55
56It is assumed that some system similar to TeXlive is available for Mac OS X. See https://www.tug.org/texlive/quickinstall.html
57
58
59
60
61## Building the PDF Guide
62
63if you run `make` or `make help`, you will see some instructions.
64
65With a completely configured system, all that should be required is
66
67```
68make SUG
69```
70
71* `make SUG` creates guide.pdf (full resolution) and a compressed version, SUG.pdf, which needs only about 33% of the size.
72
73You will find guide.pdf (full resolution) and the compressed version, SUG.pdf.
74
75
76## Building the HTML Guide
77
78Because of differences in the toolchains we must clean the stuff created with the PDF version.
79
80```
81make clean
82make html
83make clean
84```
85
86* `make html` creates the online version in a subdirectory.
87* `make clean` removes intermediate files. PDF and HTML directory will remain.
88* `make distclean` deletes all created files, also the PDF and HTML files.
89
90## htlatex and TeX4ht
91The workhorse for HTML creation from TeX-based sources is very flexible, but needs some configuration. I am not familiar yet with it, and it seems there is no good online tutorial for NOOBs. I will add my observations here as the project will continue.
92
93
94### Aim for the HTML Version
95
96The Stellarium Online Guide currently is a set of HTML pages cut at the chapter level. It could become a classical frameset: a narrow box on the left side with table of contents, and the content area on the right, maybe with a separate area for footnotes. Each chapter should become a page to facilitate fast loading. Colored boxes should be available, largely as they appear in the PDF Version. Hyperlinks to external sites should open a new tab or window, internal links should of course just load the other page.
97
98
99### State
100From what we know already:
101
102`htlatex` does not create HTML from the TeX files, but it creates a classical DVI file which is then further processed by the HTML creation process `ht4lt`. Therefore it seems useful to make sure a classical dvi file can be created. I added a dvi target for this.
103
104### Detect the processor
105
106We must discern pdflatex from Latex and htlatex.
107
108```
109\ifpdf
110    stuff that is processed by pdflatex only
111\else
112    stuff for htlatex or latex
113\fi
114```
115
116To encapsulate htlatex-only and pdflatex-only material, we defined code at the beginning of guide.tex and can now use (together with pdftex's built-in pdfoutput)
117
118```
119\ifhtlatex
120\documentclass[12pt,fleqn,dvipdfmx]{book} % Default font size and left-justified equations
121\else
122\ifx\pdfoutput\undefined
123  \documentclass[12pt,fleqn,dvipdfmx]{book} % Standard LaTeX
124\else
125  \documentclass[12pt,fleqn]{book} % runs with PDFLaTeX
126\fi
127\fi
128```
129
130
131
132### Updating TeXlive
133
134Ubuntu in Windows 10 Comes with TeXlive2013. Some online fora indicate we should use TeXlive's own package Manager.
135
136```
137sudo apt-get install xzdec
138tlmgr init-usertree
139tlmgr update --self
140
141```
142
143
144
145However, now Biber complains with a Version clash about outdated biblatex. Biber and biblatex need to match! See https://sourceforge.net/projects/biblatex-biber/files/biblatex-biber/current/documentation/biber.pdf/download
146
147--> Time to install Texlive 2017 on Ubuntu, so  `apt-get remove texlive-full biber`.
148
149In case you are on Cygwin: Install fontconfig, ghostscript, libXaw7 and ncurses from the Cygwin package Manager, then you can join Ubuntuists in the next step.
150
151I.e., download from http://tug.org/texlive/acquire-netinstall.html and run
152
153```
154tar zxvf install-tl-DATE.tar.gz
155cd install-tl-DATE
156sudo ./install-tl
157```
158
159This brings you into a simple text-based menu System. The full Installation takes about 5GB. Press [I] to start. If you are on a slow line, go to sleep. (And hope your Windows does not decide to reboot for an update as soon as you look away! I really despise this "feature"!)
160
161Then also fix PATHs in `~.profile`:
162
163```
164export PATH=/usr/local/texlive/2017/bin/x86_64-linux:$PATH
165export MANPATH=/usr/local/texlive/2017/texmf-dist/doc/man:$MANPATH
166export INFOPATH=/usr/local/texlive/2017/texmf-dist/doc/info:$INFOPATH
167```
168
169To install some new package, e.g. titling, from TUG:
170
171```
172tlmgr install titling
173```
174
175To update,
176
177```
178(sudo apt-get install xzdec)
179tlmgr update --self
180tlmgr update --all
181```
182
183
184## Why biblatex&biber, and not the classic bibtex?
185
186biblatex&biber is much more flexible. See
187https://tex.stackexchange.com/questions/25701/bibtex-vs-biber-and-biblatex-vs-natbib/25702
188However, both packages need to be updated in sync.
189
190## Finally a guide for beginners!
191
192I hope we can follow https://github.com/michal-h21/helpers4ht/wiki/tex4ht-tutorial
193
194Some more info also at https://www.12000.org/my_notes/faq/LATEX/html_and_latex.htm
195
196OK, we need more tools: tidy can cleanup HTML.
197
198```
199sudo apt-get install tidy
200```
201
202
203## Increase Memory of your LaTeX system
204Edit /usr/local/texlive/2017/texmf.cnf and add these lines:
205
206```
207buf_size=90000000
208pool_size=9000000
209main_memory=8000000
210stack_size = 15000       % simultaneous input sources
211```
212
213Then call
214
215```
216sudo fmtutil-sys --all
217```
218
219## Forbidden things
220
221Very odd: It seems section labels must not contain the name ":config". Or we have far too many labels. This seems to be a problem in the chapters with many tables. I had to reduce the number of valid labels.  Else: stack size exceeded.
222
223# Help Wanted!
224
225If you have some experience with tex4ht to create a pleasing online version of Stellarium's User Guide, please feel free to contribute your TeXnical wisdom. Discuss with the team what kind of format is most useful. Apparently a frameset is possible but requires some extra work in the configuration. (And it is pretty 90ies-ish. But what's wrong with that? Do something better then.) "The LaTeX Web Companion" will be your best friend, it is surprising how little in-depth information is available online.
226
227Some info is in
228
229* https://tex.stackexchange.com/questions/317686/trouble-building-a-site-with-frames-using-tex4ht and also
230* http://cvr.cc/?p=504.
231