Discussion:
Newpage in SGML
(too old to reply)
n***@nowhere.com
2006-01-21 15:05:47 UTC
Permalink
Hello,

I have to print an SGML document.

<!doctype debiandoc public "-//DebianDoc//DTD DebianDoc//FR"
"debiandoc/dtd/sgml/1.0/debiandoc.dtd" []>

Unfortunately I have no knowleges about it.

I can get a PDF file using "make pdf"
I want to have 2 pages on 1 I order to save paper (using pdfnup).

Unfortunately when I do this the chapter title is on the right part of
the page (instead of beginning on the left part of the page).

I order to avoid this I need to insert a blank page...

Could you say me how to do this ?

(I don't want to insert a \newpage (or \pagebreak) in the .tex file... I
want to do this in the source SGML



Could you send me some link about SGML tutorials ?



What are the main differences between SGML/DocBook/LaTeX ? (because I'm
a LaTeX user)


Regards
Peter Flynn
2006-01-21 23:51:21 UTC
Permalink
Post by n***@nowhere.com
Hello,
I have to print an SGML document.
<!doctype debiandoc public "-//DebianDoc//DTD DebianDoc//FR"
"debiandoc/dtd/sgml/1.0/debiandoc.dtd" []>
Unfortunately I have no knowleges about it.
I can get a PDF file using "make pdf"
I want to have 2 pages on 1 I order to save paper (using pdfnup).
Unfortunately when I do this the chapter title is on the right part of
the page (instead of beginning on the left part of the page).
I order to avoid this I need to insert a blank page...
Could you say me how to do this ?
(I don't want to insert a \newpage (or \pagebreak) in the .tex file... I
want to do this in the source SGML
SGML (and XML) documents don't normally have any formatting in them,
although sometimes they can carry the name of the stylesheet. Some
document types do allow "tweaks" like pagebreaks, so you should read
the Debian SGML documentation to find out if this is the case. See
http://www.debian.org/doc/manuals/sgml-howto/x306.html
Post by n***@nowhere.com
Could you send me some link about SGML tutorials ?
The best place for an overview is the TEI chapter "A Gentle Introduction
to SGML", see http://www.tei-c.org/Guidelines2/index.xml.ID=P4 for links.
Post by n***@nowhere.com
What are the main differences between SGML/DocBook/LaTeX ? (because I'm
a LaTeX user)
Think of SGML (or, rather, XML nowadays) as LaTeX without the formatting
That is, structure and identity only, with *all* the formatting done by
the class and packages files. SGML uses start-tags and end-tags like
<quotation> and </quotation> instead of \begin{quotation} and
\end{quotation}, and it is completely regular and rigorous, so you can
have <chapter> and </chapter> instead of just \chapter{...}. Because
SGML is just a specification, not a language, you can write your own
tagset, defining your own names for things. It's the stylesheet where
these are translated into some typesettable output (eg LaTeX), for
example <chapter><title>Introduction</title>... would be translated
into \chapter{Introduction}. Stylesheets for SGML are usually written
in DSSSL or a processing language such as Omnimark. XML, which is more
common nowadays, uses a stylesheet specification called XSLT.

Because you can design your own markup, there are many pre-existing
types of document which people have written (analagous to LaTeX classes
but without the formatting). HTML is one of these. DocBook is another,
much more rigorous, and intended for computing documentation. Yet
another is TEI, aimed at literary and historical work. Most of them
are available in both SGML and XML formats (the differences are small
but significant).

I think in your case you really need to contact the Debian people for
help. See http://packages.debian.org/unstable/text/debiandoc-sgml.
The DebianDoc format is apparently translatable into a number of
different formats (including LaTeX, of course) but I don't know if
it has any way to specify a forced page-break. The list server at
lists.debian.org seems to have some relevant mailing lists where you
can ask questions.

///Peter
--
XML FAQ: http://xml.silmaril.ie/
n***@nowhere.com
2006-01-23 07:14:14 UTC
Permalink
Post by Peter Flynn
http://www.debian.org/doc/manuals/sgml-howto/x306.html
http://www.tei-c.org/Guidelines2/index.xml.ID=P4 for links.
http://packages.debian.org/unstable/text/debiandoc-sgml.
Thanks a lot for the links...
I don't see any way to do a forced page break in SGML/DebianDoc

I have change the tex file and print

If you find anyway to to this,could you post your solution here


Regards
Peter Flynn
2006-01-23 20:46:21 UTC
Permalink
Post by n***@nowhere.com
Post by Peter Flynn
http://www.debian.org/doc/manuals/sgml-howto/x306.html
http://www.tei-c.org/Guidelines2/index.xml.ID=P4 for links.
http://packages.debian.org/unstable/text/debiandoc-sgml.
Thanks a lot for the links...
I don't see any way to do a forced page break in SGML/DebianDoc
I have change the tex file and print
If you find anyway to to this,could you post your solution here
I was unable to find a working copy of the DTD, so there is
nothing I can do, I'm sorry.

///Peter
--
XML FAQ: http://xml.silmaril.ie/
n***@nowhere.com
2006-01-27 16:38:03 UTC
Permalink
Post by Peter Flynn
I was unable to find a working copy of the DTD, so there is
nothing I can do, I'm sorry.
Hello,

This is the dtd
$ cat /usr/share/sgml/debiandoc/dtd/sgml/1.0/debiandoc.dtd

<!--
dtd/debiandoc.dtd

Copyright 1998-2004 Ardo van Rangelrooij
Copyright 1996 Ian Jackson

This is free software. You may distribute it under the terms of
the GNU General Public Licence, version 2 or at your option any
later version.

This DTD was inspired by linuxdoc.dtd which was based on QWERTZ.
Contributors to linuxdoc.dtd include Matt Welsh, Greg Hankins,
Eric Raymond, Marc Baudoin, Tristan Debeaupuis and Tom Gordon.
-->

<!ENTITY % ISOamsa PUBLIC
"ISO 8879:1986//ENTITIES Added Math Symbols: Arrow Relations//EN">
%ISOamsa;

<!ENTITY % ISOamsb PUBLIC
"ISO 8879:1986//ENTITIES Added Math Symbols: Binary Operators//EN">
%ISOamsb;

<!ENTITY % ISOamsc PUBLIC
"ISO 8879:1986//ENTITIES Added Math Symbols: Delimiters//EN">
%ISOamsc;

<!ENTITY % ISOamsn PUBLIC
"ISO 8879:1986//ENTITIES Added Math Symbols: Negated Relations//EN">
%ISOamsn;

<!ENTITY % ISOamso PUBLIC
"ISO 8879:1986//ENTITIES Added Math Symbols: Ordinary//EN">
%ISOamso;

<!ENTITY % ISOamsr PUBLIC
"ISO 8879:1986//ENTITIES Added Math Symbols: Relations//EN">
%ISOamsr;

<!ENTITY % ISObox PUBLIC
"ISO 8879:1986//ENTITIES Box and Line Drawing//EN">
%ISObox;

<!ENTITY % ISOcyr1 PUBLIC
"ISO 8879:1986//ENTITIES Russian Cyrillic//EN">
%ISOcyr1;

<!ENTITY % ISOcyr2 PUBLIC
"ISO 8879:1986//ENTITIES Non-Russian Cyrillic//EN">
%ISOcyr2;

<!ENTITY % ISOdia PUBLIC
"ISO 8879:1986//ENTITIES Diacritical Marks//EN">
%ISOdia;

<!ENTITY % ISOgrk1 PUBLIC
"ISO 8879:1986//ENTITIES Greek Letters//EN">
%ISOgrk1;

<!ENTITY % ISOgrk2 PUBLIC
"ISO 8879:1986//ENTITIES Monotoniko Greek//EN">
%ISOgrk2;

<!ENTITY % ISOgrk3 PUBLIC
"ISO 8879:1986//ENTITIES Greek Symbols//EN">
%ISOgrk3;

<!ENTITY % ISOgrk4 PUBLIC
"ISO 8879:1986//ENTITIES Alternative Greek Symbols//EN">
%ISOgrk4;

<!ENTITY % ISOlat1 PUBLIC
"ISO 8879:1986//ENTITIES Added Latin 1//EN">
%ISOlat1;

<!ENTITY % ISOlat2 PUBLIC
"ISO 8879:1986//ENTITIES Added Latin 2//EN">
%ISOlat2;

<!ENTITY % ISOnum PUBLIC
"ISO 8879:1986//ENTITIES Numeric and Special Graphic//EN">
%ISOnum;

<!ENTITY % ISOpub PUBLIC
"ISO 8879:1986//ENTITIES Publishing//EN">
%ISOpub;

<!ENTITY % ISOtech PUBLIC
"ISO 8879:1986//ENTITIES General Technical//EN">
%ISOtech;

<!ENTITY urlname sdata "" >

<!ENTITY % xref "ref|manref|email|ftpsite|ftppath|httpsite|httppath|url">
<!ENTITY % emph "em|strong|var|package|prgn|file|tt|qref">
<!ENTITY % list "list|enumlist|taglist">
<!ENTITY % inline "(#pcdata|%emph|%xref|footnote|comment)+">
<!ENTITY % inpara "((%inline)|(%list)|example|include)+">
<!ENTITY % paras "(p+)">
<!ENTITY % sect "heading,(%paras)?">

<!ELEMENT debiandoc o o (book)>
<!ELEMENT book - - (titlepag,toc?,chapt+,appendix*)>
<!ATTLIST book id cdata #implied>

<!ELEMENT titlepag o o
(title,author+,translator*,version?,abstract?,copyright?)>
<!ELEMENT title - o (%inline)>
<!ELEMENT author - o (name,email?)>
<!ELEMENT translator - o (name,email?)>
<!ELEMENT name o o (%inline) -(email)>
<!ELEMENT version - o (#pcdata|date)+>
<!ELEMENT date - o empty>
<!ELEMENT abstract - o (%inpara)>
<!ELEMENT copyright - o (copyrightsummary+,p*)>
<!ELEMENT copyrightsummary o o (%inpara)>

<!ELEMENT toc - o empty>
<!ATTLIST toc detail (chapt|sect|sect1|sect2) "sect">

<!ELEMENT chapt - o ((%sect),sect*)>
<!ATTLIST chapt id cdata #implied>
<!ELEMENT appendix - o ((%sect),sect*)>
<!ATTLIST appendix id cdata #implied>
<!ELEMENT sect - o ((%sect),sect1*)>
<!ATTLIST sect id cdata #implied>
<!ELEMENT sect1 - o ((%sect),sect2*)>
<!ATTLIST sect1 id cdata #implied>
<!ELEMENT sect2 - o ((%sect),sect3*)>
<!ATTLIST sect2 id cdata #implied>
<!ELEMENT sect3 - o ((%sect),sect4*)>
<!ATTLIST sect3 id cdata #implied>
<!ELEMENT sect4 - o (%sect)>
<!ATTLIST sect4 id cdata #implied>

<!ELEMENT heading o o (%inline) -(%xref)>
<!ELEMENT p o o (%inpara)>

<!ELEMENT example - - (%inline) -(em|strong|package|prgn|file|tt|%xref)>
<!ATTLIST example compact (compact) #implied>
<!ELEMENT include - o empty>
<!ATTLIST include source cdata #required
language (text) "text"
compact (compact) #implied>

<!ELEMENT footnote - - (%paras)>
<!ELEMENT comment - - (%paras)>
<!ATTLIST comment editor cdata "">

<!ELEMENT list - - (item+)>
<!ATTLIST list compact (compact) #implied>
<!ELEMENT enumlist - - (item+)>
<!ATTLIST enumlist compact (compact) #implied
continue (continue) #implied
numeration
(arabic|upperalpha|loweralpha|upperroman|lowerroman) "arabic">
<!ELEMENT taglist - - (tag+,item)+>
<!ATTLIST taglist compact (compact) #implied>
<!ELEMENT tag - o (%inline)>
<!ELEMENT item - o (%paras)>

<!ELEMENT em - - (%inline)>
<!ELEMENT strong - - (%inline)>
<!ELEMENT var - - (%inline)>
<!ELEMENT package - - (%inline)>
<!ELEMENT prgn - - (%inline)>
<!ELEMENT file - - (%inline)>
<!ELEMENT tt - - (%inline)>
<!ELEMENT qref - - (%inline)>
<!ATTLIST qref id cdata #required>

<!ELEMENT ref - o empty>
<!ATTLIST ref id cdata #required>
<!ELEMENT manref - o empty>
<!ATTLIST manref name cdata #required
section cdata #required>
<!ELEMENT email o o (#pcdata)>
<!ELEMENT ftpsite - - (#pcdata)>
<!ELEMENT ftppath - - (#pcdata)>
<!ELEMENT httpsite - - (#pcdata)>
<!ELEMENT httppath - - (#pcdata)>
<!ELEMENT url - o empty>
<!ATTLIST url id cdata #required
name cdata "&urlname">


Regards
Peter Flynn
2006-01-28 00:29:21 UTC
Permalink
Post by n***@nowhere.com
Post by Peter Flynn
I was unable to find a working copy of the DTD, so there is
nothing I can do, I'm sorry.
Hello,
This is the dtd
$ cat /usr/share/sgml/debiandoc/dtd/sgml/1.0/debiandoc.dtd
If that's all there is, then the answer is simple, as you can see by
inspection. There is no provision in this document type for forced
pagebreaks.

The only way to hint at them is to insert a Processing Instruction
such as

<?LaTeX \clearpage>

and hope that the processor (jade?) understands what to do with it.

(Incidentally, what a curious DTD: they abbreviate titlepage by
omitting the final "e", and chapter by omitting the final "er",
but they spell copyrightsummary in full :-)

///Peter
Georg Bisseling
2006-03-08 16:38:56 UTC
Permalink
Could it be as simple as specifying a "double page" option
to the program that converts to LaTeX?

Or to patch the LaTeX output in that way?

This would almost certainly pagebreaks to make chapters
begin at odd pages and therefor maybe cure the problem
with the headers.

Loading...