Zim

verbatim and other style at the same time

Asked by sorrowsbitch

hi all,

I am an enthusiastic new use who wants to use zim wiki for academic purposes (windows user). It seems to be the only desktop wiki easy to use and have latex support.

I do a lot of tables from statistical software which produces text tables. But it requires, of course, fixed width fonts to work properly. I have noticed that if you select any format for a piece of text in zim, like verbatim so my table looks nice, there is no way to highlight a section of it via ctrl+u or ctrl+b. I want to do that to pick out the important things on a big table. So I figured if I use a fixed width font everything will look fine and I was not wrong, but this time I realized that the html out looks wrong, because its font is not fixed width.

  I think I can solve my problem two ways:

1- Is there a way to have a two formats on one piece of text? Bold AND verbatim, for example?
2- Alternatively, how do I export to html using a different font? (mind you, my knowledge of html is quite limited)

thanks for listening :)

utku

Question information

Language:
English Edit question
Status:
Solved
For:
Zim Edit question
Assignee:
No assignee Edit question
Solved by:
Jaap Karssenberg
Solved:
Last query:
Last reply:
Revision history for this message
Jaap Karssenberg (jaap.karssenberg) said :
#1

On Tue, Oct 25, 2011 at 4:40 AM, sorrowsbitch <
<email address hidden>> wrote:

> 1- Is there a way to have a two formats on one piece of text? Bold AND
> verbatim, for example?
>

This is something I do want to implement eventually, but this makes the
programming more complex. For now there is no option to have multiple
formats at the same time.

> 2- Alternatively, how do I export to html using a different font? (mind
> you, my knowledge of html is quite limited)
>

You can create a HTML template and modify the CSS style to set any font. See
the manual for some details on where to find the templates etc. I think you
can just set the font for a regular "p" element to "monospace" and it should
render all text with fixed font. A few internet searches will show up tons
of examples how to do this in HTML.

Hope this helps,

Jaap

Revision history for this message
sorrowsbitch (utkusu) said :
#2

thanks for your answer. I hope you can help me a bit more because I could not get monospace export work. I added a line as the following:

p { font-family: monospace, monospace }

to the beginning of the style file (default. html) in the css style section. And it gets me nothing. I really know nothing about CSS/HTML, so it would be great if anybody know how to do this chimes in.

Revision history for this message
Best Jaap Karssenberg (jaap.karssenberg) said :
#3

On Tue, Oct 25, 2011 at 4:35 PM, sorrowsbitch <
<email address hidden>> wrote:

> so it would be great if anybody know how to do this chimes in.
>

I'm the only one answering questions here - please check with the mailing
list - more people there that may be able to help.

-- Jaap

Revision history for this message
sorrowsbitch (utkusu) said :
#4

Thanks Jaap Karssenberg, that solved my question.