ALT Linux Community general discussions
 help / color / mirror / Atom feed
* [Comm] LyX, обход проблемы с пробелами в путях
@ 2007-10-19  2:55 Andrei Lomov
  2007-10-19  7:12 ` Alexey Morsov
  0 siblings, 1 reply; 3+ messages in thread
From: Andrei Lomov @ 2007-10-19  2:55 UTC (permalink / raw)
  To: community


Известно, что 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"

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

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




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-10-19 15:42 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-10-19  2:55 [Comm] LyX, обход проблемы с пробелами в путях Andrei Lomov
2007-10-19  7:12 ` Alexey Morsov
2007-10-19 15:42   ` Andrei Lomov

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