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

starttitlepagemakeup #12

Open
juh2 opened this issue Jul 31, 2015 · 8 comments
Open

starttitlepagemakeup #12

juh2 opened this issue Jul 31, 2015 · 8 comments
Assignees

Comments

@juh2
Copy link

juh2 commented Jul 31, 2015

Some styles for titlepagemakeup seems to be hardcoded in pandoc-xhtml.tex. For eg. italic font for titles and small caps for authors.

Is it possible to override these styles in an style environment?

Wouldn't it be better if such things were not defined in pandoc-xhtml.tex

@ousia ousia self-assigned this Jul 31, 2015
@ousia
Copy link
Owner

ousia commented Jul 31, 2015

I agree, @juh2.

I realized that before, but I was too lazy to think of a solution 😃.

Do you need only style or align and other properties should be different for you?

@juh2
Copy link
Author

juh2 commented Aug 7, 2015

Sorry for answering late. I cannot tell exactly what I need, because for now I haven't decided about the layout of the book at all. Styles and Align sounds reasonable.

@juh2
Copy link
Author

juh2 commented Aug 25, 2015

Hi @ousia

I just came across this: http://www.pragma-ade.com/general/manuals/details.pdf

On page 9 a horizontal grid is described. Keyword is horizontal fake columns. Is this a reasonable way of positioning titles, epigraphs and dedications on a page?

@ousia
Copy link
Owner

ousia commented Aug 27, 2015

@juh2,

I’m afraid I have never used grids (either vertical or horizontal).

I wonder whether this might be a much more complicated way of doing things.

This question comes from my ignorance: what could be achieved with horizontal grid that it is much harder (or even impossible) with other means?

The way I position elements such as titles, epigraphs and dedications are related to the page or text area itself, not to some part of it (in both horizontal and vertical axes).

@juh2
Copy link
Author

juh2 commented Sep 2, 2015

Grids are the usual way to position elements in desktop publishing programs. I often work together with designers that are grid oriented. For this use case you certainly don't need them. But maybe for a multicolumn document grids might be a good approach. I'll have a look at them as soon as I have a little spare time.

@juh2
Copy link
Author

juh2 commented Jan 20, 2016

I attach a screenshot of my current project. If titles are on two lines the vertical space between the lines is too small. And it would be better if titles are not justified but left aligned.
bildschirmfoto vom 2016-01-20 08-23-35

@ousia
Copy link
Owner

ousia commented Jan 20, 2016

The original style environment (from-pandoc-to-context.tex) contains the following lines:

\definemakeup
    [titlepage]
    [align={middle},
     doublesided=no,
     pagestate=start]

You can always setup align=right.

As for the interline space, the fastest way (before I find the time for a better solution) would be to replace in pandoc-xhtml.tex:

{\itd\xmltext{#1}{h1[@class='title']}\par}\blank[big]
{\resetbreakpoints\itb\setupinterlinespace \xmltext{#1}{h1[@class='subtitle']}\par}\blank[3*big]
{\sc \xmlconcat{#1}{/h2[contains(@class,'author')]}{\\}}

with

{\itd\setupinterlinespace[line=2.8ex]
\xmltext{#1}{h1[@class='title']}\par}\blank[big]
{\resetbreakpoints\itb\setupinterlinespace \xmltext{#1}{h1[@class='subtitle']}\par}\blank[3*big]
{\sc \xmlconcat{#1}{/h2[contains(@class,'author')]}{\\}}

@juh2
Copy link
Author

juh2 commented Jan 20, 2016

Thanks a lot. This fixes the issue for now. :-)

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

2 participants