LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-04-2009, 12:37 AM   #1
joseph2020
Member
 
Registered: Mar 2009
Location: USA
Distribution: Ubuntu 12.04
Posts: 235

Rep: Reputation: Disabled
can't set left margin with gedit


I have the left margin set at 25 on printer setup (using Adminstration > Printing and recently Applications > System Tools > Printers). This works fine with other apps, including open office and "tea". Gedit, however, will always print immediately next to the paper's left edge, no matter where I set the left margin in the printer setup options.

How do I control left margin placing using Gedit?

thanks in advance
 
Old 07-04-2009, 12:53 AM   #2
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
File -> Page Setup -> Paper Size -> Manage Custom Sizes
 
Old 07-04-2009, 01:31 AM   #3
joseph2020
Member
 
Registered: Mar 2009
Location: USA
Distribution: Ubuntu 12.04
Posts: 235

Original Poster
Rep: Reputation: Disabled
Simon Bridge, thank you for your reply
Quote:
File -> Page Setup -> Paper Size -> Manage Custom Sizes
This works, but I have to reset it every time Gedit loads. It always resets itself to "U.S. Letter". Is there any way to make custom size as default? Thanks again.
 
Old 07-04-2009, 02:06 AM   #4
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
Interesting, my settings are persistent.
You can try editing the config file directly.
~/.gnome2/gedit-print-confi
 
Old 07-04-2009, 04:31 PM   #5
joseph2020
Member
 
Registered: Mar 2009
Location: USA
Distribution: Ubuntu 12.04
Posts: 235

Original Poster
Rep: Reputation: Disabled
Simon Bridge, Thanks for your reply.
Quote:
Interesting, my settings are persistent.
You can try editing the config file directly.
~/.gnome2/gedit-print-confi
I don't seem to have the file in that directory:

Code:
joe@joelinux:~/.gnome2$ ls -al
total 124
drwx------ 15 joe joe 4096 2009-07-04 15:13 .
drwxr-xr-x 48 joe joe 4096 2009-07-04 15:13 ..
drwx------  2 joe joe 4096 2009-06-15 23:14 accels
-rw-r--r--  1 joe joe 4750 2009-07-03 21:43 accelsevince
-rw-r--r--  1 joe joe 8763 2009-07-04 15:13 accelsgedit
-rw-r--r--  1 joe joe  613 2009-06-23 01:03 backgrounds.xml
drwxr-x---  2 joe joe 4096 2009-05-31 03:02 eog
drwxr-x---  2 joe joe 4096 2009-06-15 23:40 evince
drwx------  2 joe joe 4096 2009-06-08 22:37 file-roller
drwxr-xr-x  4 joe joe 4096 2009-07-03 16:49 f-spot
-rw-r--r--  1 joe joe   74 2009-07-04 15:13 gedit-2
-rw-r--r--  1 joe joe 5411 2009-07-04 03:29 gedit-metadata.xml
drwxr-xr-x  4 joe joe 4096 2009-06-01 03:42 glchess
-rw-r--r--  1 joe joe   69 2009-06-14 17:45 gnomebaker
-rw-r--r--  1 joe joe 3257 2009-07-04 02:54 gnome-commander
-rw-r--r--  1 joe joe  298 2009-07-04 02:54 gnome-commander-size
-rw-r--r--  1 joe joe   53 2009-06-24 21:55 goobox
-rw-r--r--  1 joe joe   28 2009-06-24 21:47 goobox-1uC6TP
drwx------  5 joe joe 4096 2009-06-24 21:55 goobox.d
-rw-r--r--  1 joe joe   28 2009-06-24 21:47 goobox-mHMYCo
drwx------  2 joe joe 4096 2009-05-30 21:34 keyrings
drwxr-xr-x  2 joe joe 4096 2009-05-30 21:34 nautilus-scripts
drwx------  3 joe joe 4096 2009-05-30 21:34 panel2.d
drwxr-x---  2 joe joe 4096 2009-06-25 02:47 rhythmbox
drwxr-xr-x  3 joe joe 4096 2009-06-14 23:54 scribes
drwxr-xr-x  4 joe joe 4096 2009-05-30 21:34 share
-rw-r--r--  1 joe joe   34 2009-06-24 21:36 yelp
Any ideas? I can always do it manually, but that seems like such a time waste. Thanks again
 
Old 07-05-2009, 12:44 AM   #6
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
~/.gnome2/gedit

You seem to be missing a directory...

locate gedit-print-settings

For me:
Code:
$ ls ~/.gnome2
accels           gedit-2               main
accelsgedit      gedit-metadata.xml    nautilus-scripts
backgrounds.xml  glchess               network-admin-locations
eog              gnomemeeting          panel2.d
evince           gnometris.d           rhythmbox
file-roller      gnome-volume-control  share
f-spot           iagno                 yelp
gedit            keyrings
~$ ls ~/.gnome2/gedit
gedit-page-setup  gedit-print-settings  sessions
That is for ubuntu 8.10 ...

Code:
~$ cat /home/simon/.gnome2/gedit/gedit-print-settings

[Print Settings]
print-at=now
cups-PrintoutMode=Draft.Gray
scale=100
cups-job-priority=50
cups-Quality=FromPrintoutMode
cups-job-sheets=none,none
page-set=all
print-pages=all
collate=false
n-copies=1
printer=Deskjet_F4100_series
reverse=false
cover-after=none
print-at-time=
cups-number-up=1
cover-before=none
number-up=1
need to add

margin=

But I have the margin in page settings ...
Code:
:~$ cat /home/simon/.gnome2/gedit/gedit-page-setup 

[Page Setup]
PPDName=A4
DisplayName=A4
Width=210
Height=297
MarginTop=6.3499999999999996
MarginBottom=14.224
MarginLeft=6.3499999999999996
MarginRight=6.3499999999999996
Orientation=portrait
Perhaps create the directory and add those two files to it and see what happens.
If, however, you are using 9.04, I'll have to go look.
 
Old 07-05-2009, 01:39 AM   #7
joseph2020
Member
 
Registered: Mar 2009
Location: USA
Distribution: Ubuntu 12.04
Posts: 235

Original Poster
Rep: Reputation: Disabled
Simon Bridge, your continued assistance is greatly appreciated.

I am using Ubuntu 8.1. There is a gedit in usr dir, but no directory that I can find using "whereis" command.

Code:
joe@joelinux:/usr/bin$ ls ge*
gedit   genisoimage  getconf      getent   gethostip    getopt   gettext.sh   gencat 
 geqn  geteltorito  getfacl  getkeycodes  gettext  getweb
I will try creating a directory named ".gnome2/gedit" in my home dir and add the files "gedit-page-setup" and "gedit-page-setup". I am assuming I can just cut'n'paste the files you sent.

I will let you know if it works. Thanks again
 
Old 07-05-2009, 02:18 AM   #8
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
Quote:
I will try creating a directory named ".gnome2/gedit" in my home dir and add the files "gedit-page-setup" and "gedit-page-setup". I am assuming I can just cut'n'paste the files you sent.
mkdir ~/.gnome2/gedit
mkdir ~/.gnome2/gedit/sessions

That should be possible yeah - no idea why you wouldn't have one already. Note, the "sessions" directory is empty in my system.

Note: if you have an update to gedit waiting, get that first.

Quote:
I am using Ubuntu 8.1
No such thing - there is 8.10 pronounced "october 2008" or just "eight point ten" for short. It's the release date.
 
Old 07-05-2009, 05:19 PM   #9
joseph2020
Member
 
Registered: Mar 2009
Location: USA
Distribution: Ubuntu 12.04
Posts: 235

Original Poster
Rep: Reputation: Disabled
Success!!

Simon Bridge, you did it!....your idea worked...Thanks a million! I just have to tweak it now, but I am getting left margins. It makes me wonder though, why those files were missing, and more importantly, what else might be missing that I'll need in the future.

Quote:
No such thing - there is 8.10 pronounced "october 2008" or just "eight point ten" for short. It's the release date
Thanks you for that great piece of information, I did not know that...8.10 it is.

I consider this problem solved. Thank you very much for your patient, clear, and easy to understand replies.
 
Old 07-07-2009, 01:41 AM   #10
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
Those files were supposed to have been installed already. Next time you do an install, you'll need to watch for this.

Of course, it is entirely possible that reinstalling gedit would have done it too.

Well done anyway and have fun.
You realise now you have to go find someone to help?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
1. how to set labels bottom margin? 2. how to set all labels to be right to left typi dfgfdgdf General 0 03-20-2007 09:43 AM
enscript: How can I define the printout left margin cigarstub Linux - Software 1 09-18-2005 08:22 PM
Printing gets cut off at the left margin kkempter Linux - General 1 03-31-2005 02:03 PM
I can't set left hand mouse in kde tygk Linux - Software 11 11-25-2004 07:37 AM
Is it possible that you can set up syntax highlighting for gedit? ICO Linux - General 3 12-18-2003 08:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:20 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration