ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Andrei Lomov <lomov@math.nsc.ru>
To: community@lists.altlinux.org
Subject: [Comm] LyX, обход проблемы с пробелами в путях
Date: Fri, 19 Oct 2007 09:55:43 +0700
Message-ID: <ff96bq$aas$1@ger.gmane.org> (raw)


Известно, что LyX не будет делать dvi, если путь к файлу 
содержит пробелы.

Есть скрипт, который позволяет эту проблему обойти.
Может, кому пригодится 
(проверено в KDE; консольный вариант не проверялся):

======================= lyx.m

ndate=`date +%F_%H_%M_%S`

name="$ndate_`basename \"$1\"`"
#name="$ndate_$1" # - консольный вариант 
                  #(когда "$1" содержит только basename)

newpath="/home/$USER/tmp/LyX_is_now_working_here_$ndate"


# Синоним текущей директории:
ln -s  "`dirname \"$1\"`" "$newpath"   
#ln -s  "`pwd`"         $newpath   # - консольный вариант

# Синоним пути к файлу:
ln -s "$1" "$newpath"/"$name"

# Поместим полезные ссылки в рабочую директорию:
ln -s ~/YourFavoriteDir  "$newpath"/YourFavoriteDir 

 lyx -geometry 1016x695+0+49  "$newpath"/"$name"   
# (геометрия для экрана 1024x768 с учетом панели KDE)


rm "$newpath"/YourFavoriteDir
rm "$newpath"

=======================
Буду благодарен за улучшения/замечания

-- 
Всего доброго,
А.Л.




             reply	other threads:[~2007-10-19  2:55 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-19  2:55 Andrei Lomov [this message]
2007-10-19  7:12 ` Alexey Morsov
2007-10-19 15:42   ` Andrei Lomov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='ff96bq$aas$1@ger.gmane.org' \
    --to=lomov@math.nsc.ru \
    --cc=community@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git