Hi I am using something like this in my org files that I want to export to HTML: ,---- | | #+LANGUAGE: | #+EXPORT_FILE_NAME: /home/oub/Desktop/blabla | #+OPTIONS: toc:nil | #+HTML_HEAD_EXTRA: <style>*{font-size: 108%;}</style> | | * This is the first header | | Some text `---- Now some text is changed as expected the text in the header not really. Any idea what would be a more appropriate setting? Thanks and regards Uwe Brauer
Hi Uwe
Uwe Brauer writes:
> Now some text is changed as expected the text in the header not really.
>
> Any idea what would be a more appropriate setting?
Taking into account that h1 is the title, h2, h3, etc. are the classes
for the different header levels. You can put something like this:
#+HTML_HEAD: <style> h2 {font-size:108%}</style>
#+HTML_HEAD: <style> body {font-size:108%}</style>
Best regards,
Juan Manuel
On Thursday, 20 Jan 2022 at 09:43, Uwe Brauer wrote:
> Now some text is changed as expected the text in the header not really.
What style file is being used, if any? Have you looked at the HTML
created? It could be that there is a style setting for H1, H2, etc. and
maybe those settings come after the extra one you have added, therefore
taking precedence?
--
: Eric S Fraga, with org release_9.5.2-306-g9623da in Emacs 29.0.50
[-- Attachment #1: Type: text/plain, Size: 889 bytes --] >>> "JMM" == Juan Manuel Macías <maciaschain@posteo.net> writes: Hi Juan > Hi Uwe > Uwe Brauer writes: >> Now some text is changed as expected the text in the header not really. >> >> Any idea what would be a more appropriate setting? > Taking into account that h1 is the title, h2, h3, etc. are the classes > for the different header levels. You can put something like this: > #+HTML_HEAD: <style> h2 {font-size:108%}</style> > #+HTML_HEAD: <style> body {font-size:108%}</style> thanks very much but it seems not to work, I also tried #+HTML_HEAD_EXTRA: <style>*{font-size: 108%;}</style> #+HTML_HEAD_EXTRA: <style> h1 {font-size:108%}</style> #+HTML_HEAD_EXTRA: <style> h2 {font-size:108%}</style> But it did not work neither. Did you test it? I am on GNU Emacs master and git master (ok several weeks old, but still recent enough I'd say) Uwe [-- Attachment #2: smime.p7s --] [-- Type: application/pkcs7-signature, Size: 5673 bytes --]
On 20/01/2022 15:43, Uwe Brauer wrote: > > I am using something like this in my org files that I want to export to > HTML: > ,---- > | > | #+LANGUAGE: > | #+EXPORT_FILE_NAME: /home/oub/Desktop/blabla > | #+OPTIONS: toc:nil > | #+HTML_HEAD_EXTRA: <style>*{font-size: 108%;}</style> > | > | * This is the first header > | > | Some text > `---- > > Now some text is changed as expected the text in the header not really. > > Any idea what would be a more appropriate setting? - info "(org) CSS support" https://orgmode.org/manual/CSS-support.html - "Inspect" item in browser context menu on the element in question to determine HTML tag, its CSS classes, and applied rules.
[-- Attachment #1: Type: text/plain, Size: 362 bytes --] Hi Uwe, > | #+HTML_HEAD_EXTRA: <style>*{font-size: 108%;}</style> > > Now some text is changed as expected the text in the header not really. > > Any idea what would be a more appropriate setting? Try changing the body font size. This /should/ change everything. If not the default CSS should be adjusted (let me know and I will do so). All the best, Timothy
[-- Attachment #1: Type: text/plain, Size: 702 bytes --] >>> "T" == Timothy <tecosaur@gmail.com> writes: Hi Timothy, > Hi Uwe, >> | #+HTML_HEAD_EXTRA: <style>*{font-size: 108%;}</style> >> >> Now some text is changed as expected the text in the header not really. >> >> Any idea what would be a more appropriate setting? > Try changing the body font size. This /should/ change everything. Do you mean #+HTML_HEAD_EXTRA: <style> body {font-size:108%}</style> Not #+HTML_HEAD_EXTRA: <body> {font-size:108%}</body> I presume? In any case the first does not work, and the second neither. > If not the default CSS should be adjusted (let me know and I will do so). Do you mean on a per file base? Thanks Uwe [-- Attachment #2: smime.p7s --] [-- Type: application/pkcs7-signature, Size: 5673 bytes --]
[-- Attachment #1: Type: text/plain, Size: 590 bytes --] >>> "T" == Timothy <tecosaur@gmail.com> writes: Hi Timothy > Hi Uwe, >> | #+HTML_HEAD_EXTRA: <style>*{font-size: 108%;}</style> >> >> Now some text is changed as expected the text in the header not really. >> >> Any idea what would be a more appropriate setting? > Try changing the body font size. This /should/ change everything. If not the > default CSS should be adjusted (let me know and I will do so). #+HTML_HEAD_EXTRA: <style> body {font-size:150%}</style> Works as expected, please forget my earlier message, I did not test it enough. Thanks Uwe [-- Attachment #2: smime.p7s --] [-- Type: application/pkcs7-signature, Size: 5673 bytes --]
Uwe Brauer writes:
>But it did not work neither. Did you test it? I am on GNU Emacs master
>and git master (ok several weeks old, but still recent enough I'd say)
I hadn't seen Eric's message, but what he says makes a lot of sense: are
you applying a separate style sheet, perhaps with a *.setup document
that already has a header style defined? It looks like one style
overlaps another.
Best regards,
Juan Manuel
[-- Attachment #1: Type: text/plain, Size: 708 bytes --] >>> "JMM" == Juan Manuel Macías <maciaschain@posteo.net> writes: > Uwe Brauer writes: >> But it did not work neither. Did you test it? I am on GNU Emacs master >> and git master (ok several weeks old, but still recent enough I'd say) > I hadn't seen Eric's message, but what he says makes a lot of sense: are > you applying a separate style sheet, perhaps with a *.setup document > that already has a header style defined? It looks like one style > overlaps another. No I did not, but as I said in a different message, the problem is solved thanks to you.... #+HTML_HEAD_EXTRA: <style> body {font-size:150%}</style> Was the correct setting but deleting all the others I had left.... [-- Attachment #2: smime.p7s --] [-- Type: application/pkcs7-signature, Size: 5673 bytes --]