John Olson | 12 May 2007 05:30

Layout problem publishing to PDF

First, thanks to Michael Olson and everyone else who is working on 
Muse.  I'm enjoying it.

I am writing a document in Muse and publishing it as both HTML and PDF.  
I'm struggling with an anomaly in the PDF output with respect to image 
placement.  I suspect it is happening in pdflatex, but because the 
starting point is muse it seems easier to start asking questions in this 
group.

The problem:  Whatever creates the PDF file sometimes relocates images 
to unexpected places that are later in the document than I intended, and 
not even within the same heading or subheading.   This appears to be a 
function of how much space is left on a page, because their relative 
locations within the published document change with different versions, 
as previous material gets added or deleted.

The HTML output appears exactly as I expect, and the LaTeX file appears, 
to my untrained eye, to have everything in the proper order, so I think 
my muse file is reasonably correct and suspect the problem is in the PDF 
file creation.

I use Emacs 22.0.96.1 on Windows XP SP2, Muse updated with arch every 
few weeks, and MikTeX 2.6.

An example follows.  Even this snippet shows the odd behavior.  The 
resulting PDF document shows the images after the "References" section.  
The images appear not necessarily where they are in the muse file, but 
randomly in the document after where I want them, depending, apparently, 
on how much space is left on the page showing the Schematic Map and/or 
Relief Map.  Strange business.  I'll keep working toward figuring this 
(Continue reading)

Jim Ottaway | 12 May 2007 11:19
Picon
Favicon

Re: Layout problem publishing to PDF

>>>>> John Olson <kg6mar <at> arrl.net> writes:

> The problem:  Whatever creates the PDF file sometimes relocates images 
> to unexpected places that are later in the document than I intended, and 
> not even within the same heading or subheading.   This appears to be a 
> function of how much space is left on a page, because their relative 
> locations within the published document change with different versions, 
> as previous material gets added or deleted.

> The HTML output appears exactly as I expect, and the LaTeX file appears, 
> to my untrained eye, to have everything in the proper order, so I think 
> my muse file is reasonably correct and suspect the problem is in the PDF 
> file creation.

This is the normal behaviour of LaTeX for a figure environment: the
figure is "floated" to a position that LaTeX calculates is
typographically best.

There are lots of parameters in LaTeX that you can fiddle with to modify
how it calculates the best position, but it usually does a good job of
float placement with the defaults.

If you really want to have the figures precisely where you specify, this
can be done too, but it would involve some customization of Muse's latex
publishing settings.  

Regards,

--

-- 
Jim Ottaway
(Continue reading)

John Olson | 12 May 2007 15:45

Re: Muse-el-discuss Digest, Vol 13, Issue 1


> Date: Sat, 12 May 2007 10:19:58 +0100
> From: Jim Ottaway <j.ottaway <at> lse.ac.uk>
> Subject: Re: [Muse-el-discuss] Layout problem publishing to PDF
>
>   
>>>>>> John Olson <kg6mar <at> arrl.net> writes:
>>>>>>             
>
>   
>> The problem:  Whatever creates the PDF file sometimes relocates images 
>> to unexpected places that are later in the document than I intended, and 
>> not even within the same heading or subheading.   This appears to be a 
>> function of how much space is left on a page, because their relative 
>> locations within the published document change with different versions, 
>> as previous material gets added or deleted.
>>     
> This is the normal behaviour of LaTeX for a figure environment: the
> figure is "floated" to a position that LaTeX calculates is
> typographically best.
>   

I understand.  Thanks very much.

-- John

Jason Wang | 13 May 2007 01:24
Picon

Some beginner questions regarding style

hello everyone!

recently I've taken up learning about emacs and i am trying out emacs muse.

I don't quite understand how styles work in muse, in the
documentation, the available styles are explained very well, but I'm
stumped on how to use the styles exactly. For example, if i am
publishing a project, and want to change default html 4.0 transitional
to XHTML, how would i change the style to reflect that? Also, is there
a way of specifying style for a single file? In a related question,
how do options work?

Any help regarding this matter would be much appreciated!
--

-- 
"It's a wonderful world hobbes ol' buddy, let's go explorin'!" -
Calvin in "Calvin and Hobbes"

Ensoul Chi | 13 May 2007 06:51
Picon

Re: Muse-el-discuss Digest, Vol 13, Issue 1

How could I implement this kind of table

 

 

 

 

 

 

 

 

 

 

 


Thanks.

--
------------------------------------------------
Ensoul Chi
<ensoul.magazine <at> gmail.com>
------------------------------------------------
<div>
<p>How could I implement this kind of table<br><br></p>
<table class="MsoTableGrid" border="1" cellpadding="0" cellspacing="0">
<tr>
<td valign="top" width="154">
  <p class="MsoNormal">&nbsp;</p>
  </td>
  <td valign="top" width="154">
  <p class="MsoNormal">&nbsp;</p>
  </td>
  <td valign="top" width="154">
  <p class="MsoNormal">&nbsp;</p>
  </td>
  <td valign="top" width="154">
  <p class="MsoNormal">&nbsp;</p>
  </td>
 </tr>
<tr>
<td colspan="4" valign="top" width="616">
  <p class="MsoNormal">&nbsp;</p>
  </td>
 </tr>
<tr>
<td valign="top" width="154">
  <p class="MsoNormal">&nbsp;</p>
  </td>
  <td colspan="2" valign="top" width="308">

  <p class="MsoNormal">&nbsp;</p>
  </td>
  <td valign="top" width="154">

  <p class="MsoNormal">&nbsp;</p>
  </td>
 </tr>
<tr>
<td valign="top" width="154">
  <p class="MsoNormal">&nbsp;</p>
  </td>
  <td valign="top" width="154">

  <p class="MsoNormal">&nbsp;</p>
  </td>
  <td colspan="2" valign="top" width="308">

  <p class="MsoNormal">&nbsp;</p>
  </td>
 </tr>
</table>
<br>Thanks.<br><br>-- <br>------------------------------------------------<br>Ensoul Chi<br>&lt;<a href="mailto:ensoul.magazine <at> gmail.com">ensoul.magazine <at> gmail.com</a>&gt;<br>------------------------------------------------
</div>
Jean Magnan de Bornier | 13 May 2007 17:30

anchor-ref and link-and-anchor markups with tex and pdf

Hi all,

I am lost with these two markups within a muse project; I am trying to
make them work with my muse-contex file. Having a hard time here I made
some experiments with latex.

Say I have two pages pageA and pageB in a project; I want to refer to
anchorA which I marked with #anchorA in pageA, from within pageB; so I
write in pageB: [[pageA#anchorA][Description]]; and this works well when publishing to
html.

Latex: when published in latex, the pageB.tex file has: 

\href{pageA.html}{pageA\#anchorA}

and will not compile, either dvi or pdf output.

Context:

There at least I know what I should obtain to get the desired result:
click in a pdf document on the (highlighted) link and have the other document
open at the right page. And I know how to do it by hand; I should have
this in the pageB.tex document:

\useexternaldocument [pageA][pageA][]
\at{<description>, page}{}[pageA::anchorA].

So I tried this for link-and-anchor:
\useexternaldocument [%1%][%1%][] 
\at{%3%, page}{}[%1%::%2%]

Unfortunately, what I get in the pageB.tex document is a string :
\useexternaldocument [pageA.tex][pageA.tex][]
\at{<description>, page}{}[pageA.tex::anchorA] 

So the question is, can I obtain that muse when publishing to contex or
contex-pdf gives the page *without extension*?

(I tried to put valid elisp code to remove the four last characters of
%1% (the extension), surrounded by <lisp></lisp>, it didn't work)

tia,
--

-- 
jean

Ensoul Chi | 14 May 2007 05:04
Picon

[Question] How to implement table in MUSE?

Hi.

I have two questions on tables in muse:
1. How to implement this kind of tables?

Item

Item

Item

Item

Item

Item

Item

  • Item
  • Item
  • Item

Item

Item

Item

Item

  • Item
  • Item

2. How to add list as item in table?

Thanks

--
------------------------------------------------
Ensoul Chi
<ensoul.magazine <at> gmail.com >
------------------------------------------------
<div>
<p>Hi.<br><br>I have two questions on tables in muse:<br>1. How to implement this kind of tables?<br></p>
<table class="MsoTableGrid" border="1" cellpadding="0" cellspacing="0">
<tr>
<td valign="top" width="123">
  <p class="MsoNormal">Item</p>
  </td>
  <td valign="top" width="123">
  <p class="MsoNormal">Item</p>
  </td>
  <td valign="top" width="123">
  <p class="MsoNormal">Item</p>
  </td>
  <td valign="top" width="123">
  <p class="MsoNormal">Item</p>
  </td>
  <td valign="top" width="123">
  <p class="MsoNormal">Item</p>
  </td>
 </tr>
<tr>
<td colspan="5" valign="top" width="616">
  <p class="MsoNormal">Item</p>
  </td>
 </tr>
<tr>
<td valign="top" width="123">
  <p class="MsoNormal">Item</p>
  </td>
  <td colspan="3" valign="top" width="370">

  <ul type="disc">
<li class="MsoNormal">Item</li>
<li class="MsoNormal">Item</li>
<li class="MsoNormal">Item</li>
</ul>
</td>
  <td valign="top" width="123">

  <p class="MsoNormal">Item</p>
  </td>
 </tr>
<tr>
<td valign="top" width="123">
  <p class="MsoNormal">Item</p>
  </td>
  <td valign="top" width="123">

  <p class="MsoNormal">Item</p>
  </td>
  <td valign="top" width="123">

  <p class="MsoNormal">Item</p>
  </td>
  <td colspan="2" valign="top" width="247">

  <ul type="disc">
<li class="MsoNormal">Item</li>
<li class="MsoNormal">Item</li>
</ul>
</td>
 </tr>
</table>
<br>2. How to add list as item in table?<br><br>Thanks<br clear="all"><br>-- <br>------------------------------------------------<br>Ensoul Chi<br>&lt;<a href="mailto:ensoul.magazine <at> gmail.com">ensoul.magazine <at> gmail.com</a>
&gt;<br>------------------------------------------------
</div>
Ensoul Chi | 14 May 2007 05:25
Picon

[QUESTION] How to add content of a wiki pange?

Hi:

1. How to add content to a wiki pange?

2. How to add search function in wiki pange?

Thanks

--
------------------------------------------------
Ensoul Chi
< ensoul.magazine <at> gmail.com>
------------------------------------------------

<div><p>Hi:<br><br>1. How to add content to a wiki pange?<br clear="all"><br>2. How to add search function in wiki pange?<br><br>Thanks<br><br>-- <br>------------------------------------------------<br>Ensoul Chi<br>&lt;<a href="mailto:ensoul.magazine <at> gmail.com">
ensoul.magazine <at> gmail.com</a>&gt;<br>------------------------------------------------
</p></div>
Phillip Lord | 14 May 2007 12:53
Picon
Picon
Favicon
Gravatar

Re: Some beginner questions regarding style

>>>>> "JW" == Jason Wang <randomtalk <at> gmail.com> writes:

  JW> hello everyone!

  JW> recently I've taken up learning about emacs and i am trying out
  JW> emacs muse.

  JW> I don't quite understand how styles work in muse, in the
  JW> documentation, the available styles are explained very well, but
  JW> I'm stumped on how to use the styles exactly. For example, if i
  JW> am publishing a project, and want to change default html 4.0
  JW> transitional to XHTML, how would i change the style to reflect
  JW> that? Also, is there a way of specifying style for a single
  JW> file? In a related question, how do options work?

You can publish an entire project if you choose. In this case, the
project defines the style that is used. So 

(setq muse-project-alist
      `(

       ("Silly"
         ("~/src/ht/home_website/silly" :default "WelcomePage.muse")
         (:base "wiki-html" :path "~/src/ht/home_website/silly"))))

will define a project called "Silly" in the appropriate directory. The
:base "wiki-html" part defines the style. Muse comes with "html" and
"xhtml" styles which you could use to switch styles as you
asked. Projects are directory based, so all the files in one directory
are going to be one style, unless you do something more complicated. 

You can also publish an individual file "M-x muse-publish-this-file"
or C-c C-t I think. Here you specify the style individually when
prompted. 

Does this help? 

Phil

Phillip Lord | 14 May 2007 12:56
Picon
Picon
Favicon
Gravatar

Re: [Question] How to implement table in MUSE?

>>>>> "EC" == Ensoul Chi <ensoul.magazine <at> gmail.com> writes:

  EC> Hi.

  EC> I have two questions on tables in muse:
  EC> 1. How to implement this kind of tables?

This isn't a table, but an embedded list. It should work out of the
box.

 - 1 deep item 
 - item
   - 2 deep item 
   - item 
 - 1 deep item

  EC> 2. How to add list as item in table?

I don't think you can at the moment. 

At some point all of the muse markups need an equivalent tag so that
they can be put anywhere. I have the same problem with anchors in
lists. I have to use 

 - <literal><a name="#wide-column.el"/></literal> stuff

which works but is style specific. That is, it only works with HTML. 

Phil


Gmane