languages/gen_lyx.py
def insert_ref(self, labelText, ref):
		"""
		Insert label or reference into the generator output.
		Arguments:
			labelText	Text to write into the label
			ref			Label type. At the moment can be:
							"label" - LabelText is written and label object is
									  created directly behind.
							"hyperref" - Hyperref object is created with 
										 "labelText" placed in the hyperref.
										This makes the reference to the label
										with the same name if clicked on in PDF.
		"""
		self.insert_inset("ERT")
		self.wr_line("status open\n")
		self.insert_layout("Plain Layout")
		self.wr_line("\\backslash\n")
		
		if (ref == "label"):
			labelStr = "{"+"{}".format(labelText)+"}"
			self.wr_line("{}{}".format(ref, labelStr))
		
		if (ref == "hyperref"):
			refString = "{" + self.replace_reserved_sign(labelText) + "}"
			self.wr_line("{}[{}]{}".format(ref, labelText, refString))
	
		self.commit_append_line(2)

		Insert label or reference into the generator output.
		Arguments:
			labelText	Text to write into the label
			ref			Label type. At the moment can be:
							"label" - LabelText is written and label object is
									  created directly behind.
							"hyperref" - Hyperref object is created with 
										 "labelText" placed in the hyperref.
										This makes the reference to the label
										with the same name if clicked on in PDF.
		
Insert label or reference into the generator output.
Arguments:
labelText       Text to write into the label
ref                     Label type. At the moment can be:
"label" - LabelText is written and label object is
created directly behind.
"hyperref" - Hyperref object is created with
"labelText" placed in the hyperref.
This makes the reference to the label
with the same name if clicked on in PDF.
Insert label or reference into the generator output . Arguments : labelText Text to write into the label ref Label type . At the moment can be : " label " - LabelText is written and label object is created directly behind . " hyperref " - Hyperref object is created with " labelText " placed in the hyperref . This makes the reference to the label with the same name if clicked on in PDF .
def insert_ref(self, labelText, ref):
		self.insert_inset("ERT")
		self.wr_line("status open\n")
		self.insert_layout("Plain Layout")
		self.wr_line("\\backslash\n")
		if (ref == "label"):
			labelStr = "{"+"{}".format(labelText)+"}"
			self.wr_line("{}{}".format(ref, labelStr))
		if (ref == "hyperref"):
			refString = "{" + self.replace_reserved_sign(labelText) + "}"
			self.wr_line("{}[{}]{}".format(ref, labelText, refString))
		self.commit_append_line(2)
def insert_ref ( self , labelText , ref ) : self . insert_inset ( "ERT" ) self . wr_line ( "status open\n" ) self . insert_layout ( "Plain Layout" ) self . wr_line ( "\\backslash\n" ) if ( ref == "label" ) : labelStr = "{" + "{}" . format ( labelText ) + "}" self . wr_line ( "{}{}" . format ( ref , labelStr ) ) if ( ref == "hyperref" ) : refString = "{" + self . replace_reserved_sign ( labelText ) + "}" self . wr_line ( "{}[{}]{}" . format ( ref , labelText , refString ) ) self . commit_append_line ( 2 )
Insert label or reference into the generator output.
Insert label or reference into the generator output .
"""
		Insert label or reference into the generator output.
		Arguments:
			labelText	Text to write into the label
			ref			Label type. At the moment can be:
							"label" - LabelText is written and label object is
									  created directly behind.
							"hyperref" - Hyperref object is created with 
										 "labelText" placed in the hyperref.
										This makes the reference to the label
										with the same name if clicked on in PDF.
		"""
self
labelText
ref