[libreoffice-users] Re: Including code example in documents

2013-08-12 Thread mariosv
Hi Éric,
maybe this extension can help:
http://extensions.libreoffice.org/extension-center/code-colorizer-formatter
Miguel Ángel.



--
View this message in context: 
http://nabble.documentfoundation.org/Including-code-example-in-documents-tp4069680p4069684.html
Sent from the Users mailing list archive at Nabble.com.

-- 
To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted


[libreoffice-users] Re: Including code example in documents

2013-08-12 Thread aihaike
Hey Miguel,

thank you for you reply.
This the kind of macro I need but it does not seem to work with LibreOffice
4 unfortunately.
I think I'm going to make a snapshot of my codes and include them  as a
picture.
  
  Éric.



--
View this message in context: 
http://nabble.documentfoundation.org/Including-code-example-in-documents-tp4069680p4069685.html
Sent from the Users mailing list archive at Nabble.com.

-- 
To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted


Re: [libreoffice-users] How to Find Dangling Cross References in Writer

2013-08-12 Thread Adam Tauno Williams
On Fri, 2013-08-09 at 07:25 +1000, Tim Lloyd wrote:
 Hi, Probably not the solution you were hunting for but I create a PDF 
 and search for the offending text. It gets the job done in a roundabout 
 sort of way

Sadly, this is my method as well.  It is especially irritating when
using Master Documents [which link many docuemnts].  The documents *CAN*
reference each other but only that only works from the Master Document,
so refreshing the master document and generating a PDF and searching for
the text is [so far] the simplest way I have found.

Cross reference and Master Documents are the killer feature of
LibreOffice, but this is one corner where it falls down [why can't a
document 'know' in it's meta-data that it is part of a master document,
dunno, that would probably be a big deal, but it would certainly be a
boon for this feature-set].


-- 
To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted


Re: [libreoffice-users] Re: Installing 4.1 on OpenSuse [REPOS!]

2013-08-12 Thread Adam Tauno Williams
On Fri, 2013-08-09 at 17:31 +0100, Tom Davies wrote:
 Hi :)  
 This is all true but LibreOffice and Evolution are exceptions because
 most repos have such older versions that most people want to
 upgrade.  

This is generally not true for openSUSE.

There are repositories for the very latest GNOME [3.8.x], that includes
the latest and greatest Evolution and other related GNOME apps.  And the
newer ones are *notably* better.  Quality has improved amazingly in
recent versions.

GNOME 3.8  
http://download.opensuse.org/repositories/GNOME:/STABLE:/3.8/openSUSE_12.3

To add a repo is just zypper ar {URL} {NAME}.  Then you can zypper
dup --from {NAME} to move to the packages offered by that repo.

For LibreOffice there is an unstable repo

zypper ar
http://download.opensuse.org/repositories/LibreOffice:/Unstable/openSUSE_12.3/ 
LibreOffice-Unstable
zypper dup --from LibreOffice-Unstable

This provides LibreOffice 4.1





-- 
To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted


Re: [libreoffice-users] Including code example in documents

2013-08-12 Thread Tom Davies
Hi :)
Is the Math component good for this?
Regards from 
Tom :)  





 From: aihaike aiha...@gmail.com
To: users@global.libreoffice.org 
Sent: Monday, 12 August 2013, 1:18
Subject: [libreoffice-users] Including code example in documents
 

Dear all,

What I need to do is to include source code examples in my document (C,
Fortran90, Python, Bash).
For each language you have a syntax highlighting, and I'm wondering whether
LibreOffice can handle this.
tried to create a style but It seems I can't define which word to
highlight or to bold.
Does anybody teach programming with LibreOffice?
Any hits here?
Thank you,

                                    Éric.




--
View this message in context: 
http://nabble.documentfoundation.org/Including-code-example-in-documents-tp4069680.html
Sent from the Users mailing list archive at Nabble.com.

-- 
To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted



-- 
To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted



Re: [libreoffice-users] Writer - grouping objects...

2013-08-12 Thread Tom Davies
Hi :)
Is there any chance of uploading the files to Nabble so that we can have a go 
at working out what's going wrong?
Regards from 
Tom :)  






 From: David Love z...@zed.net.nz
To: users@global.libreoffice.org 
Sent: Sunday, 11 August 2013, 23:58
Subject: [libreoffice-users] Writer - grouping objects...
 

How do I select all frames and Group them, please.

Whatever I do, the Group item in FormatGroup is greyed out. I cannot find
anything aplicable in the Help File.

Can someone point me in the right direction, please?

David
-- 
David Love
CURSOR: An expert in four-letter words.


-- 
To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted



Re: [libreoffice-users] Problem with eLAIX extension on LibO 4.0

2013-08-12 Thread Joaquín Lameiro
Hi.
Seems it was not that easy to solve. The reinstallation of eLAIX worked the 
first time, but now I'm getting the same problem again. Besides the error 
message, LibO opens the Basic editor and outputs the macro, marking the line 
that is causing the problem. I copy the pertinent part of the output, and 
underline the specific line, which is actually 'DialogLibraries.LoadLibrary( 
eLAIX )' from the Document related functions section:


[...]

'**
' Document related functions: Doc Open | Doc Metadata | Doc Check | Doc Export
'**


function DocImport()
  ImportFromILIAS
end
 function


sub DocCheck()
dim oGraphic as object
dim oControl as object
dim sPath as string
dim sImgPath as string
dim oStructure as object
dim oSyncOutlines as object
dim oEmptyHeadings as object
dim oDoubleSpaces as object
dim oStatus as object
dim vState as integer

    
    'initialize dialog and elements
    DialogLibraries.LoadLibrary( eLAIX )
    goDlgCheck = CreateUnoDialog( DialogLibraries.eLAIX.DlgCheck )        
    sPath = GetPackageDirURL(vnd.harryboldt.elaix)  
    sImgPath = sPath  /icons/dialog/check.png
    oControl = goDlgCheck.getControl(imgLogo)
   
 oControl.getModel().ImageURL = ConvertToURL( sImgPath )

    'setting the dialog elements
    oStructure = goDlgCheck.getControl(chkStructure)
    oSyncOutlines = goDlgCheck.getControl(chkSyncOutlines)
    oEmptyHeadings = goDlgCheck.getControl(chkEmptyHeadings)
    oDoubleSpaces = goDlgCheck.getControl(chkDoubleSpaces)
    oStatus = goDlgCheck.getControl(txtStatus)
    oStatus.Text = Please select check-options and then start the document 
check and optimizing.
    
    'get check-setting from document
    oStructure.State = GetInternalDocString(eLAIXCheckStructure)
    oSyncOutlines.State = GetInternalDocString(eLAIXCheckSyncOutlines)
    oEmptyHeadings.State =
 GetInternalDocString(eLAIXCheckEmptyHeadings)
    oDoubleSpaces.State = GetInternalDocString(eLAIXCheckDoubleSpaces)

    goDlgCheck.execute    
end sub

[...]




Hi :)  

Congrats on fixing it!  Sometimes it is worth pinpointing exactly what caused 
the problem but other times it is better to shrug it off and put it down to bad 
luck which you have now beaten (inshalla).  Maybe if it happens again it might 
be worth
 finding the cause?  

Regards from 
Tom :)  








 

Thanks, Niklas and Fernand.

I just reinstalled once more eLAIX 4.0.3 and now it runs perfectly. Anyway, 
before reinstalling it, I check the BASIC macros and LibO had eLAIX there 
(under My macros), but, apparently, some of the paths were wrong. Maybe 
because I first installed eLAIX on LibO 4.1 and then downgrade to 4.0? No 
idea, but still it works now, so thanks everybody!


Joaquín




Hi Joaquín

It sounds like the macro code is not located where the toolbar thinks 
it's located or is missing.

If you press Alt+F11
Under My macros (Mina makron in Swedish) do you find a eLAIX?
if not do you see eLAIX under LibreOffice Macros
 (LibreOffice-makron)?

I did personally not have any issues installing and using the extension 
on LibreOffice 4.0.4 on Windows 7 64-bit so it should be compatible with 
that version.

Just to make sure, you have reinstalled the extension, in any case do it 
again and see if you get any different result. Something might have gone 
wrong when you upgraded that might be fixed by uninstalling and 
reinstalling the extension.

Med vänlig hälsning
Niklas Johansson

Joaquín Lameiro skrev 2013-08-08 14:26:
 Hello.

 I have installed the eLAIX extension for Libre Office and it won't work. No 
 matter what action I try to perform, I get a message of this kind:
 BASIC runtime error.
 An exception of
 Type: com.sun.star.container.NoSuchElementException
 Message:
 occurred.

 (the message occurs in Swedish, this is a quick translation).

 I used eLAIX for Libre Office in other computers and systems, and it worked 
 perfectly, so I have no idea what the problem might be.
 This time, I am running Libre Office 4.0.4.2 on Windows Vista 32 bits SP 2 
 and I've tried eLAIX versions 4.0.3 (current stable version) and 4.0.1 
 (first version supporting LibO 4.0). I had previously tried eLAIX 4.0.3 on 
 LibO 4.1.0, and I thought the problem was due to eLAIX not supporting LibO 
 4.1, so I uninstalled LibO 4.1 and returned to 4.0. Anyway, the problem 
 still the same: no matter what version of LibO or eLAIX I use, I get the 
 above error message or something similar.

 Could you give me a hand on this? Thanks for your kindness.

 Best regards,
 Joaquín



-- 
To unsubscribe e-mail to:
 users+unsubscr...@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: 

Re: [libreoffice-users] Re: Including code example in documents

2013-08-12 Thread William Drago
I do this all the time using the syntax highlighter in 
Notepad++.


If you don't have Notepad++ (my favorite code/text editor), 
get it here: http://notepad-plus-plus.org/


Here's how to get syntax highlighted code into your 
LibreOffice documents:


1: Open source file with Notepad++
2: In Notepad++ click Plugins  NppExport  Export to RTF

You will now have a syntax highlighted copy of your source 
file however, it will be double spaced. To remove the extra 
spaces proceed as follows:


1: With any editor, open the .rtf file you just created
2: Search and replace \par with \line
3: Save file

Open the .rtf file with LibreOffice Writer, select all 
(CTRL-A), copy  paste into your working document.


This sounds like a bit of an ordeal, but I do this quite 
frequently, and once you've done it a few times, it becomes 
very fast and easy.


Good luck,

-Bill





On 8/11/2013 9:22 PM, aihaike wrote:

Hey Miguel,

thank you for you reply.
This the kind of macro I need but it does not seem to work with LibreOffice
4 unfortunately.
I think I'm going to make a snapshot of my codes and include them  as a
picture.
   
   Éric.




--
View this message in context: 
http://nabble.documentfoundation.org/Including-code-example-in-documents-tp4069680p4069685.html
Sent from the Users mailing list archive at Nabble.com.




--
To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted


Re: [libreoffice-users] Problem with eLAIX extension on LibO 4.0

2013-08-12 Thread Niklas Johansson

Sorry to hear that you are still having troubles with this.

So what that line of code is suppose to do is to load the dialogs in the 
library eLAIX so that they can be used by the program. For some reason 
this is not possible.


I've seen some problems with dialog libraries disappearing in some cases 
so let's see if we can pin down if this is what has happened.


Open Writer
Press Alt+F11
Press the button Edit in the dialog that appears
On the left side in the editor you have a tree structure, find eLAIX and 
expand that node

Do you see a DlgAbout or DlgBookmark there under?

We should probably try to formulate a bug report about vanishing dialog 
libraries (as well as basic libraries). I found it hard to formulate 
such a bug since I haven't found when it happens just that it happens 
some times, and I believe it's more and more frequent.


Just a thought, you could try to install the extension as a shared 
extension.
If it is installed as a shared extension then LibreOffice will need 
elevated rights to change the dialogs, which it should not have under 
normal circumstances. Of course this does not fix the actual problem but 
it might make it possible for you to use eLAIX without having to 
repeatedly reinstalling the extension each time the dialogs disappear.


Let us know if you need more information on how to install a shared 
extension, and in that case please let us know what operating system 
your using (Windows, Mac, some sort of Linux distribution ...)


Regards,
Niklas Johansson

Joaquín Lameiro skrev 2013-08-12 13:56:

Hi.
Seems it was not that easy to solve. The reinstallation of eLAIX worked the first time, but now I'm 
getting the same problem again. Besides the error message, LibO opens the Basic editor and outputs 
the macro, marking the line that is causing the problem. I copy the pertinent part of the output, 
and underline the specific line, which is actually 'DialogLibraries.LoadLibrary( eLAIX 
)' from the Document related functions section:


[...]

'**
' Document related functions: Doc Open | Doc Metadata | Doc Check | Doc Export
'**


function DocImport()
   ImportFromILIAS
end
  function


sub DocCheck()
dim oGraphic as object
dim oControl as object
dim sPath as string
dim sImgPath as string
dim oStructure as object
dim oSyncOutlines as object
dim oEmptyHeadings as object
dim oDoubleSpaces as object
dim oStatus as object
dim vState as integer

 
 'initialize dialog and elements

 DialogLibraries.LoadLibrary( eLAIX )
 goDlgCheck = CreateUnoDialog( DialogLibraries.eLAIX.DlgCheck )
 sPath = GetPackageDirURL(vnd.harryboldt.elaix)
 sImgPath = sPath  /icons/dialog/check.png
 oControl = goDlgCheck.getControl(imgLogo)

  oControl.getModel().ImageURL = ConvertToURL( sImgPath )


 'setting the dialog elements
 oStructure = goDlgCheck.getControl(chkStructure)
 oSyncOutlines = goDlgCheck.getControl(chkSyncOutlines)
 oEmptyHeadings = goDlgCheck.getControl(chkEmptyHeadings)
 oDoubleSpaces = goDlgCheck.getControl(chkDoubleSpaces)
 oStatus = goDlgCheck.getControl(txtStatus)
 oStatus.Text = Please select check-options and then start the document check 
and optimizing.
 
 'get check-setting from document

 oStructure.State = GetInternalDocString(eLAIXCheckStructure)
 oSyncOutlines.State = GetInternalDocString(eLAIXCheckSyncOutlines)
 oEmptyHeadings.State =
  GetInternalDocString(eLAIXCheckEmptyHeadings)
 oDoubleSpaces.State = GetInternalDocString(eLAIXCheckDoubleSpaces)

 goDlgCheck.execute
end sub

[...]




Hi :)

Congrats on fixing it!  Sometimes it is worth pinpointing exactly what caused 
the problem but other times it is better to shrug it off and put it down to bad 
luck which you have now beaten (inshalla).  Maybe if it happens again it might 
be worth
  finding the cause?

Regards from
Tom :)









Thanks, Niklas and Fernand.

I just reinstalled once more eLAIX 4.0.3 and now it runs perfectly. Anyway, before 
reinstalling it, I check the BASIC macros and LibO had eLAIX there (under My 
macros), but, apparently, some of the paths were wrong. Maybe because I first 
installed eLAIX on LibO 4.1 and then downgrade to 4.0? No idea, but still it works now, 
so thanks everybody!


Joaquín




Hi Joaquín

It sounds like the macro code is not located where the toolbar thinks
it's located or is missing.

If you press Alt+F11
Under My macros (Mina makron in Swedish) do you find a eLAIX?
if not do you see eLAIX under LibreOffice Macros

  (LibreOffice-makron)?

I did personally not have any issues installing and using the extension
on LibreOffice 4.0.4 on Windows 7 64-bit so it should be compatible with
that version.

Just to make sure, you 

Re: [libreoffice-users] Re: Including code example in documents

2013-08-12 Thread Kracked_P_P---webmaster


I used NoteTab [free] and NotePad ++ as my first Windows programming and 
HTML editor.


Having the extension to do the highlighting in Writer is a good idea though.

If I remember correctly, for the Note. . .  editors you can find add 
ons that are specific to the programming code.  I have not tried them 
in a few years, but they were a real big aid to my early programming 
within the Windows environment.  I do not remember when I installed the 
first one, but it was in the early days of my having dial-up Internet 
access, or a little later.  I do not remember if I got online with Win 
95 or 98 era. but I know I used them when I was using he new Windows 
version - XP.


Would you tell us how large of a document these code samples will be in?

Are you writing a programming guide type of documentation?

Hopefully the RTF formatting option works.  Sometimes pictures of text 
do not work well, since the snapshot resolution and the print resolution 
could be very different.  I tend to have to make 600 DPI scanned images 
to get a decent near 1 to 1 size image when I print out a best print 
option.


If you need to do the snapshot, I would run the image through a scaling 
option, with a edge smoothing effect, to make the image in a large 
enough DPI and actual print size for your needs that actually look well.


On 08/12/2013 09:13 AM, William Drago wrote:

I do this all the time using the syntax highlighter in Notepad++.

If you don't have Notepad++ (my favorite code/text editor), get it 
here: http://notepad-plus-plus.org/


Here's how to get syntax highlighted code into your LibreOffice 
documents:


1: Open source file with Notepad++
2: In Notepad++ click Plugins  NppExport  Export to RTF

You will now have a syntax highlighted copy of your source file 
however, it will be double spaced. To remove the extra spaces proceed 
as follows:


1: With any editor, open the .rtf file you just created
2: Search and replace \par with \line
3: Save file

Open the .rtf file with LibreOffice Writer, select all (CTRL-A), copy 
 paste into your working document.


This sounds like a bit of an ordeal, but I do this quite frequently, 
and once you've done it a few times, it becomes very fast and easy.


Good luck,

-Bill





On 8/11/2013 9:22 PM, aihaike wrote:

Hey Miguel,

thank you for you reply.
This the kind of macro I need but it does not seem to work with 
LibreOffice

4 unfortunately.
I think I'm going to make a snapshot of my codes and include them  as a
picture.
  Éric.



--
View this message in context: 
http://nabble.documentfoundation.org/Including-code-example-in-documents-tp4069680p4069685.html

Sent from the Users mailing list archive at Nabble.com.







--
To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted


[libreoffice-users] Re: How to Find Dangling Cross References in Writer

2013-08-12 Thread Sina Momken
On 08/12/2013 02:53 PM, Adam Tauno Williams wrote:
 On Fri, 2013-08-09 at 07:25 +1000, Tim Lloyd wrote:
 Hi, Probably not the solution you were hunting for but I create a PDF 
 and search for the offending text. It gets the job done in a roundabout 
 sort of way
 
 Sadly, this is my method as well.  It is especially irritating when
 using Master Documents [which link many docuemnts].  The documents *CAN*
 reference each other but only that only works from the Master Document,
 so refreshing the master document and generating a PDF and searching for
 the text is [so far] the simplest way I have found.
I've not tested this idea myself, but why don't you just search for the
offending error (i.e. Reference source not found) in the master
documents itself? Why you first generate a PDF from that?

P.S. I don't have a serious solution, but I think this can be my problem
in the future too.

 
 Cross reference and Master Documents are the killer feature of
 LibreOffice, but this is one corner where it falls down [why can't a
 document 'know' in it's meta-data that it is part of a master document,
 dunno, that would probably be a big deal, but it would certainly be a
 boon for this feature-set].
 
 



-- 
To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted


[libreoffice-users] Re: Including code example in documents

2013-08-12 Thread Jim Byrnes

On 08/12/2013 09:04 AM, Kracked_P_P---webmaster wrote:

If none of the suggestions you have received already work for you.  You 
might want to look at Andrew Pitonyak's book [1]. It has syntax 
highlighted basic code.  I don't know if you can tell how he did by 
looking at the document though.


[1]  http://www.pitonyak.org/book/

Regards,  JIm


I used NoteTab [free] and NotePad ++ as my first Windows programming and
HTML editor.

Having the extension to do the highlighting in Writer is a good idea
though.

If I remember correctly, for the Note. . .  editors you can find add
ons that are specific to the programming code.  I have not tried them
in a few years, but they were a real big aid to my early programming
within the Windows environment.  I do not remember when I installed the
first one, but it was in the early days of my having dial-up Internet
access, or a little later.  I do not remember if I got online with Win
95 or 98 era. but I know I used them when I was using he new Windows
version - XP.

Would you tell us how large of a document these code samples will be in?

Are you writing a programming guide type of documentation?

Hopefully the RTF formatting option works.  Sometimes pictures of text
do not work well, since the snapshot resolution and the print resolution
could be very different.  I tend to have to make 600 DPI scanned images
to get a decent near 1 to 1 size image when I print out a best print
option.

If you need to do the snapshot, I would run the image through a scaling
option, with a edge smoothing effect, to make the image in a large
enough DPI and actual print size for your needs that actually look well.

On 08/12/2013 09:13 AM, William Drago wrote:

I do this all the time using the syntax highlighter in Notepad++.

If you don't have Notepad++ (my favorite code/text editor), get it
here: http://notepad-plus-plus.org/

Here's how to get syntax highlighted code into your LibreOffice
documents:

1: Open source file with Notepad++
2: In Notepad++ click Plugins  NppExport  Export to RTF

You will now have a syntax highlighted copy of your source file
however, it will be double spaced. To remove the extra spaces proceed
as follows:

1: With any editor, open the .rtf file you just created
2: Search and replace \par with \line
3: Save file

Open the .rtf file with LibreOffice Writer, select all (CTRL-A), copy
 paste into your working document.

This sounds like a bit of an ordeal, but I do this quite frequently,
and once you've done it a few times, it becomes very fast and easy.

Good luck,

-Bill





On 8/11/2013 9:22 PM, aihaike wrote:

Hey Miguel,

thank you for you reply.
This the kind of macro I need but it does not seem to work with
LibreOffice
4 unfortunately.
I think I'm going to make a snapshot of my codes and include them  as a
picture.
  Éric.



--
View this message in context:
http://nabble.documentfoundation.org/Including-code-example-in-documents-tp4069680p4069685.html

Sent from the Users mailing list archive at Nabble.com.











--
To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted


Re: [libreoffice-users] Re: Including code example in documents

2013-08-12 Thread Tom Davies
Hi :)
There are a lot of text-editors out there.  Gedit show colour-coding and is 
available on Windows too.  It's OpenSource and uses the GPL License.  SciTe 
also does colour-coding and may do some more fancy stuff too.  I'm sure there 
are lots of others.  The main thing is to avoid using Notepad (without the 
double + at the end of it's name) as that is the only one that is really 
painful.  The rest are a plateau above it and each has it's own advantages or 
quirks.  

Regards from 
Tom :)  






 From: William Drago wdr...@suffolk.lib.ny.us
To: users@global.libreoffice.org 
Cc: aiha...@gmail.com 
Sent: Monday, 12 August 2013, 13:13
Subject: Re: [libreoffice-users] Re: Including code example in documents
 

I do this all the time using the syntax highlighter in 
Notepad++.

If you don't have Notepad++ (my favorite code/text editor), 
get it here: http://notepad-plus-plus.org/

Here's how to get syntax highlighted code into your 
LibreOffice documents:

1: Open source file with Notepad++
2: In Notepad++ click Plugins  NppExport  Export to RTF

You will now have a syntax highlighted copy of your source 
file however, it will be double spaced. To remove the extra 
spaces proceed as follows:

1: With any editor, open the .rtf file you just created
2: Search and replace \par with \line
3: Save file

Open the .rtf file with LibreOffice Writer, select all 
(CTRL-A), copy  paste into your working document.

This sounds like a bit of an ordeal, but I do this quite 
frequently, and once you've done it a few times, it becomes 
very fast and easy.

Good luck,

-Bill





On 8/11/2013 9:22 PM, aihaike wrote:
 Hey Miguel,

 thank you for you reply.
 This the kind of macro I need but it does not seem to work with LibreOffice
 4 unfortunately.
 I think I'm going to make a snapshot of my codes and include them  as a
 picture.
    
        Éric.



 --
 View this message in context: 
 http://nabble.documentfoundation.org/Including-code-example-in-documents-tp4069680p4069685.html
 Sent from the Users mailing list archive at Nabble.com.



-- 
To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted



-- 
To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted



[libreoffice-users] Mail merge manual field entry

2013-08-12 Thread Carl Paulsen

Hi all,

I need to create a mail merge that will, I hope, be used with Salesforce 
for mail merge communications.  I need to create a document with 
manually entered merge fields where the source database has not (and 
probably can not - at least with my current skills) be registered with 
LibreOffice. Salesforce is a web-based database service that has strict 
limits on connections outside of web browsers.


In short, what I'd like to do is create mailing labels, type in the 
merge fields as they need to be typed (to work with Salesforce), then 
save and upload the document.  I can't find any way to do this.  Is 
there a way?  Also, Salesforce provides some templates for the merges 
and I can see what I need to do, but the fields they provide in their 
templates are not relevant to what I need, and I can't replace their 
merge fields with the ones I do need.


Thanks.
--

Carl Paulsen

Dover, NH 03820


--
To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted



[libreoffice-users] LibreOfficeCalc - secondary Y axis and getting desired data to appear in chart

2013-08-12 Thread Jim Thompson
Greetings!

Using LibreOffice Calc – 4.1.0.4


 Have a fairly simple spreadsheet (just data, no formulas)

   -

   Column A – Date (e.g., 5.17 = May 17)
   -

   Columns B thru E – percentages (range between -6 and +2)
   -

   Column F – whole numbers (range between 1450 and 1600)


 Want to generate a chart (using wizard - and manual tweaking as needed)

   -

   Chart type – Line – Points and lines (easy to read)
   -

   First row as label + First column as label


 Note the initial results

   -

   DJI shows changes by date
   -

   Other numbers (percentages) are so small they are scrunched into virtual
   invisibility
   -

   OK – looks like we need 2 Y axes (one for percentages; one for DJI)


 Finish initial draft

   -

   Title – Performance of JFT IRAs + joint account
   -

   Subtitle – Compared to TRP benchmarks + DJI
   -

   X axis – date
   -

   Y axis – % lead
   -

   Display legend – Bottom


 Change primary Y axis (to display percentages)

   -

   double click on Y Axis
   -

   adjust Scale settings
   -

   uncheck Automatic for first 3 settings
-

  Minimum -6
  -

  Maximum 2
  -

  Major interval 1
   -

   we now see interesting chart for the 4 percentage columns (by date)
   -

   (optional) drag chart to below data, pull bottom right corner to I,50
   (one page on my printer)


 Can we get DJI onto same chart by fiddling with Secondary Y axis?


 From menu bar

   -

   Insert – Axes
   -

   Secondary axes – Y axis


 Change secondary Y axis (attempting to display DJI)

   -

   double click on Secondary Y axis
   -

   adjust Scale settings
   -

   uncheck Automatic for first 3 settings
-

  Minimum 14500
  -

  Maximum 16000
  -

  Major interval 300


 DJI line not shown. What else is required to display DJI data on same
chart?

Attached should be 2 Calc spreadsheets...

- jft_ira_performance_graph_data_DJI.ods (just the raw numbers)

- jft_ira_performance_graph_0809_DJI.ods (with half-baked chart)


Thanks for any comments or suggestions.


Jim

-- 
To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted



[libreoffice-users] Re: LibreOfficeCalc - secondary Y axis and getting desired data to appear in chart

2013-08-12 Thread Jim Thompson
Never mind... got it figured out.

Click on a line on the chart to make the Data Series dialog appear

   -

   Options – Align data series to
-

  Primary Y axis … OR
  -

  Secondary Y axis

The first trick was to make the DJI line appear, by fiddling with the
Primary Y axis, then was able to align that data series with the Secondary
Y axis. Was able to get the desired chart (also changed Line display for
the DJI to make the chart easier to read).


Cheers,

Jim


On Mon, Aug 12, 2013 at 3:30 PM, Jim Thompson jthom...@gmail.com wrote:

 Greetings!

 Using LibreOffice Calc – 4.1.0.4


  Have a fairly simple spreadsheet (just data, no formulas)

-

Column A – Date (e.g., 5.17 = May 17)
-

Columns B thru E – percentages (range between -6 and +2)
-

Column F – whole numbers (range between 1450 and 1600)


  Want to generate a chart (using wizard - and manual tweaking as needed)

-

Chart type – Line – Points and lines (easy to read)
-

First row as label + First column as label


  Note the initial results

-

DJI shows changes by date
-

Other numbers (percentages) are so small they are scrunched into
virtual invisibility
-

OK – looks like we need 2 Y axes (one for percentages; one for DJI)


  Finish initial draft

-

Title – Performance of JFT IRAs + joint account
-

Subtitle – Compared to TRP benchmarks + DJI
-

X axis – date
-

Y axis – % lead
-

Display legend – Bottom


  Change primary Y axis (to display percentages)

-

double click on Y Axis
-

adjust Scale settings
-

uncheck Automatic for first 3 settings
 -

   Minimum -6
   -

   Maximum 2
   -

   Major interval 1
-

we now see interesting chart for the 4 percentage columns (by date)
-

(optional) drag chart to below data, pull bottom right corner to I,50
(one page on my printer)


  Can we get DJI onto same chart by fiddling with Secondary Y axis?


  From menu bar

-

Insert – Axes
-

Secondary axes – Y axis


  Change secondary Y axis (attempting to display DJI)

-

double click on Secondary Y axis
-

adjust Scale settings
-

uncheck Automatic for first 3 settings
 -

   Minimum 14500
   -

   Maximum 16000
   -

   Major interval 300


  DJI line not shown. What else is required to display DJI data on same
 chart?

 Attached should be 2 Calc spreadsheets...

 - jft_ira_performance_graph_data_DJI.ods (just the raw numbers)

 - jft_ira_performance_graph_0809_DJI.ods (with half-baked chart)


 Thanks for any comments or suggestions.


 Jim




-- 
To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted



Re: [libreoffice-users] Re: How to Find Dangling Cross References in Writer

2013-08-12 Thread Andrew Douglas Pitonyak


On 08/12/2013 12:42 PM, Sina Momken wrote:

On 08/12/2013 02:53 PM, Adam Tauno Williams wrote:

On Fri, 2013-08-09 at 07:25 +1000, Tim Lloyd wrote:

Hi, Probably not the solution you were hunting for but I create a PDF
and search for the offending text. It gets the job done in a roundabout
sort of way

Sadly, this is my method as well.  It is especially irritating when
using Master Documents [which link many docuemnts].  The documents *CAN*
reference each other but only that only works from the Master Document,
so refreshing the master document and generating a PDF and searching for
the text is [so far] the simplest way I have found.

I've not tested this idea myself, but why don't you just search for the
offending error (i.e. Reference source not found) in the master
documents itself? Why you first generate a PDF from that?

P.S. I don't have a serious solution, but I think this can be my problem
in the future too.
Because, search does not look at text in fields. You need to use a macro 
that can pull the fields and then look at the display content (or what 
ever it is called).


--
Andrew Pitonyak
My Macro Document: http://www.pitonyak.org/AndrewMacro.odt
Info:  http://www.pitonyak.org/oo.php


--
To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted


Re: [libreoffice-users] Mail merge manual field entry

2013-08-12 Thread Carl Paulsen
A related question, which may help me figure out what I need, is how 
does one manually work through a mail merge?  I only see the wizard, but 
what if I've already created a document and just want to change a few 
fields?  I don't want to have to enter a wizard and work through the 
entire thing just to edit that document.  That function might also allow 
me to hand-enter field names for this merge document.


Carl


On 8/12/13 4:12 PM, Carl Paulsen wrote:

Hi all,

I need to create a mail merge that will, I hope, be used with 
Salesforce for mail merge communications.  I need to create a document 
with manually entered merge fields where the source database has not 
(and probably can not - at least with my current skills) be registered 
with LibreOffice. Salesforce is a web-based database service that has 
strict limits on connections outside of web browsers.


In short, what I'd like to do is create mailing labels, type in the 
merge fields as they need to be typed (to work with Salesforce), then 
save and upload the document.  I can't find any way to do this.  Is 
there a way?  Also, Salesforce provides some templates for the merges 
and I can see what I need to do, but the fields they provide in their 
templates are not relevant to what I need, and I can't replace their 
merge fields with the ones I do need.


Thanks.


--

Carl Paulsen

Dover, NH 03820


--
To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted



[libreoffice-users] Re: Including code example in documents

2013-08-12 Thread aihaike
I just found this : http://tohtml.com/



--
View this message in context: 
http://nabble.documentfoundation.org/Including-code-example-in-documents-tp4069680p4069790.html
Sent from the Users mailing list archive at Nabble.com.

-- 
To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted



Re: [libreoffice-users] connecting to oooforum.org

2013-08-12 Thread Tim Lloyd

Jim,

I don't really use that forum but if you can send the link I will give 
it a go


Cheers

On 08/13/2013 10:42 AM, Jim Byrnes wrote:

Is anyone else having trouble connecting to oooforum.org or is just me?

Been doing a lot of googling trying to figure out how to write some 
python macros in LO calc and many links lead to posts on oooforum.org. 
Lately everytime I try one it times out.


Regards,  Jim





--
To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted



[libreoffice-users] Re: connecting to oooforum.org

2013-08-12 Thread Tim Lloyd

Hi Jim,

I didn't realise this had cropped up before - pretty sad as I logged the 
first message! I have attached a link to when this was discussed back in 
February


http://nabble.documentfoundation.org/oooforum-org-td4039871.html#a4040074

BTW, link not working for me at present either

Cheers

On 08/13/2013 01:09 PM, Jim Byrnes wrote:

On 08/12/2013 07:54 PM, Tim Lloyd wrote:

Jim,

I don't really use that forum but if you can send the link I will give
it a go

Cheers

On 08/13/2013 10:42 AM, Jim Byrnes wrote:

Is anyone else having trouble connecting to oooforum.org or is just me?

Been doing a lot of googling trying to figure out how to write some
python macros in LO calc and many links lead to posts on oooforum.org.
Lately everytime I try one it times out.

Regards,  Jim







I don't use it either, this is a link to an archived post.

http://www.oooforum.org/forum/viewtopic.phtml?p=56015#56015

Thanks,  Jim




--
To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted



Re: [libreoffice-users] connecting to oooforum.org

2013-08-12 Thread Tom Davies
Hi :)
It's just you.  Actually i doubt that but someone 'had' to say it.  Do you use 
this link
http://forum.openoffice.org/en/forum/
and then search once you are in there or are you doing a straight google search 
to get into there?  I got there quite quickly from my little link there.  

Since Apache took them over they have been very much more robust so hopefully 
it's just a temporary glitch.  
Regards from 
Tom :)  






 From: Jim Byrnes jf_byr...@comcast.net
To: users@global.libreoffice.org 
Sent: Tuesday, 13 August 2013, 1:42
Subject: [libreoffice-users] connecting to oooforum.org
 

Is anyone else having trouble connecting to oooforum.org or is just me?

Been doing a lot of googling trying to figure out how to write some python 
macros in LO calc and many links lead to posts on oooforum.org. Lately 
everytime I try one it times out.

Regards,  Jim



-- 
To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted



Re: [libreoffice-users] Re: connecting to oooforum.org

2013-08-12 Thread Tom Davies
Hi :)
I think it might perform better if you go to the link i gave and do your search 
from inside their forums.  That way you might dodge any links with domains that 
might have changed.  Outside of their forums search engines may still be giving 
old links.  
Regards from 
Tom :)  






 From: Tim Lloyd tim.ll...@gmx.com
To: Jim Byrnes jf_byr...@comcast.net; users@global.libreoffice.org 
users@global.libreoffice.org 
Sent: Tuesday, 13 August 2013, 4:16
Subject: [libreoffice-users] Re: connecting to oooforum.org
 

Hi Jim,

I didn't realise this had cropped up before - pretty sad as I logged the 
first message! I have attached a link to when this was discussed back in 
February

http://nabble.documentfoundation.org/oooforum-org-td4039871.html#a4040074

BTW, link not working for me at present either

Cheers

On 08/13/2013 01:09 PM, Jim Byrnes wrote:
 On 08/12/2013 07:54 PM, Tim Lloyd wrote:
 Jim,

 I don't really use that forum but if you can send the link I will give
 it a go

 Cheers

 On 08/13/2013 10:42 AM, Jim Byrnes wrote:
 Is anyone else having trouble connecting to oooforum.org or is just me?

 Been doing a lot of googling trying to figure out how to write some
 python macros in LO calc and many links lead to posts on oooforum.org.
 Lately everytime I try one it times out.

 Regards,  Jim





 I don't use it either, this is a link to an archived post.

 http://www.oooforum.org/forum/viewtopic.phtml?p=56015#56015

 Thanks,  Jim



-- 
To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted



-- 
To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted