emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* change the fontsize when exporting to HTML, header not really changed
@ 2022-01-20  8:43 Uwe Brauer
  2022-01-20 11:48 ` Juan Manuel Macías
                   ` (4 more replies)
  0 siblings, 5 replies; 10+ messages in thread
From: Uwe Brauer @ 2022-01-20  8:43 UTC (permalink / raw)
  To: emacs-orgmode


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



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: change the fontsize when exporting to HTML, header not really changed
  2022-01-20  8:43 change the fontsize when exporting to HTML, header not really changed Uwe Brauer
@ 2022-01-20 11:48 ` Juan Manuel Macías
  2022-01-20 16:14   ` Uwe Brauer
  2022-01-20 11:56 ` Eric S Fraga
                   ` (3 subsequent siblings)
  4 siblings, 1 reply; 10+ messages in thread
From: Juan Manuel Macías @ 2022-01-20 11:48 UTC (permalink / raw)
  To: Uwe Brauer; +Cc: orgmode

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 


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: change the fontsize when exporting to HTML, header not really changed
  2022-01-20  8:43 change the fontsize when exporting to HTML, header not really changed Uwe Brauer
  2022-01-20 11:48 ` Juan Manuel Macías
@ 2022-01-20 11:56 ` Eric S Fraga
  2022-01-20 16:27 ` Max Nikulin
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 10+ messages in thread
From: Eric S Fraga @ 2022-01-20 11:56 UTC (permalink / raw)
  To: emacs-orgmode

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


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: change the fontsize when exporting to HTML, header not really changed
  2022-01-20 11:48 ` Juan Manuel Macías
@ 2022-01-20 16:14   ` Uwe Brauer
  0 siblings, 0 replies; 10+ messages in thread
From: Uwe Brauer @ 2022-01-20 16:14 UTC (permalink / raw)
  To: emacs-orgmode

[-- 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 --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: change the fontsize when exporting to HTML, header not really changed
  2022-01-20  8:43 change the fontsize when exporting to HTML, header not really changed Uwe Brauer
  2022-01-20 11:48 ` Juan Manuel Macías
  2022-01-20 11:56 ` Eric S Fraga
@ 2022-01-20 16:27 ` Max Nikulin
  2022-01-20 16:42 ` Timothy
  2022-01-20 17:56 ` change the fontsize when exporting to HTML, header not really changed Juan Manuel Macías
  4 siblings, 0 replies; 10+ messages in thread
From: Max Nikulin @ 2022-01-20 16:27 UTC (permalink / raw)
  To: emacs-orgmode

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.



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: change the fontsize when exporting to HTML, header not really changed
  2022-01-20  8:43 change the fontsize when exporting to HTML, header not really changed Uwe Brauer
                   ` (2 preceding siblings ...)
  2022-01-20 16:27 ` Max Nikulin
@ 2022-01-20 16:42 ` Timothy
  2022-01-20 17:45   ` Uwe Brauer
  2022-01-20 17:55   ` [Solved] (was: change the fontsize when exporting to HTML, header not really changed) Uwe Brauer
  2022-01-20 17:56 ` change the fontsize when exporting to HTML, header not really changed Juan Manuel Macías
  4 siblings, 2 replies; 10+ messages in thread
From: Timothy @ 2022-01-20 16:42 UTC (permalink / raw)
  To: Uwe Brauer; +Cc: emacs-orgmode

[-- 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

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: change the fontsize when exporting to HTML, header not really changed
  2022-01-20 16:42 ` Timothy
@ 2022-01-20 17:45   ` Uwe Brauer
  2022-01-20 17:55   ` [Solved] (was: change the fontsize when exporting to HTML, header not really changed) Uwe Brauer
  1 sibling, 0 replies; 10+ messages in thread
From: Uwe Brauer @ 2022-01-20 17:45 UTC (permalink / raw)
  To: Timothy; +Cc: Uwe Brauer, emacs-orgmode

[-- 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 --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Solved] (was: change the fontsize when exporting to HTML, header not really changed)
  2022-01-20 16:42 ` Timothy
  2022-01-20 17:45   ` Uwe Brauer
@ 2022-01-20 17:55   ` Uwe Brauer
  1 sibling, 0 replies; 10+ messages in thread
From: Uwe Brauer @ 2022-01-20 17:55 UTC (permalink / raw)
  To: Timothy; +Cc: Uwe Brauer, emacs-orgmode

[-- 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 --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: change the fontsize when exporting to HTML, header not really changed
  2022-01-20  8:43 change the fontsize when exporting to HTML, header not really changed Uwe Brauer
                   ` (3 preceding siblings ...)
  2022-01-20 16:42 ` Timothy
@ 2022-01-20 17:56 ` Juan Manuel Macías
  2022-01-21 17:21   ` Uwe Brauer
  4 siblings, 1 reply; 10+ messages in thread
From: Juan Manuel Macías @ 2022-01-20 17:56 UTC (permalink / raw)
  To: Uwe Brauer; +Cc: orgmode, Eric S Fraga

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 


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: change the fontsize when exporting to HTML, header not really changed
  2022-01-20 17:56 ` change the fontsize when exporting to HTML, header not really changed Juan Manuel Macías
@ 2022-01-21 17:21   ` Uwe Brauer
  0 siblings, 0 replies; 10+ messages in thread
From: Uwe Brauer @ 2022-01-21 17:21 UTC (permalink / raw)
  To: emacs-orgmode

[-- 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 --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2022-01-21 17:44 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-20  8:43 change the fontsize when exporting to HTML, header not really changed Uwe Brauer
2022-01-20 11:48 ` Juan Manuel Macías
2022-01-20 16:14   ` Uwe Brauer
2022-01-20 11:56 ` Eric S Fraga
2022-01-20 16:27 ` Max Nikulin
2022-01-20 16:42 ` Timothy
2022-01-20 17:45   ` Uwe Brauer
2022-01-20 17:55   ` [Solved] (was: change the fontsize when exporting to HTML, header not really changed) Uwe Brauer
2022-01-20 17:56 ` change the fontsize when exporting to HTML, header not really changed Juan Manuel Macías
2022-01-21 17:21   ` Uwe Brauer

Code repositories for project(s) associated with this inbox:

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).